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

#include <PndHypGeContFact.h>

Inheritance diagram for PndHypGeContFact:

Public Member Functions

 PndHypGeContFact ()
 
 ~PndHypGeContFact ()
 
FairParSet * createContainer (FairContainer *)
 

Private Member Functions

void setAllContainers ()
 

Detailed Description

Definition at line 14 of file PndHypGeContFact.h.

Constructor & Destructor Documentation

PndHypGeContFact::PndHypGeContFact ( )

Definition at line 22 of file PndHypGeContFact.cxx.

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

Definition at line 19 of file PndHypGeContFact.h.

19 {}

Member Function Documentation

FairParSet * PndHypGeContFact::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 42 of file PndHypGeContFact.cxx.

References name, and p.

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

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

Definition at line 30 of file PndHypGeContFact.cxx.

30  {
34  // FairContainer* p= new FairContainer("PndGeoHypGePar",
35  // "HypGe Geometry Parameters",
36  // "TestDefaultContext");
37  //p->addContext("TestNonDefaultContext");
38 
39  // containers->Add(p);
40 }

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