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

#include <PndFtsContFact.h>

Inheritance diagram for PndFtsContFact:

Public Member Functions

 PndFtsContFact ()
 
 ~PndFtsContFact ()
 
FairParSet * createContainer (FairContainer *)
 

Private Member Functions

void setAllContainers ()
 

Detailed Description

Definition at line 8 of file PndFtsContFact.h.

Constructor & Destructor Documentation

PndFtsContFact::PndFtsContFact ( )

Definition at line 21 of file PndFtsContFact.cxx.

22 {
23  // Constructor (called when the library is loaded)
24  fName="PndFtsContFact";
25  fTitle="Factory for parameter containers in libFts";
27  FairRuntimeDb::instance()->addContFactory(this);
28 }
PndFtsContFact::~PndFtsContFact ( )
inline

Definition at line 14 of file PndFtsContFact.h.

14 {}

Member Function Documentation

FairParSet * PndFtsContFact::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 41 of file PndFtsContFact.cxx.

References name, and p.

42 {
46  const char* name=c->GetName();
47  std::cout << " -I container name " << name << std::endl;
48  FairParSet* p=0;
49 
50  if (strcmp(name,"PndGeoFtsPar")==0) {
51  p=new PndGeoFtsPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
52  }
53  return p;
54 }
Double_t p
Definition: anasim.C:58
TString name
void PndFtsContFact::setAllContainers ( )
private

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

Definition at line 30 of file PndFtsContFact.cxx.

References p1.

31 {
34  FairContainer* p1= new FairContainer("PndGeoFtsPar",
35  "Fts Geometry Parameters",
36  "TestDefaultContext");
37  p1->addContext("TestNonDefaultContext");
38  containers->Add(p1);
39 }
TPad * p1
Definition: hist-t7.C:116

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