FairRoot/PandaRoot
PndHypGeContFact.cxx
Go to the documentation of this file.
1 //
3 // PndHypGeContFact
4 //
5 // Factory for the parameter containers in libHypGe
6 //
7 
8 //
10 
11 using namespace std;
12 #include "PndHypGeContFact.h"
13 #include "FairRuntimeDb.h"
14 //#include "PndGeoHypGePar.h"
15 #include <iostream>
16 #include <iomanip>
17 
19 
20 static PndHypGeContFact gPndHypGeContFact;
21 
23  // Constructor (called when the library is loaded)
24  fName="PndHypGeContFact";
25  fTitle="Factory for parameter containers in libHypGe";
26  setAllContainers();
27  FairRuntimeDb::instance()->addContFactory(this);
28 }
29 
34  // FairContainer* p= new FairContainer("PndGeoHypGePar",
35  // "HypGe Geometry Parameters",
36  // "TestDefaultContext");
37  //p->addContext("TestNonDefaultContext");
38 
39  // containers->Add(p);
40 }
41 
42 FairParSet* PndHypGeContFact::createContainer(FairContainer* c) {
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 }
FairParSet * createContainer(FairContainer *)
Double_t p
Definition: anasim.C:58
TString name
ClassImp(PndHypGeContFact) static PndHypGeContFact gPndHypGeContFact