49 DataObject*& refpObject) {
51 MsgStream log(
msgSvc(),
"RootDedxCalibDataCnv");
52 log<<MSG::DEBUG<<
"SetProperty"<<endreq;
55 { log<<MSG::ERROR<<
"unable to open files"<<endreq;
66 TTree *rungtree = (TTree*)
m_inFile -> Get(
"runcalib");
71 int N = rungtree -> GetEntries();
72 tmpObject -> setrunNO(N);
77 tmpObject -> setrung(rungain,0,i);
78 tmpObject -> setrung(runmean,1,i);
79 tmpObject -> setrung(runno,2,i);
80 tmpObject -> setrung(runresol,3,i);
91 double iner_chi[1600];
92 double iner_gain[1600];
93 double iner_hits[1600];
94 double ip_eangle[1600];
96 double out_gain[1600];
97 double out_hits[1600];
99 TTree *ddgtree = (TTree*)
m_inFile -> Get(
"ddgcalib");
104 TBranch *bbb = ddgtree->FindBranch(
"Id_doca");
117 tmpObject -> setddg(ddg0[i],0,i);
118 tmpObject -> setddg(ddg1[i],1,i);
119 tmpObject -> setddg(ddg2[i],2,i);
120 tmpObject -> setddg(ddg3[i],3,i);
123 for(i=0; i<1600; i++){
134 tmpObject -> set_id_doca(id_doca[i],i);
135 tmpObject -> set_iner_chi(iner_chi[i],i);
136 tmpObject -> set_iner_gain(iner_gain[i],i);
137 tmpObject -> set_iner_hits(iner_hits[i],i);
138 tmpObject -> set_ip_eangle(ip_eangle[i],i);
139 tmpObject -> set_out_chi(out_chi[i],i);
140 tmpObject -> set_out_gain(out_gain[i],i);
141 tmpObject -> set_out_hits(out_hits[i],i);
151 TTree *entratree = (TTree*)
m_inFile -> Get(
"entracalib");
160 tmpObject -> setenta(entra0[i],0,i);
161 tmpObject -> setenta(entra1[i],1,i);
162 tmpObject -> setenta(entra2[i],2,i);
163 tmpObject -> setenta(entra3[i],3,i);
165 tmpObject -> set_enanglesize(engle_no);
166 for(i=0; i<engle_no; i++){
167 tmpObject -> set_enangle(engle[i],i);
177 double gcostheta[80];
180 TTree *ggstree = (TTree*)
m_inFile -> Get(
"ggscalib");
192 tmpObject -> setggs(ggs0[i],0,i);
193 tmpObject -> setggs(ggs1[i],1,i);
194 tmpObject -> setggs(ggs2[i],2,i);
195 tmpObject -> setggs(ggs3[i],3,i);
199 if(!bbb) gcostheta[i]=0;
204 log<<MSG::FATAL<<
"hadron entry is larger than 20, larger than designed"<<endreq;
205 return StatusCode::FAILURE;
210 for(i=0;i<hadron_entry;i++){
220 TTree *zdeptree = (TTree*)
m_inFile -> Get(
"zdepcalib");
228 tmpObject -> setzdep(zdep0[i],0,i);
229 tmpObject -> setzdep(zdep1[i],1,i);
230 tmpObject -> setzdep(zdep2[i],2,i);
231 tmpObject -> setzdep(zdep3[i],3,i);
236 double gt0[35],gdedx[35];
237 TTree *gaintree = (TTree*)
m_inFile -> Get(
"gaincalib");
244 tmpObject -> setgain(gain);
250 tmpObject->
set_t0(gt0[i],i);
256 TTree *resoltree = (TTree*)
m_inFile -> Get(
"resolcalib");
259 tmpObject -> setresol(resol);
263 TTree *wiregtree = (TTree*)
m_inFile -> Get(
"wiregcalib");
267 tmpObject -> setwireg(wireg[i],i);
272 TTree *layergtree = (TTree*)
m_inFile -> Get(
"layergcalib");
277 tmpObject -> setlayerg(layerg[i],i);
280 refpObject=tmpObject;
287 return StatusCode::SUCCESS;