EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EicContFact Class Reference

FairRoot-style EIC container factory, whatever it is good for. More...

#include <EicRoot/blob/master/eic/base/EicContFact.h>

+ Inheritance diagram for EicContFact:
+ Collaboration diagram for EicContFact:

Public Member Functions

 EicContFact (EicDetector *det, const char *_fName, const char *_fTitle, const char *name, const char *title, const char *context)
 Parameters are strings needed to initialize respective FairContainer.
 
 EicContFact ()
 
 ~EicContFact ()
 
FairParSetcreateContainer (FairContainer *)
 
- Public Member Functions inherited from FairContFact
 FairContFact ()
 
virtual ~FairContFact ()
 
Bool_t addContext (const char *name)
 
void print ()
 
FairParSetgetContainer (const char *)
 
virtual void activateParIo (FairParIo *)
 

Private Attributes

char * fGeoParName
 Service variable like TpcGeoPar.
 
EicDetectorbackDoorDetPtr
 Pointer to EicDetector frame which called this function.
 

Additional Inherited Members

- Protected Member Functions inherited from FairContFact
const char * getActualContext (const char *name)
 
ClassDef(FairContFact,
0) private FairContFact
operator= (const FairContFact &)
 
- Protected Attributes inherited from FairContFact
TList * containers
 
FairLoggerfLogger
 

Detailed Description

FairRoot-style EIC container factory, whatever it is good for.

Definition at line 16 of file EicContFact.h.

View newest version in sPHENIX GitHub at line 16 of file EicContFact.h

Constructor & Destructor Documentation

EicContFact::EicContFact ( EicDetector det,
const char *  _fName,
const char *  _fTitle,
const char *  name,
const char *  title,
const char *  context 
)

Parameters are strings needed to initialize respective FairContainer.

Definition at line 20 of file EicContFact.cxx.

View newest version in sPHENIX GitHub at line 20 of file EicContFact.cxx

References FairRuntimeDb::addContFactory(), backDoorDetPtr, FairContFact::containers, fGeoParName, FairRuntimeDb::instance(), and p.

+ Here is the call graph for this function:

EicContFact::EicContFact ( )
inline

Definition at line 21 of file EicContFact.h.

View newest version in sPHENIX GitHub at line 21 of file EicContFact.h

EicContFact::~EicContFact ( )
inline

Definition at line 22 of file EicContFact.h.

View newest version in sPHENIX GitHub at line 22 of file EicContFact.h

Member Function Documentation

FairParSet * EicContFact::createContainer ( FairContainer c)
virtual

Reimplemented from FairContFact.

Definition at line 36 of file EicContFact.cxx.

View newest version in sPHENIX GitHub at line 36 of file EicContFact.cxx

References backDoorDetPtr, EicDetector::EicGeoParAllocator(), fGeoParName, name, and p.

+ Here is the call graph for this function:

Member Data Documentation

EicDetector* EicContFact::backDoorDetPtr
private

Pointer to EicDetector frame which called this function.

Well, want to be able to call detector-specific allocator of EicGeoPar derivative class in EicContFact::createContainer(); this is indeed not the best quality C++ way of doing things, but I do not want to either cut'n'paste createContainer() in several places or to mess up with templates; inheritance between EicDetector and EicContFact would probably help, but they both have TObject as a base class.

Definition at line 39 of file EicContFact.h.

View newest version in sPHENIX GitHub at line 39 of file EicContFact.h

Referenced by createContainer(), and EicContFact().

char* EicContFact::fGeoParName
private

Service variable like TpcGeoPar.

Let it remain char*, does not really matter

Definition at line 29 of file EicContFact.h.

View newest version in sPHENIX GitHub at line 29 of file EicContFact.h

Referenced by createContainer(), and EicContFact().


The documentation for this class was generated from the following files: