30 #include <TDirectory.h>
54 Text_t *name =
const_cast<char *
>(pPar->
GetName());
68 TKey *key =
dynamic_cast<TKey *
>(gDirectory->GetKey(name, version));
74 cout <<
"Container " << pPar->
GetName() <<
" initialized from ROOT file." << endl;
88 Text_t *name =
const_cast<char *
>(pPar->
GetName());
94 Error(
":write",
"Output is not writable");
97 Error(
":write",
"No output open");
107 return key->GetCycle();
142 sprintf(cn,
"%s;%i", name, vers);
144 TObject *p = gROOT->FindObject(cn);
virtual Bool_t read(FairParSet *)
virtual const char * GetName() const
void setVersionsChanged(Bool_t f=kTRUE)
static FairRuntimeDb * instance(void)
FairDetParRootFileIo(FairParRootFile *f)
FairParVersion * getParVersion(const Text_t *name)
void setChanged(Bool_t flag=kTRUE)
Int_t write(FairParSet *)
ClassImp(FairEventBuilder)
Int_t getInputVersion(Int_t i)
Int_t findInputVersion(Text_t *contName)
FairRtdbRun * getCurrentRun(void)
Int_t getInputVersion(Int_t i)
void setInputVersion(Int_t v=-1, Int_t i=0)
TObject * findContainer(Text_t *contName, Int_t version)
Int_t getMaxVersion(Text_t *contName)