49 DataObject*& refpObject) {
51 MsgStream log(
msgSvc(),
"RootMdcCalibDataCnv");
52 log<<MSG::DEBUG<<
"SetProperty"<<endreq;
56 { log<<MSG::ERROR<<
"unable to open files"<<endreq;
66 TTree *xttree = (TTree*)
m_inFile -> Get(
"XtTree");
72 tmpObject -> setXtpar(xtkey,xtpar);
78 for(
int layid=0; layid<43; layid++){
79 for(
int entr=0; entr<18; entr++){
80 for(
int lr=0; lr<2; lr++){
81 char newXtTreeName[20];
82 sprintf(newXtTreeName,
"trNewXt%02d_%02d_%d",layid,entr,lr);
83 TTree* newXtTree = ((TTree*)
m_inFile->Get(newXtTreeName));
85 newXtTrees.Add(newXtTree->CloneTree());
89 if((43*18*2)==newXtTrees.GetEntries())tmpObject->
setNewXtpar(&newXtTrees);
96 for(
int layid=0; layid<43; layid++){
98 sprintf(r2tTreeName,
"r2t%02d",layid);
99 TTree* r2tTree = ((TTree*)
m_inFile->Get(r2tTreeName));
102 r2tTree->SetCacheSize(2500);
103 r2tTrees.Add(r2tTree->CloneTree());
105 if(43==r2tTrees.GetEntries()) tmpObject->
setR2tpar(&r2tTrees);
111 TTree *t0tree = (TTree*)
m_inFile -> Get(
"T0Tree");
117 tmpObject -> setT0(t0);
118 tmpObject -> setDelT0(delt0);
124 TTree *qttree = (TTree*)
m_inFile -> Get(
"QtTree");
130 tmpObject -> setQtpar0(qtpar0);
131 tmpObject -> setQtpar1(qtpar1);
137 TTree *sdtree = (TTree*)
m_inFile -> Get(
"SdTree");
144 tmpObject -> setSdpar(sdkey,sdpar);
147 refpObject=tmpObject;
148 return StatusCode::SUCCESS;
154 MsgStream log(
msgSvc(),
"RootMdcCalibDataCnv");
158 { log<<MSG::ERROR<<
"unable to open files"<<endreq;
172 TTree *xttree =
new TTree(
"XtTree",
"XtTree");
173 xttree ->
Branch(
"xtkey", &
key,
"key/I");
174 xttree ->
Branch(
"xtpar", &xtpar,
"xtpar/D");
175 tmpObject -> setXtBegin();
176 while( tmpObject -> getNextXtpar(
key, xtpar) ){
201 TTree *t0tree =
new TTree(
"T0Tree",
"T0Tree");
202 t0tree ->
Branch(
"t0", &t0,
"t0/D");
203 t0tree ->
Branch(
"delt0", &delt0,
"delt0/D");
204 tmpNo = tmpObject -> gett0No();
205 for(i=0; i<tmpNo; i++){
206 t0 = tmpObject -> getT0(i);
207 delt0 = tmpObject -> getDelT0(i);
212 TTree *qttree =
new TTree(
"QtTree",
"QtTree");
213 qttree ->
Branch(
"qtpar0", &(qtpar[0]),
"qtpar0/D");
214 qttree ->
Branch(
"qtpar1", &(qtpar[1]),
"qtpar1/D");
215 tmpNo = tmpObject -> getqtparNo();
216 for(i=0; i<tmpNo; i++){
217 qtpar[0] = tmpObject -> getQtpar0(i);
218 qtpar[1] = tmpObject -> getQtpar1(i);
223 TTree *sdtree =
new TTree(
"SdTree",
"SdTree");
224 sdtree ->
Branch(
"sdkey", &
key,
"key/I");
225 sdtree ->
Branch(
"sdpar", &sdpar,
"sdpar/D");
226 tmpObject -> setSdBegin();
227 while( tmpObject -> getNextSdpar(
key, sdpar) ){
242 log<<MSG::INFO<<
"successfully create RootFile"<<endreq;
sprintf(cut,"kal_costheta0_em>-0.93&&kal_costheta0_em<0.93&&kal_pxy0_em>=0.05+%d*0.1&&kal_pxy0_em<0.15+%d*0.1&&NGch>=2", j, j)