SND@LHC Software
Loading...
Searching...
No Matches
EmulsionDetContFact Class Reference

#include <EmulsionDetContFact.h>

Inheritance diagram for EmulsionDetContFact:
Collaboration diagram for EmulsionDetContFact:

Public Member Functions

 EmulsionDetContFact ()
 
 ~EmulsionDetContFact ()
 
FairParSet * createContainer (FairContainer *)
 

Private Member Functions

void setAllContainers ()
 

Detailed Description

Definition at line 10 of file EmulsionDetContFact.h.

Constructor & Destructor Documentation

◆ EmulsionDetContFact()

EmulsionDetContFact::EmulsionDetContFact ( )

Definition at line 28 of file EmulsionDetContFact.cxx.

29 : FairContFact()
30{
31 // Constructor (called when the library is loaded)
32 fName="EmulsionDetContFact";
33 fTitle="Factory for parameter containers in libBOxSensitive";
35 FairRuntimeDb::instance()->addContFactory(this);
36}

◆ ~EmulsionDetContFact()

EmulsionDetContFact::~EmulsionDetContFact ( )
inline

Definition at line 16 of file EmulsionDetContFact.h.

16{}

Member Function Documentation

◆ createContainer()

FairParSet * EmulsionDetContFact::createContainer ( FairContainer *  c)

Calls the constructor of the corresponding parameter container. For an actual context, which is not an empty string and not the default context of this container, the name is concatinated with the context.

Definition at line 51 of file EmulsionDetContFact.cxx.

52{
56 /* const char* name=c->GetName();
57 FairParSet* p=NULL;
58 if (strcmp(name,"FairGeoTauSensitivePar")==0) {
59 p=new FairGeoTauSensitivePar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
60 }
61 return p;
62*/
63 return 0;
64}

◆ setAllContainers()

void EmulsionDetContFact::setAllContainers ( )
private

Creates the Container objects with all accepted contexts and adds them to the list of containers for the STS library.

Definition at line 38 of file EmulsionDetContFact.cxx.

39{
43 FairContainer* p= new FairContainer("FairGeoBoxSensitivePar",
44 "BoxSensitive Geometry Parameters",
45 "TestDefaultContext");
46 p->addContext("TestNonDefaultContext");
47
48 containers->Add(p);
49}

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