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

#include <PndFtofContFact.h>

Inheritance diagram for PndFtofContFact:

Public Member Functions

 PndFtofContFact ()
 
 ~PndFtofContFact ()
 
FairParSet * createContainer (FairContainer *)
 

Private Member Functions

void setAllContainers ()
 

Detailed Description

Definition at line 14 of file PndFtofContFact.h.

Constructor & Destructor Documentation

PndFtofContFact::PndFtofContFact ( )

Definition at line 24 of file PndFtofContFact.cxx.

24  {
25  // Constructor (called when the library is loaded)
26  fName="PndFtofContFact";
27  fTitle="Factory for parameter containers in libFtof";
29  FairRuntimeDb::instance()->addContFactory(this);
30 }
PndFtofContFact::~PndFtofContFact ( )
inline

Definition at line 19 of file PndFtofContFact.h.

19 {}

Member Function Documentation

FairParSet * PndFtofContFact::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 44 of file PndFtofContFact.cxx.

References name, and p.

44  {
48  const char* name=c->GetName();
49  FairParSet* p=NULL;
50  if (strcmp(name,"PndGeoFtofPar")==0) {
51  p=new PndGeoFtofPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
52  }
53  return p;
54 }
Double_t p
Definition: anasim.C:58
TString name
void PndFtofContFact::setAllContainers ( )
private

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

Definition at line 32 of file PndFtofContFact.cxx.

References p.

32  {
36  FairContainer* p= new FairContainer("PndGeoFtofPar",
37  "tof Geometry Parameters",
38  "TestDefaultContext");
39  p->addContext("TestNonDefaultContext");
40 
41  containers->Add(p);
42 }
Double_t p
Definition: anasim.C:58

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