36 fName =
"HStartParIo";
38 initModules =
new TArrayI(n);
61 if (!isActiv) readModules(
"Start");
62 const Text_t* name = pPar->GetName();
65 if (strcmp(name,
"Start2Calpar") == 0)
return read((
HStart2Calpar*)pPar, set);
66 if (strcmp(name,
"Start2GeomPar")==0)
71 cerr <<
"initialization of " << name <<
" not possible from ROOT file!" << endl;
78 Text_t* name = (Char_t*)pPar->GetName();
79 Int_t version = findInputVersion(name);
89 Bool_t allFound = kTRUE;
91 for (Int_t m = 0; m < pPar->
getSize(); m++) {
96 if (pModSize && r.
getSize() == pModSize) {
97 for (Int_t c = 0; c < pModSize; c++) p[c].fill(r[c]);
98 initModules->AddAt(m + 1, m);
99 }
else allFound = kFALSE;
105 cout << name <<
" initialized from ROOT file" << endl;
Int_t getMaxModules(void)
virtual Bool_t read(HParSet *)
void setInputVersion(Int_t v=-1, Int_t i=0)
HSpectrometer * getSetup(void)
HDetector * getDetector(const Char_t *name)
ClassImp(HStartParRootFileIo) HStartParRootFileIo
Bool_t init(HParSet *, Int_t *)
void setChanged(Bool_t flag=kTRUE)
Bool_t read(HStart2Calpar *, Int_t *)
Int_t getInputVersion(Int_t i)