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

#include <PndHypContFact.h>

Inheritance diagram for PndHypContFact:

Public Member Functions

 PndHypContFact ()
 
 ~PndHypContFact ()
 
FairParSet * createContainer (FairContainer *)
 

Private Member Functions

void setAllContainers ()
 

Detailed Description

Definition at line 14 of file PndHypContFact.h.

Constructor & Destructor Documentation

PndHypContFact::PndHypContFact ( )

Definition at line 25 of file PndHypContFact.cxx.

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

Definition at line 19 of file PndHypContFact.h.

19 {}

Member Function Documentation

FairParSet * PndHypContFact::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 60 of file PndHypContFact.cxx.

References name, and p.

60  {
64  const char* name=c->GetName();
65  FairParSet* p=NULL;
66 
67  /* if (strcmp(name,"PndGeoHypPar")==0) {
68  p=new PndGeoHypPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
69  }
70  */
71 
72  if (strcmp(name,"PndHypDigiPar")==0) {
73  p=new PndHypDigiPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
74  }
75 
76  if (strcmp(name,"PndHypStripDigiPar")==0) {
77  p=new PndHypStripDigiPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
78  }
79 
80 
81  return p;
82 }
Double_t p
Definition: anasim.C:58
TString name
void PndHypContFact::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 33 of file PndHypContFact.cxx.

References p2.

33  {
37  /* FairContainer* p= new FairContainer("PndGeoHypPar",
38  "Hyp Geometry Parameters",
39  "TestDefaultContext");
40  p->addContext("TestNonDefaultContext");
41 
42  containers->Add(p);
43  */
44 
45  FairContainer* p2 = new FairContainer("PndHypDigiPar",
46  "Hyp Pixel Digitization Parameters",
47  "TestDefaultContext");
48  p2->addContext("TestNonDefaultContext");
49  containers->Add(p2);
50 
51  FairContainer* p3 = new FairContainer("PndHypStripDigiPar",
52  "Hyp Strip Digitization Parameters",
53  "TestDefaultContext");
54  p3->addContext("TestNonDefaultContext");
55  containers->Add(p3);
56 
57 
58 }
TPad * p2
Definition: hist-t7.C:117

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