FairRoot/PandaRoot
Public Member Functions | Private Member Functions | List of all members
PndSttContFact Class Reference

#include <PndSttContFact.h>

Inheritance diagram for PndSttContFact:

Public Member Functions

 PndSttContFact ()
 
 ~PndSttContFact ()
 
FairParSet * createContainer (FairContainer *)
 

Private Member Functions

void setAllContainers ()
 

Detailed Description

Definition at line 8 of file PndSttContFact.h.

Constructor & Destructor Documentation

PndSttContFact::PndSttContFact ( )

Definition at line 27 of file PndSttContFact.cxx.

28 {
29  // Constructor (called when the library is loaded)
30  fName="PndSttContFact";
31  fTitle="Factory for parameter containers in libStt";
33  FairRuntimeDb::instance()->addContFactory(this);
34 }
PndSttContFact::~PndSttContFact ( )
inline

Definition at line 14 of file PndSttContFact.h.

14 {}

Member Function Documentation

FairParSet * PndSttContFact::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 48 of file PndSttContFact.cxx.

References name, and p.

49 {
53  const char* name=c->GetName();
54  std::cout << " -I container name " << name << std::endl;
55  FairParSet* p=0;
56 
57  if (strcmp(name,"PndGeoSttPar")==0) {
58  p=new PndGeoSttPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
59  }
60  return p;
61 }
Double_t p
Definition: anasim.C:58
TString name
void PndSttContFact::setAllContainers ( )
private

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

Definition at line 36 of file PndSttContFact.cxx.

References p2.

37 {
40  FairContainer* p2= new FairContainer("PndGeoSttPar",
41  "Stt Geometry Parameters",
42  "TestDefaultContext");
43  p2->addContext("TestNonDefaultContext");
44 
45  containers->Add(p2);
46 }
TPad * p2
Definition: hist-t7.C:117

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