FairShip
Loading...
Searching...
No Matches
strawtubesContFact Class Reference

#include <strawtubesContFact.h>

Inheritance diagram for strawtubesContFact:
Collaboration diagram for strawtubesContFact:

Public Member Functions

 strawtubesContFact ()
 
 ~strawtubesContFact ()
 
FairParSet * createContainer (FairContainer *)
 

Private Member Functions

void setAllContainers ()
 

Detailed Description

Definition at line 12 of file strawtubesContFact.h.

Constructor & Destructor Documentation

◆ strawtubesContFact()

strawtubesContFact::strawtubesContFact ( )

Constructor (called when the library is loaded)

Definition at line 13 of file strawtubesContFact.cxx.

13 : FairContFact() {
15 fName = "strawtubesContFact";
16 fTitle = "Factory for parameter containers in libstrawtubes";
18 FairRuntimeDb::instance()->addContFactory(this);
19}

◆ ~strawtubesContFact()

strawtubesContFact::~strawtubesContFact ( )
inline

Definition at line 18 of file strawtubesContFact.h.

18{}

Member Function Documentation

◆ createContainer()

FairParSet * strawtubesContFact::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 concatenated with the context.

Definition at line 36 of file strawtubesContFact.cxx.

36 {
42 /* const char* name=c->GetName();
43 FairParSet* p=NULL;
44 if (strcmp(name,"strawtubesGeoPar")==0) {
45 p=new strawtubesGeoPar(c->getConcatName().Data(),
46 c->GetTitle(),c->getContext());
47 }
48 return p;
49 */
50 return 0;
51}

◆ setAllContainers()

void strawtubesContFact::setAllContainers ( )
private

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

Definition at line 21 of file strawtubesContFact.cxx.

21 {
26 /*
27 FairContainer* p= new FairContainer("strawtubesGeoPar",
28 "strawtubes Geometry Parameters",
29 "TestDefaultContext");
30 p->addContext("TestNonDefaultContext");
31
32 containers->Add(p);
33 */
34}

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