Pandora
Pandora source code navigator
|
ObjectFactory class responsible for extended pandora object creation. More...
#include "ObjectFactory.h"
Public Types | |
typedef PARAMETERS | Parameters |
typedef OBJECT | Object |
Public Member Functions | |
ObjectFactory () | |
Default constructor. | |
virtual | ~ObjectFactory () |
Destructor. | |
virtual Parameters * | NewParameters () const =0 |
Create new parameters instance on the heap (memory-management to be controlled by user) | |
virtual StatusCode | Read (Parameters ¶meters, FileReader &fileReader) const =0 |
Read any additional (derived class only) object parameters from file using the specified file reader. | |
virtual StatusCode | Write (const Object *const pObject, FileWriter &fileWriter) const =0 |
Persist any additional (derived class only) object parameters using the specified file writer. | |
Protected Member Functions | |
virtual StatusCode | Create (const Parameters ¶meters, const Object *&pObject) const =0 |
Create an object with the given parameters. | |
Friends | |
class | CaloHitManager |
class | TrackManager |
class | MCManager |
class | ClusterManager |
class | VertexManager |
class | ParticleFlowObjectManager |
class | GeometryManager |
ObjectFactory class responsible for extended pandora object creation.
Definition at line 25 of file ObjectFactory.h.
typedef OBJECT pandora::ObjectFactory< PARAMETERS, OBJECT >::Object |
Definition at line 29 of file ObjectFactory.h.
typedef PARAMETERS pandora::ObjectFactory< PARAMETERS, OBJECT >::Parameters |
Definition at line 28 of file ObjectFactory.h.
|
inline |
Default constructor.
Definition at line 85 of file ObjectFactory.h.
|
inlinevirtual |
Destructor.
Definition at line 92 of file ObjectFactory.h.
|
protectedpure virtual |
Create an object with the given parameters.
parameters | the parameters to pass in constructor |
pObject | to receive the address of the object created |
Implemented in lar_content::LArTrackPfoFactory, and pandora::PandoraObjectFactory< PARAMETERS, OBJECT >.
|
pure virtual |
Create new parameters instance on the heap (memory-management to be controlled by user)
Implemented in lar_content::LArCaloHitFactory, lar_content::LArMCParticleFactory, lar_content::LArShowerPfoFactory, lar_content::LArTrackPfoFactory, and pandora::PandoraObjectFactory< PARAMETERS, OBJECT >.
|
pure virtual |
Read any additional (derived class only) object parameters from file using the specified file reader.
parameters | the parameters to pass in constructor |
fileReader | the file reader, used to extract any additional parameters from file |
Implemented in pandora::PandoraObjectFactory< PARAMETERS, OBJECT >.
|
pure virtual |
Persist any additional (derived class only) object parameters using the specified file writer.
pObject | the address of the object to persist |
fileWriter | the file writer |
Implemented in pandora::PandoraObjectFactory< PARAMETERS, OBJECT >, and lar_content::LArTrackPfoFactory.
|
friend |
Definition at line 73 of file ObjectFactory.h.
|
friend |
Definition at line 76 of file ObjectFactory.h.
|
friend |
Definition at line 79 of file ObjectFactory.h.
|
friend |
Definition at line 75 of file ObjectFactory.h.
|
friend |
Definition at line 78 of file ObjectFactory.h.
|
friend |
Definition at line 74 of file ObjectFactory.h.
|
friend |
Definition at line 77 of file ObjectFactory.h.