53 DataObject*& refpObject) {
55 MsgStream log(
msgSvc(),
"RootEstTofCalibDataCnv");
56 log<<MSG::DEBUG<<
"SetProperty"<<endreq;
61 { log<<MSG::ERROR<<
"unable to open files"<<endreq;
69 std::vector<CalibData::bTofCalibBase> tmpbTof;
70 std::vector<CalibData::eTofCalibBase> tmpeTof;
71 std::vector<CalibData::bTofCommonCalibBase> tmpbTofCommon;
72 std::vector<CalibData::tofCalibInfoBase> tofinfoCol;
88 TTree *btoftree = (TTree*)
m_inFile -> Get(
"BarTofPar");
91 for(
unsigned int i=0; i<
nBarPar; i++ ) {
92 sprintf( brname,
"P%i", i );
95 for(
unsigned int i=0; i<
nBarPar; i++ ) {
96 sprintf( brname,
"P%i", i+
nBarPar );
100 sprintf( brname,
"Bunch0_Poff%i", i );
104 sprintf( brname,
"Bunch0_Poff%i", i+
nBarParOff );
108 sprintf( brname,
"Bunch1_Poff%i", i );
112 sprintf( brname,
"Bunch1_Poff%i", i+
nBarParOff );
116 sprintf( brname,
"Bunch2_Poff%i", i );
120 sprintf( brname,
"Bunch2_Poff%i", i+
nBarParOff );
124 sprintf( brname,
"Bunch3_Poff%i", i );
128 sprintf( brname,
"Bunch3_Poff%i", i+
nBarParOff );
132 for(cnt=0; cnt<176; cnt++){
134 bTof.
setP1( cnvBarPar1 );
135 bTof.
setP2( cnvBarPar2 );
144 tmpbTof.push_back( bTof );
150 TTree *etoftree = (TTree*)
m_inFile -> Get(
"EndTofPar");
153 for(
unsigned int i=0; i<
nEndPar; i++ ) {
154 sprintf( ecname,
"P%i", i );
158 for(cnt=0; cnt<96; cnt++){
159 etoftree->GetEntry(cnt);
160 eTof.
setP( cnvEndPar );
161 tmpeTof.push_back(eTof);
166 TTree *btofcommontree = (TTree*)
m_inFile -> Get(
"BarTofParCommon");
168 sprintf( brname,
"t0offset%i", i );
172 int entries = btofcommontree->GetEntries();
173 for(cnt=0;cnt<entries;cnt++){
174 btofcommontree->GetEntry(cnt);
176 tmpbTofCommon.push_back(bTofCommon);
181 refpObject=tmpObject;
183 return StatusCode::SUCCESS;