EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CbmRichContFact.cxx
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file CbmRichContFact.cxx
1 //*-- AUTHOR : Denis Bertini
2 //*-- Created : 21/06/2005
3 
4 
6 //
7 // CbmRichContFact
8 //
9 // Factory for the parameter containers in libRich
10 //
12 
13 #include "CbmGeoRichPar.h"
14 
15 #include "CbmRichContFact.h"
16 #include "FairRuntimeDb.h"
17 
18 #include <iostream>
19 #include <iomanip>
20 
22 
23 static CbmRichContFact gCbmRichContFact;
24 
26  // Constructor (called when the library is loaded)
27  fName="CbmRichContFact";
28  fTitle="Factory for parameter containers in libRich";
29  setAllContainers();
31 }
32 
37  FairContainer* p= new FairContainer("CbmGeoRichPar",
38  "Rich Geometry Parameters",
39  "TestDefaultContext");
40  p->addContext("TestNonDefaultContext");
41 
42  containers->Add(p);
43 }
44 
49  const char* name=c->GetName();
50  FairParSet* p=NULL;
51  if (strcmp(name,"CbmGeoRichPar")==0) {
52  p=new CbmGeoRichPar(c->getConcatName().Data(),c->GetTitle(),c->getContext());
53  }
54  return p;
55 }
56