150 {
151
152 MsgStream log(
msgSvc(),
"RootMdcCalibDataCnv");
153
155 if(!sc)
156 { log<<MSG::ERROR<<"unable to open files"<<endreq;
157 }
158
160 int tmpNo;
162 double xtpar;
163 double t0;
164 double delt0;
165 double qtpar[2];
166 double sdpar;
167 int i;
168
169
170 TTree *xttree = new TTree("XtTree", "XtTree");
171 xttree -> Branch(
"xtkey", &
key,
"key/I");
172 xttree -> Branch("xtpar", &xtpar, "xtpar/D");
173 tmpObject -> setXtBegin();
174 while( tmpObject -> getNextXtpar(
key, xtpar) ){
175 xttree -> Fill();
176 }
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199 TTree *t0tree = new TTree("T0Tree", "T0Tree");
200 t0tree -> Branch("t0", &t0, "t0/D");
201 t0tree -> Branch("delt0", &delt0, "delt0/D");
202 tmpNo = tmpObject -> gett0No();
203 for(i=0; i<tmpNo; i++){
204 t0 = tmpObject -> getT0(i);
205 delt0 = tmpObject -> getDelT0(i);
206 t0tree -> Fill();
207 }
208
209
210 TTree *qttree = new TTree("QtTree", "QtTree");
211 qttree -> Branch("qtpar0", &(qtpar[0]), "qtpar0/D");
212 qttree -> Branch("qtpar1", &(qtpar[1]), "qtpar1/D");
213 tmpNo = tmpObject -> getqtparNo();
214 for(i=0; i<tmpNo; i++){
215 qtpar[0] = tmpObject -> getQtpar0(i);
216 qtpar[1] = tmpObject -> getQtpar1(i);
217 qttree -> Fill();
218 }
219
220
221 TTree *sdtree = new TTree("SdTree", "SdTree");
222 sdtree -> Branch(
"sdkey", &
key,
"key/I");
223 sdtree -> Branch("sdpar", &sdpar, "sdpar/D");
224 tmpObject -> setSdBegin();
225 while( tmpObject -> getNextSdpar(
key, sdpar) ){
226 sdtree -> Fill();
227 }
228
229 xttree -> Write();
230 t0tree -> Write();
231 qttree -> Write();
232 sdtree -> Write();
233
234 delete xttree;
235 delete t0tree;
236 delete qttree;
237 delete sdtree;
238
240 log<<MSG::INFO<<"successfully create RootFile"<<endreq;
241 return sc;
242}
*************DOUBLE PRECISION m_pi *DOUBLE PRECISION m_HvecTau2 DOUBLE PRECISION m_HvClone2 DOUBLE PRECISION m_gamma1 DOUBLE PRECISION m_gamma2 DOUBLE PRECISION m_thet1 DOUBLE PRECISION m_thet2 INTEGER m_IFPHOT *COMMON c_Taupair $ !Spin Polarimeter vector first Tau $ !Spin Polarimeter vector second Tau $ !Clone Spin Polarimeter vector first Tau $ !Clone Spin Polarimeter vector second Tau $ !Random Euler angle for cloning st tau $ !Random Euler angle for cloning st tau $ !Random Euler angle for cloning st tau $ !Random Euler angle for cloning nd tau $ !Random Euler angle for cloning nd tau $ !Random Euler angle for cloning nd tau $ !phi of HvecTau1 $ !theta of HvecTau1 $ !phi of HvecTau2 $ !theta of HvecTau2 $ !super key
virtual StatusCode openWrite(const std::string &fname)