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

#include <PndAnaContFact.h>

Inheritance diagram for PndAnaContFact:

Public Member Functions

 PndAnaContFact ()
 
 ~PndAnaContFact ()
 
FairParSet * createContainer (FairContainer *c)
 

Private Member Functions

void setAllContainers ()
 
 ClassDef (PndAnaContFact, 1)
 

Detailed Description

Definition at line 9 of file PndAnaContFact.h.

Constructor & Destructor Documentation

PndAnaContFact::PndAnaContFact ( )

Definition at line 24 of file PndAnaContFact.cxx.

References setAllContainers().

25 {
26  // Constructor (called when the library is loaded)
27  fName="PndAnaContFact";
28  fTitle="Factory for parameter containers in analysis tools";
30  FairRuntimeDb::instance()->addContFactory(this);
31 }
PndAnaContFact::~PndAnaContFact ( )

Definition at line 32 of file PndAnaContFact.cxx.

33 {
34 }

Member Function Documentation

PndAnaContFact::ClassDef ( PndAnaContFact  ,
 
)
private
FairParSet * PndAnaContFact::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 53 of file PndAnaContFact.cxx.

References name, and p.

54 {
58  const char* name=c->GetName();
59  FairParSet* p=NULL;
60 
61 // if (strcmp(name,"ANAPidSelectionFlux")==0) {
62 // p=new PndAnaSelectorPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
63 // }
64 
65  if (strcmp(name,"ANAPidSelections")==0) {
66  p=new PndAnaSelectorPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
67  }
68 
69 
70  return p;
71 }
Double_t p
Definition: anasim.C:58
TString name
void PndAnaContFact::setAllContainers ( )
private

Creates the Container objects with all accepted contexts and adds them to the list of containers for the analysis pid selction criteria library.

Definition at line 37 of file PndAnaContFact.cxx.

References p2.

Referenced by PndAnaContFact().

38 {
42 // FairContainer* p= new FairContainer("ANAPidSelectionFlux","Flux weights", "TestDefaultContext");
43 // p->addContext("TestNonDefaultContext");
44 // fSelectParNames->Add(new TObjString(p->GetName()));
45 // containers->Add(p);
46 
47  FairContainer* p2 = new FairContainer("ANAPidSelections","PID selctrion criteria parameters", "TestDefaultContext");
48  p2->addContext("TestNonDefaultContext");
49  containers->Add(p2);
50 
51 }
TPad * p2
Definition: hist-t7.C:117

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