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

#include <PndPassiveContFact.h>

Inheritance diagram for PndPassiveContFact:

Public Member Functions

 PndPassiveContFact ()
 
 ~PndPassiveContFact ()
 
FairParSet * createContainer (FairContainer *)
 

Private Member Functions

void setAllContainers ()
 

Detailed Description

Definition at line 8 of file PndPassiveContFact.h.

Constructor & Destructor Documentation

PndPassiveContFact::PndPassiveContFact ( )

Definition at line 23 of file PndPassiveContFact.cxx.

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

Definition at line 13 of file PndPassiveContFact.h.

13 {}

Member Function Documentation

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

References name, and p.

43  {
47  const char* name=c->GetName();
48  FairParSet *p=NULL;
49  if (strcmp(name,"PndGeoPassivePar")==0) {
50  p=new PndGeoPassivePar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
51  }
52  return p;
53 }
Double_t p
Definition: anasim.C:58
TString name
void PndPassiveContFact::setAllContainers ( )
private

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

Definition at line 31 of file PndPassiveContFact.cxx.

References p.

31  {
35  FairContainer* p= new FairContainer("PndGeoPassivePar",
36  "Passive Geometry Parameters",
37  "TestDefaultContext");
38  p->addContext("TestNonDefaultContext");
39 
40  containers->Add(p);
41 }
Double_t p
Definition: anasim.C:58

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