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

#include <PndRichContFact.h>

Inheritance diagram for PndRichContFact:

Public Member Functions

 PndRichContFact ()
 
 ~PndRichContFact ()
 
FairParSet * createContainer (FairContainer *)
 

Private Member Functions

void setAllContainers ()
 

Detailed Description

Definition at line 8 of file PndRichContFact.h.

Constructor & Destructor Documentation

PndRichContFact::PndRichContFact ( )

Constructor (called when the library is loaded)

Definition at line 13 of file PndRichContFact.cxx.

14  : FairContFact()
15 {
17  fName="PndRichContFact";
18  fTitle="Factory for parameter containers in libPndRich";
20  FairRuntimeDb::instance()->addContFactory(this);
21 }
PndRichContFact::~PndRichContFact ( )
inline

Definition at line 14 of file PndRichContFact.h.

14 {}

Member Function Documentation

FairParSet * PndRichContFact::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 38 of file PndRichContFact.cxx.

References name, and p.

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

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

Definition at line 23 of file PndRichContFact.cxx.

References p.

24 {
30  FairContainer* p= new FairContainer("PndRichGeoPar",
31  "PndRich Geometry Parameters",
32  "TestDefaultContext");
33  p->addContext("TestNonDefaultContext");
34 
35  containers->Add(p);
36 }
Double_t p
Definition: anasim.C:58

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