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

#include <PndPidContFact.h>

Inheritance diagram for PndPidContFact:

Public Member Functions

 PndPidContFact ()
 
 ~PndPidContFact ()
 
FairParSet * createContainer (FairContainer *)
 

Private Member Functions

void setAllContainers ()
 

Detailed Description

Definition at line 14 of file PndPidContFact.h.

Constructor & Destructor Documentation

PndPidContFact::PndPidContFact ( )

Definition at line 23 of file PndPidContFact.cxx.

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

Definition at line 19 of file PndPidContFact.h.

19 {}

Member Function Documentation

FairParSet * PndPidContFact::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 43 of file PndPidContFact.cxx.

References name, and p.

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

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

Definition at line 31 of file PndPidContFact.cxx.

References p1.

31  {
35  FairContainer* p1= new FairContainer("PndPidCorrPar",
36  "Pid Correlation Parameters",
37  "TestDefaultContext");
38  p1->addContext("TestNonDefaultContext");
39 
40  containers->Add(p1);
41 }
TPad * p1
Definition: hist-t7.C:116

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