51 DataObject*& refpObject) {
53 MsgStream log(
msgSvc(),
"RootTofSimDataCnv");
54 log<<MSG::DEBUG<<
"SetProperty"<<endreq;
59 { log<<MSG::ERROR<<
"unable to open files"<<endreq;
65 std::vector<CalibData::BTofSimBase> tmpbTof;
66 std::vector<CalibData::ETofSimBase> tmpeTof;
67 std::vector<CalibData::TofSimConstBase> tofbaseCol;
75 TTree *btoftree = (TTree*)
m_inFile -> Get(
"BTofSim");
79 int entries=btoftree->GetEntries();
80 for(cnt=0; cnt<entries; cnt++){
85 tmpbTof.push_back(bTof);
88 TTree *etoftree = (TTree*)
m_inFile -> Get(
"ETofSim");
92 entries=etoftree->GetEntries();
93 for(cnt=0; cnt<entries; cnt++){
94 etoftree->GetEntry(cnt);
98 tmpeTof.push_back(eTof);
102 double BarConstant,BarPMTGain,BarHighThres,BarLowThres,EndConstant,EndPMTGain,EndHighThres,EndLowThres,EndNoiseSwitch;
103 TTree *btofcommontree = (TTree*)
m_inFile -> Get(
"SimConstants");
113 entries = btofcommontree->GetEntries();
114 for(cnt=0;cnt<entries;cnt++){
115 btofcommontree->GetEntry(cnt);
125 tofbaseCol.push_back(tofbase);
131 refpObject=tmpObject;
133 return StatusCode::SUCCESS;