EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PndPassiveContFact.cxx
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PndPassiveContFact.cxx
1 //*-- AUTHOR : Denis Bertini
2 //*-- Created : 21/06/2005
3 
5 //
6 // PndPassiveContFact
7 //
8 // Factory for the parameter containers in libPassive
9 //
11 #include "PndPassiveContFact.h"
12 #include "FairRuntimeDb.h"
13 #include "PndGeoPassivePar.h"
14 #include <iostream>
15 #include <iomanip>
16 
17 using namespace std;
18 
20 
21 static PndPassiveContFact gPndPassiveContFact;
22 
24  // Constructor (called when the library is loaded)
25  fName="PndPassiveContFact";
26  fTitle="Factory for parameter containers in libPassive";
27  setAllContainers();
29 }
30 
35  FairContainer* p= new FairContainer("PndGeoPassivePar",
36  "Passive Geometry Parameters",
37  "TestDefaultContext");
38  p->addContext("TestNonDefaultContext");
39 
40  containers->Add(p);
41 }
42 
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 }
54