5 #include "ERFieldContFact.h" 7 #include "FairParSet.h" 8 #include "FairRuntimeDb.h" 9 #include "FairLogger.h" 15 #include "ERFieldPar.h" 20 fName =
"ERFieldContFact";
21 fTitle =
"Factory for field parameter containers";
23 FairRuntimeDb::instance()->addContFactory(
this);
31 const char* name = container->GetName();
32 LOG(INFO) <<
"create ERFieldPar container " << name << FairLogger::endl;
33 FairParSet*
set = NULL;
34 if ( strcmp(name,
"ERFieldPar") == 0 )
35 set =
new ERFieldPar( container->getConcatName().Data(),
36 container->GetTitle(),
37 container->getContext() );
43 FairContainer* container =
new FairContainer(
"ERFieldPar",
44 "Field parameter container",
46 containers->Add(container);
FairParSet * createContainer(FairContainer *container)