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

#include <PndSciTContFact.h>

Inheritance diagram for PndSciTContFact:

Public Member Functions

 PndSciTContFact ()
 
 ~PndSciTContFact ()
 
FairParSet * createContainer (FairContainer *)
 

Private Member Functions

void setAllContainers ()
 

Detailed Description

Definition at line 14 of file PndSciTContFact.h.

Constructor & Destructor Documentation

PndSciTContFact::PndSciTContFact ( )

Definition at line 24 of file PndSciTContFact.cxx.

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

Definition at line 19 of file PndSciTContFact.h.

19 {}

Member Function Documentation

FairParSet * PndSciTContFact::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 PndSciTContFact.cxx.

References name, and p.

44  {
48  const char* name=c->GetName();
49  FairParSet* p=NULL;
50  if (strcmp(name,"PndGeoSciTPar")==0) {
51  p=new PndGeoSciTPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
52  }
53  return p;
54 }
Double_t p
Definition: anasim.C:58
TString name
void PndSciTContFact::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 PndSciTContFact.cxx.

References p.

32  {
36  FairContainer* p= new FairContainer("PndGeoSciTPar",
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: