8 #//*-- AUTHOR : Ilse Koenig
24 #include <TCollection.h>
25 #include <TObjString.h>
34 FairContainer::FairContainer()
42 FairContainer::FairContainer(
const char* name,
const char* title,
const char* defContext)
44 , contexts(new TList())
67 TObjString* c =
new TObjString(name);
82 "Actual context of parameter container %s already defined as %s",
93 return (static_cast<TObjString*>(
contexts->At(0)))->String().Data();
100 cout << fName <<
"\t" << fTitle <<
"\n";
107 cout <<
" all contexts:"
109 while ((c = static_cast<TObjString*>(next()))) {
110 if (c->String().IsNull()) {
113 cout <<
" " << c->String();
116 cout <<
"\t default";
152 , containers(new TList)
171 Bool_t found = kFALSE;
173 while ((c = static_cast<FairContainer*>(next()))) {
210 cout <<
"---------------------------------------------------------------------------"
212 cout << GetName() <<
": " << GetTitle() <<
"\n";
213 cout <<
"---------------------------------------------------------------------------"
217 while ((c = static_cast<FairContainer*>(next()))) {
227 if (
nullptr !=
containers->FindObject(cont)) {
228 LOG(error) <<
"The container " << cont->GetName() <<
" already exist in the "
229 <<
"container factory " << GetName() <<
".\n"
230 <<
"Duplicate container is not added.";
Bool_t AddContainer(FairContainer *)
virtual FairParSet * createContainer(FairContainer *)
list of container factories
static FairRuntimeDb * instance(void)
FairParSet * getContainer(const char *)
FairParSet * findContainer(const char *)
ClassImp(FairEventBuilder)
const char * getDefaultContext()
const char * getContext()
Bool_t addContainer(FairParSet *)
Bool_t setActualContext(const char *c)
void addContext(const char *)
const char * getActualContext()
Bool_t addContext(const char *name)
void removeContFactory(FairContFact *fact)