83 {
84 MsgStream log(
msgSvc(), name());
85
86 log << MSG::INFO << "in initialize()" << endmsg;
87
88 StatusCode status;
89
90if(m_rootput)
91{
92 NTuplePtr nt1(
ntupleSvc(),
"FILE1/total4c");
93 if ( nt1 ) m_tuple1 = nt1;
94 else {
95 m_tuple1 =
ntupleSvc()->book (
"FILE1/total4c", CLID_ColumnWiseTuple,
"ks N-Tuple example");
96 if ( m_tuple1 ) {
97
98 status = m_tuple1->addItem ("run", m_run );
99 status = m_tuple1->addItem ("rec", m_rec );
100 status = m_tuple1->addItem ("mpprecall", m_mpprecall );
101 status = m_tuple1->addItem ("meeall", m_meeall );
102 status = m_tuple1->addItem ("ncgjs", m_ncgjs );
103 status = m_tuple1->addItem ("cla2kpi", m_cla2kpi );
104 status = m_tuple1->addItem("indexmc", m_idxmc, 0, 100);
105 status = m_tuple1->addIndexedItem("pdgid", m_idxmc, m_pdgid);
106
107 status = m_tuple1->addIndexedItem("motheridx", m_idxmc, m_motheridx);
108 status = m_tuple1->addItem("indexmdc", m_idxmdc, 0, 5000);
109 status = m_tuple1->addIndexedItem ("x0js", m_idxmdc, m_x0js);
110 status = m_tuple1->addIndexedItem ("y0js", m_idxmdc, m_y0js);
111 status = m_tuple1->addIndexedItem ("z0js",m_idxmdc, m_z0js);
112 status = m_tuple1->addIndexedItem ("r0js",m_idxmdc, m_r0js);
113 status = m_tuple1->addIndexedItem ("Rxyjs",m_idxmdc, m_Rxyjs);
114 status = m_tuple1->addIndexedItem ("Rzjs",m_idxmdc, m_Rzjs);
115 status = m_tuple1->addIndexedItem ("Rnxyjs",m_idxmdc, m_Rnxyjs);
116 status = m_tuple1->addIndexedItem ("phinjs",m_idxmdc, m_phinjs);
117 status = m_tuple1->addIndexedItem ("Rnzjs",m_idxmdc, m_Rnzjs);
118 status = m_tuple1->addItem ("ncy20", m_ncy20);
119 status = m_tuple1->addItem ("ncy30", m_ncy30);
120 status = m_tuple1->addIndexedItem("angjs5", m_idxmdc, m_angjs5);
121 status = m_tuple1->addIndexedItem("nearjs5", m_idxmdc, m_nearjs5);
122 status = m_tuple1->addIndexedItem("angjs6", m_idxmdc, m_angjs6);
123 status = m_tuple1->addIndexedItem("nearjs6", m_idxmdc, m_nearjs6);
124 status = m_tuple1->addIndexedItem("ang4pi5", m_idxmdc, m_ang4pi5);
125 status = m_tuple1->addIndexedItem("near4pi5", m_idxmdc, m_near4pi5);
126 status = m_tuple1->addIndexedItem("ang4pi6", m_idxmdc, m_ang4pi6);
127 status = m_tuple1->addIndexedItem("near4pi6", m_idxmdc, m_near4pi6);
128 status = m_tuple1->addIndexedItem("ppmdcjs", m_idxmdc, m_ppmdcjs);
129 status = m_tuple1->addIndexedItem("pxmdcjs", m_idxmdc, m_pxmdcjs);
130 status = m_tuple1->addIndexedItem("pymdcjs", m_idxmdc, m_pymdcjs);
131 status = m_tuple1->addIndexedItem("pzmdcjs", m_idxmdc, m_pzmdcjs);
132 status = m_tuple1->addIndexedItem("ppkaljs", m_idxmdc, m_ppkaljs);
133 status = m_tuple1->addIndexedItem("ptmdcjs", m_idxmdc, m_ptmdcjs);
134 status = m_tuple1->addIndexedItem("ptkaljs", m_idxmdc, m_ptkaljs);
135 status = m_tuple1->addIndexedItem("ppmdc2kpi", m_idxmdc, m_ppmdc2kpi);
136 status = m_tuple1->addIndexedItem("pxmdc2kpi", m_idxmdc, m_pxmdc2kpi);
137 status = m_tuple1->addIndexedItem("pymdc2kpi", m_idxmdc, m_pymdc2kpi);
138 status = m_tuple1->addIndexedItem("pzmdc2kpi", m_idxmdc, m_pzmdc2kpi);
139 status = m_tuple1->addIndexedItem("ppkal2kpi", m_idxmdc, m_ppkal2kpi);
140 status = m_tuple1->addIndexedItem("ptmdc2kpi", m_idxmdc, m_ptmdc2kpi);
141 status = m_tuple1->addIndexedItem("charge2kpi", m_idxmdc, m_charge2kpi);
142 status = m_tuple1->addIndexedItem("ptkal2kpi", m_idxmdc, m_ptkal2kpi);
143 status = m_tuple1->addItem ("cy2pi", m_cy2kpi, 0, 100 );
144 status = m_tuple1->addIndexedItem("comcs2kpi", m_cy2kpi, m_comcs2kpi);
145 status = m_tuple1->addItem ("chiejs", m_idxmdc, m_chiejs);
146 status = m_tuple1->addItem ("chimujs", m_idxmdc, m_chimujs);
147 status = m_tuple1->addItem ("chipijs", m_idxmdc, m_chipijs);
148 status = m_tuple1->addItem ("chikjs", m_idxmdc, m_chikjs);
149 status = m_tuple1->addItem ("chipjs", m_idxmdc, m_chipjs);
150 status = m_tuple1->addItem ("ghitjs", m_idxmdc, m_ghitjs);
151 status = m_tuple1->addItem ("thitjs", m_idxmdc, m_thitjs);
152 status = m_tuple1->addIndexedItem("probphjs", m_idxmdc, m_probphjs);
153 status = m_tuple1->addIndexedItem("normphjs", m_idxmdc, m_normphjs);
154 status = m_tuple1->addItem ("pdg", m_idxmdc, m_pdg);
155 status = m_tuple1->addItem ("cbmc", m_idxmdc, m_cbmc);
156 status = m_tuple1->addIndexedItem("sigmaetof2kpi", m_idxmdc, m_sigmaetof2kpi);
157 status = m_tuple1->addIndexedItem("sigmamutof2kpi", m_idxmdc, m_sigmamutof2kpi);
158 status = m_tuple1->addIndexedItem("sigmapitof2kpi", m_idxmdc, m_sigmapitof2kpi);
159 status = m_tuple1->addIndexedItem("sigmaktof2kpi", m_idxmdc, m_sigmaktof2kpi);
160 status = m_tuple1->addIndexedItem("sigmaprtof2kpi", m_idxmdc, m_sigmaprtof2kpi);
161 status = m_tuple1->addIndexedItem("t0tof2kpi", m_idxmdc, m_t0tof2kpi);
162 status = m_tuple1->addIndexedItem("errt0tof2kpi", m_idxmdc, m_errt0tof2kpi);
163
164 status = m_tuple1->addItem ("chie2kpi", m_idxmdc, m_chie2kpi);
165 status = m_tuple1->addItem ("chimu2kpi", m_idxmdc, m_chimu2kpi);
166 status = m_tuple1->addItem ("chipi2kpi", m_idxmdc, m_chipi2kpi);
167 status = m_tuple1->addItem ("chik2kpi", m_idxmdc, m_chik2kpi);
168 status = m_tuple1->addItem ("chip2kpi", m_idxmdc, m_chip2kpi);
169 status = m_tuple1->addItem ("ghit2kpi", m_idxmdc, m_ghit2kpi);
170 status = m_tuple1->addItem ("thit2kpi", m_idxmdc, m_thit2kpi);
171 status = m_tuple1->addIndexedItem("probph2kpi", m_idxmdc, m_probph2kpi);
172 status = m_tuple1->addIndexedItem("normph2kpi", m_idxmdc, m_normph2kpi);
173 status = m_tuple1->addIndexedItem("pidnum2kpi", m_idxmdc, m_pidnum2kpi);
174 status = m_tuple1->addIndexedItem("bjmucjs", m_idxmdc, m_bjmucjs);
175 status = m_tuple1->addIndexedItem("bjmuc2kpi", m_idxmdc, m_bjmuc2kpi);
176 status = m_tuple1->addIndexedItem("bjemcjs", m_idxmdc, m_bjemcjs);
177 status = m_tuple1->addIndexedItem("bjemc2kpi", m_idxmdc, m_bjemc2kpi);
178 status = m_tuple1->addIndexedItem("bjtofjs", m_idxmdc, m_bjtofjs);
179 status = m_tuple1->addIndexedItem("bjtof2kpi", m_idxmdc, m_bjtof2kpi);
180 status = m_tuple1->addIndexedItem("bjtofvaljs", m_idxmdc, m_bjtofvaljs);
181 status = m_tuple1->addIndexedItem("bjtofval2kpi", m_idxmdc, m_bjtofval2kpi);
182
183 status = m_tuple1->addIndexedItem("emcjs", m_idxmdc, m_emcjs);
184 status = m_tuple1->addIndexedItem("evpjs", m_idxmdc, m_evpjs);
185 status = m_tuple1->addIndexedItem("timecgjs", m_idxmdc, m_timecgjs);
186 status = m_tuple1->addIndexedItem("depthjs", m_idxmdc, m_depthmucjs);
187 status = m_tuple1->addIndexedItem("layermucjs", m_idxmdc, m_layermucjs);
188
189 status = m_tuple1->addIndexedItem("emc2kpi", m_idxmdc, m_emc2kpi);
190 status = m_tuple1->addIndexedItem("evp2kpi", m_idxmdc, m_evp2kpi);
191 status = m_tuple1->addIndexedItem("timecg2kpi", m_idxmdc, m_timecg2kpi);
192 status = m_tuple1->addIndexedItem("depth2kpi", m_idxmdc, m_depthmuc2kpi);
193 status = m_tuple1->addIndexedItem("layermuc2kpi", m_idxmdc, m_layermuc2kpi);
194
195 status = m_tuple1->addIndexedItem("cotof1js", m_idxmdc, m_cotof1js);
196 status = m_tuple1->addIndexedItem("cotof2js", m_idxmdc, m_cotof2js);
197 status = m_tuple1->addIndexedItem("counterjs", m_idxmdc, m_counterjs);
198 status = m_tuple1->addIndexedItem("barreljs", m_idxmdc, m_barreljs);
199 status = m_tuple1->addIndexedItem("layertofjs", m_idxmdc, m_layertofjs);
200 status = m_tuple1->addIndexedItem("readoutjs", m_idxmdc, m_readoutjs);
201 status = m_tuple1->addIndexedItem("clusterjs", m_idxmdc, m_clusterjs);
202 status = m_tuple1->addIndexedItem("betajs", m_idxmdc, m_betajs);
203 status = m_tuple1->addIndexedItem("tofjs", m_idxmdc, m_tofjs);
204 status = m_tuple1->addIndexedItem("tofpathjs", m_idxmdc, m_tofpathjs);
205 status = m_tuple1->addIndexedItem("zhitjs", m_idxmdc, m_zhitjs);
206 status = m_tuple1->addIndexedItem("tofIDjs", m_idxmdc, m_tofIDjs);
207 status = m_tuple1->addIndexedItem("clusterIDjs", m_idxmdc, m_clusterIDjs);
208 status = m_tuple1->addIndexedItem("texejs", m_idxmdc, m_texejs);
209 status = m_tuple1->addIndexedItem("texmujs", m_idxmdc, m_texmujs);
210 status = m_tuple1->addIndexedItem("texpijs", m_idxmdc, m_texpijs);
211 status = m_tuple1->addIndexedItem("texkjs", m_idxmdc, m_texkjs);
212 status = m_tuple1->addIndexedItem("texprjs", m_idxmdc, m_texprjs);
213 status = m_tuple1->addIndexedItem("dtejs", m_idxmdc, m_dtejs);
214 status = m_tuple1->addIndexedItem("dtmujs", m_idxmdc, m_dtmujs);
215 status = m_tuple1->addIndexedItem("dtpijs", m_idxmdc, m_dtpijs);
216 status = m_tuple1->addIndexedItem("dtkjs", m_idxmdc, m_dtkjs);
217 status = m_tuple1->addIndexedItem("dtprjs", m_idxmdc, m_dtprjs);
218 status = m_tuple1->addIndexedItem("sigmaetofjs", m_idxmdc, m_sigmaetofjs);
219 status = m_tuple1->addIndexedItem("sigmamutofjs", m_idxmdc, m_sigmamutofjs);
220 status = m_tuple1->addIndexedItem("sigmapitofjs", m_idxmdc, m_sigmapitofjs);
221 status = m_tuple1->addIndexedItem("sigmaktofjs", m_idxmdc, m_sigmaktofjs);
222 status = m_tuple1->addIndexedItem("sigmaprtofjs", m_idxmdc, m_sigmaprtofjs);
223 status = m_tuple1->addIndexedItem("t0tofjs", m_idxmdc,m_t0tofjs);
224 status = m_tuple1->addIndexedItem("errt0tofjs", m_idxmdc,m_errt0tofjs);
225 status = m_tuple1->addIndexedItem("cotof12kpi", m_idxmdc, m_cotof12kpi);
226 status = m_tuple1->addIndexedItem("cotof22kpi", m_idxmdc, m_cotof22kpi);
227 status = m_tuple1->addIndexedItem("counter2kpi", m_idxmdc, m_counter2kpi);
228 status = m_tuple1->addIndexedItem("barrel2kpi", m_idxmdc, m_barrel2kpi);
229 status = m_tuple1->addIndexedItem("layertof2kpi", m_idxmdc, m_layertof2kpi);
230 status = m_tuple1->addIndexedItem("readout2kpi", m_idxmdc, m_readout2kpi);
231 status = m_tuple1->addIndexedItem("cluster2kpi", m_idxmdc, m_cluster2kpi);
232 status = m_tuple1->addIndexedItem("beta2kpi", m_idxmdc, m_beta2kpi);
233 status = m_tuple1->addIndexedItem("tof2kpi", m_idxmdc, m_tof2kpi);
234 status = m_tuple1->addIndexedItem("tofpath2kpi", m_idxmdc, m_tofpath2kpi);
235 status = m_tuple1->addIndexedItem("zhit2kpi", m_idxmdc, m_zhit2kpi);
236 status = m_tuple1->addIndexedItem("tofID2kpi", m_idxmdc, m_tofID2kpi);
237 status = m_tuple1->addIndexedItem("clusterID2kpi", m_idxmdc, m_clusterID2kpi);
238 status = m_tuple1->addIndexedItem("texe2kpi", m_idxmdc, m_texe2kpi);
239 status = m_tuple1->addIndexedItem("texmu2kpi", m_idxmdc, m_texmu2kpi);
240 status = m_tuple1->addIndexedItem("texpi2kpi", m_idxmdc, m_texpi2kpi);
241 status = m_tuple1->addIndexedItem("texk2kpi", m_idxmdc, m_texk2kpi);
242 status = m_tuple1->addIndexedItem("texpr2kpi", m_idxmdc, m_texpr2kpi);
243 status = m_tuple1->addIndexedItem("dte2kpi", m_idxmdc, m_dte2kpi);
244 status = m_tuple1->addIndexedItem("dtmu2kpi", m_idxmdc, m_dtmu2kpi);
245 status = m_tuple1->addIndexedItem("dtpi2kpi", m_idxmdc, m_dtpi2kpi);
246 status = m_tuple1->addIndexedItem("dtk2kpi", m_idxmdc, m_dtk2kpi);
247 status = m_tuple1->addIndexedItem("dtpr2kpi", m_idxmdc, m_dtpr2kpi);
248 status = m_tuple1->addIndexedItem("costpid2kpi", m_idxmdc, m_costpid2kpi);
249 status = m_tuple1->addIndexedItem("dedxpid2kpi", m_idxmdc, m_dedxpid2kpi);
250 status = m_tuple1->addIndexedItem("tof1pid2kpi", m_idxmdc, m_tof1pid2kpi);
251 status = m_tuple1->addIndexedItem("tof2pid2kpi", m_idxmdc, m_tof2pid2kpi);
252 status = m_tuple1->addIndexedItem("probe2kpi", m_idxmdc, m_probe2kpi);
253 status = m_tuple1->addIndexedItem("probmu2kpi", m_idxmdc, m_probmu2kpi);
254 status = m_tuple1->addIndexedItem("probpi2kpi", m_idxmdc, m_probpi2kpi);
255 status = m_tuple1->addIndexedItem("probk2kpi", m_idxmdc, m_probk2kpi);
256 status = m_tuple1->addIndexedItem("probpr2kpi", m_idxmdc, m_probpr2kpi);
257
258 status = m_tuple1->addIndexedItem("chipidxpid2kpi", m_idxmdc, m_chipidxpid2kpi);
259 status = m_tuple1->addIndexedItem("chipitof1pid2kpi", m_idxmdc, m_chipitof1pid2kpi);
260 status = m_tuple1->addIndexedItem("chipitof2pid2kpi", m_idxmdc, m_chipitof2pid2kpi);
261 status = m_tuple1->addIndexedItem("chipitofpid2kpi", m_idxmdc, m_chipitofpid2kpi);
262 status = m_tuple1->addIndexedItem("chipitofepid2kpi", m_idxmdc, m_chipitofepid2kpi);
263 status = m_tuple1->addIndexedItem("chipitofqpid2kpi", m_idxmdc, m_chipitofqpid2kpi);
264 status = m_tuple1->addIndexedItem("probpidxpid2kpi", m_idxmdc, m_probpidxpid2kpi);
265 status = m_tuple1->addIndexedItem("probpitofpid2kpi", m_idxmdc, m_probpitofpid2kpi);
266 status = m_tuple1->addIndexedItem("chikdxpid2kpi", m_idxmdc, m_chikdxpid2kpi);
267 status = m_tuple1->addIndexedItem("chiktof1pid2kpi", m_idxmdc, m_chiktof1pid2kpi);
268 status = m_tuple1->addIndexedItem("chiktof2pid2kpi", m_idxmdc, m_chiktof2pid2kpi);
269 status = m_tuple1->addIndexedItem("chiktofpid2kpi", m_idxmdc, m_chiktofpid2kpi);
270 status = m_tuple1->addIndexedItem("chiktofepid2kpi", m_idxmdc, m_chiktofepid2kpi);
271 status = m_tuple1->addIndexedItem("chiktofqpid2kpi", m_idxmdc, m_chiktofqpid2kpi);
272 status = m_tuple1->addIndexedItem("probkdxpid2kpi", m_idxmdc, m_probkdxpid2kpi);
273 status = m_tuple1->addIndexedItem("probktofpid2kpi", m_idxmdc, m_probktofpid2kpi);
274
275 status = m_tuple1->addIndexedItem("chiprdxpid2kpi", m_idxmdc, m_chiprdxpid2kpi);
276 status = m_tuple1->addIndexedItem("chiprtof1pid2kpi", m_idxmdc, m_chiprtof1pid2kpi);
277 status = m_tuple1->addIndexedItem("chiprtof2pid2kpi", m_idxmdc, m_chiprtof2pid2kpi);
278 status = m_tuple1->addIndexedItem("chiprtofpid2kpi", m_idxmdc, m_chiprtofpid2kpi);
279 status = m_tuple1->addIndexedItem("chiprtofepid2kpi", m_idxmdc, m_chiprtofepid2kpi);
280 status = m_tuple1->addIndexedItem("chiprtofqpid2kpi", m_idxmdc, m_chiprtofqpid2kpi);
281 status = m_tuple1->addIndexedItem("probprdxpid2kpi", m_idxmdc, m_probprdxpid2kpi);
282 status = m_tuple1->addIndexedItem("probprtofpid2kpi", m_idxmdc, m_probprtofpid2kpi);
283
284 status = m_tuple1->addIndexedItem("cosmdcjs", m_idxmdc, m_cosmdcjs);
285 status = m_tuple1->addIndexedItem("phimdcjs", m_idxmdc, m_phimdcjs);
286 status = m_tuple1->addIndexedItem("cosmdc2kpi", m_idxmdc, m_cosmdc2kpi);
287 status = m_tuple1->addIndexedItem("phimdc2kpi", m_idxmdc, m_phimdc2kpi);
288
289 status = m_tuple1->addIndexedItem("dedxpidjs", m_idxmdc, m_dedxpidjs);
290 status = m_tuple1->addIndexedItem("tof1pidjs", m_idxmdc, m_tof1pidjs);
291 status = m_tuple1->addIndexedItem("tof2pidjs", m_idxmdc, m_tof2pidjs);
292 status = m_tuple1->addIndexedItem("probejs", m_idxmdc, m_probejs);
293 status = m_tuple1->addIndexedItem("probmujs", m_idxmdc, m_probmujs);
294 status = m_tuple1->addIndexedItem("probpijs", m_idxmdc, m_probpijs);
295 status = m_tuple1->addIndexedItem("probkjs", m_idxmdc, m_probkjs);
296 status = m_tuple1->addIndexedItem("probprjs", m_idxmdc, m_probprjs);
297 status = m_tuple1->addItem ("mchic2kpi", m_mchic2kpi);
298 status = m_tuple1->addItem ("mpsip2kpi", m_mpsip2kpi);
299 status = m_tuple1->addItem ("chis2kpi", m_chis2kpi);
300 status = m_tuple1->addItem ("mchic4c2kpi", m_mchic4c2kpi);
301 status = m_tuple1->addItem ("mpsip4c2kpi", m_mpsip4c2kpi);
302 status = m_tuple1->addItem ("chis4c2kpi", m_chis4c2kpi);
303
304 status = m_tuple1->addItem("indexemc", m_idxemc, 0, 5000);
305 status = m_tuple1->addIndexedItem("numHits", m_idxemc, m_numHits);
306 status = m_tuple1->addIndexedItem("secmom", m_idxemc, m_secondmoment);
307 status = m_tuple1->addIndexedItem("latmom", m_idxemc, m_latmoment);
308 status = m_tuple1->addIndexedItem("timegm", m_idxemc, m_timegm);
309 status = m_tuple1->addIndexedItem("cellId", m_idxemc, m_cellId);
310 status = m_tuple1->addIndexedItem("module", m_idxemc, m_module);
311 status = m_tuple1->addIndexedItem("a20Moment", m_idxemc, m_a20Moment);
312 status = m_tuple1->addIndexedItem("a42Moment", m_idxemc, m_a42Moment);
313 status = m_tuple1->addIndexedItem("getEAll", m_idxemc, m_getEAll);
314 status = m_tuple1->addIndexedItem("getShowerId", m_idxemc, m_getShowerId);
315 status = m_tuple1->addIndexedItem("getClusterId", m_idxemc, m_getClusterId);
316 status = m_tuple1->addIndexedItem("x", m_idxemc, m_x);
317 status = m_tuple1->addIndexedItem("y", m_idxemc, m_y);
318 status = m_tuple1->addIndexedItem("z", m_idxemc, m_z);
319 status = m_tuple1->addIndexedItem("cosemc", m_idxemc, m_cosemc);
320 status = m_tuple1->addIndexedItem("phiemc", m_idxemc, m_phiemc);
321 status = m_tuple1->addIndexedItem("energy", m_idxemc, m_energy);
322 status = m_tuple1->addIndexedItem("e1", m_idxemc, m_eSeed);
323 status = m_tuple1->addIndexedItem("e9", m_idxemc, m_e3x3);
324 status = m_tuple1->addIndexedItem("e25", m_idxemc, m_e5x5);
325 status = m_tuple1->addIndexedItem("dang4c", m_idxemc, m_dang4c);
326 status = m_tuple1->addIndexedItem("dthe4c", m_idxemc, m_dthe4c);
327 status = m_tuple1->addIndexedItem("dphi4c", m_idxemc, m_dphi4c);
328 status = m_tuple1->addIndexedItem("dang4crt", m_idxemc, m_dang4crt);
329 status = m_tuple1->addIndexedItem("dthe4crt", m_idxemc, m_dthe4crt);
330 status = m_tuple1->addIndexedItem("dphi4crt", m_idxemc, m_dphi4crt);
331 status = m_tuple1->addIndexedItem("phtof", m_idxemc, 3, m_phgmtof,0.0,10000.0);
332 status = m_tuple1->addIndexedItem("phgmtof0", m_idxemc, m_phgmtof0);
333 status = m_tuple1->addIndexedItem("phgmtof1", m_idxemc, m_phgmtof1);
334 status = m_tuple1->addIndexedItem("phgmtof2", m_idxemc, m_phgmtof2);
335
336 }
337 else {
338 log << MSG::ERROR << " Cannot book N-tuple:" << long(m_tuple1) << endmsg;
339 return StatusCode::FAILURE;
340 }
341 }
342}
343
344StatusCode sc;
345
346 if(m_skim4pi)
347 {
348 sc = createSubAlgorithm( "EventWriter", "Selectgam4pi", m_subalg1);
349 if( sc.isFailure() ) {
350 log << MSG::ERROR << "Error creating Sub-Algorithm Selectgam4pi" <<endreq;
351 return sc;
352 } else {
353 log << MSG::INFO << "Success creating Sub-Algorithm Selectgam4pi" <<endreq;
354 }
355 }
356
357
358 if(m_skim4k)
359 {
360 sc = createSubAlgorithm( "EventWriter", "Selectgam4k", m_subalg2);
361 if( sc.isFailure() ) {
362 log << MSG::ERROR << "Error creating Sub-Algorithm Selectgam4k" <<endreq;
363 return sc;
364 } else {
365 log << MSG::INFO << "Success creating Sub-Algorithm Selectgam4k" <<endreq;
366 }
367 }
368
369 if(m_skim2pi2pr)
370 {
371 sc = createSubAlgorithm( "EventWriter", "Selectgam2pi2pr", m_subalg3);
372 if( sc.isFailure() ) {
373 log << MSG::ERROR << "Error creating Sub-Algorithm Selectgam2pi2pr" <<endreq;
374 return sc;
375 } else {
376 log << MSG::INFO << "Success creating Sub-Algorithm Selectgam2pi2pr" <<endreq;
377 }
378 }
379
380
381
382
383
384
385
386
387 log << MSG::INFO << "successfully return from initialize()" <<endmsg;
388 return StatusCode::SUCCESS;
389
390}