BOSS 6.6.4.p03
BESIII Offline Software System
Loading...
Searching...
No Matches
commonData.cxx
Go to the documentation of this file.
7 // common data for the 3 different trees. This data is needed
8 // when writing/reading relations which cross the boundaries of
9 // Monte Carlo, Digitization, and Reconstruction data.
10
11
12std::map<const MdcDigi*, TRef> commonData::m_mdcDigiMap;
13std::map<const TObject*, const MdcDigi*> commonData::m_rootMdcDigiMap;
14
15std::map<const EmcDigi*, TRef> commonData::m_emcDigiMap;
16std::map<const TObject*, const EmcDigi*> commonData::m_rootEmcDigiMap;
17
18std::map<const TofDigi*, TRef> commonData::m_tofDigiMap;
19std::map<const TObject*, const TofDigi*> commonData::m_rootTofDigiMap;
20
21std::map<const MucDigi*, TRef> commonData::m_mucDigiMap;
22std::map<const TObject*, const MucDigi*> commonData::m_rootMucDigiMap;
23
24std::map<const LumiDigi*, TRef> commonData::m_lumiDigiMap;
25std::map<const TObject*, const LumiDigi*> commonData::m_rootLumiDigiMap;
26
27std::map<const DstEmcShower*, TRef> commonData::m_emcShowerMap;
28std::map<const TObject*, const DstEmcShower*> commonData::m_rootEmcShowerMap;
29
30std::map<const DstMdcTrack*, TRef> commonData::m_mdcTrackMap;
31std::map<const TObject*, const DstMdcTrack*> commonData::m_rootMdcTrackMap;
32
33std::map<const DstMucTrack*, TRef> commonData::m_mucTrackMap;
34std::map<const TObject*, const DstMucTrack*> commonData::m_rootMucTrackMap;
35
36std::map<const DstTofTrack*, TRef> commonData::m_tofTrackMap;
37std::map<const TObject*, const DstTofTrack*> commonData::m_rootTofTrackMap;
38
39std::map<const DstMdcDedx*, TRef> commonData::m_mdcDedxMap;
40std::map<const TObject*, const DstMdcDedx*> commonData::m_rootMdcDedxMap;
41
42std::map<const DstExtTrack*, TRef> commonData::m_extTrackMap;
43std::map<const TObject*, const DstExtTrack*> commonData::m_rootExtTrackMap;
44
45std::map<const DstMdcKalTrack*, TRef> commonData::m_mdcKalTrackMap; // Add on Oct.10
46std::map<const TObject*, const DstMdcKalTrack*> commonData::m_rootMdcKalTrackMap; // Add on Oct.10
47
48
49
50//
51std::map<const RecEmcHit*, TRef> commonData::m_recEmcHitMap;
52std::map<const TObject*, const RecEmcHit*> commonData::m_rootRecEmcHitMap;
53
54std::map<const RecMdcTrack*, TRef> commonData::m_recMdcTrackMap;
55std::map<const TObject*, const RecMdcTrack*> commonData::m_rootRecMdcTrackMap;
56
57std::map<const RecMdcHit*, TRef> commonData::m_recMdcHitMap;
58std::map<const TObject*, const RecMdcHit*> commonData::m_rootRecMdcHitMap;
59
60std::map<const RecEmcCluster*, TRef> commonData::m_recEmcClusterMap;
61std::map<const TObject*, const RecEmcCluster*> commonData::m_rootRecEmcClusterMap;
62
63std::map<const RecEmcShower*, TRef> commonData::m_recEmcShowerMap;
64std::map<const TObject*, const RecEmcShower*> commonData::m_rootRecEmcShowerMap;
65
66std::map<const RecTofTrack*, TRef> commonData::m_RecTofTrackMap;
67std::map<const TObject*, const RecTofTrack*> commonData::m_rootRecTofTrackMap;
68
69std::map<const RecMucTrack*, TRef> commonData::m_RecMucTrackMap;
70std::map<const TObject*, const RecMucTrack*> commonData::m_rootRecMucTrackMap;
71
72std::map<const RecMdcDedx*, TRef> commonData::m_recMdcDedxMap;
73std::map<const TObject*, const RecMdcDedx*> commonData::m_rootRecMdcDedxMap;
74
75std::map<const RecMdcDedxHit*, TRef> commonData::m_recMdcDedxHitMap;
76std::map<const TObject*, const RecMdcDedxHit*> commonData::m_rootRecMdcDedxHitMap;
77
78std::map<const RecMdcKalTrack*, TRef> commonData::m_recMdcKalTrackMap; // Add on Oct.10
79std::map<const TObject*, const RecMdcKalTrack*> commonData::m_rootRecMdcKalTrackMap; // Add on Oct.10
80
81std::map<const RecMdcKalHelixSeg*, TRef> commonData::m_recMdcKalHelixSegMap;
82std::map<const TObject*, const RecMdcKalHelixSeg*> commonData::m_rootRecMdcKalHelixSegMap;
83
84std::map<const RecEsTime*, TRef> commonData::m_RecEvTimeMap;
85std::map<const TObject*, const RecEsTime*> commonData::m_rootRecEvTimeMap;
86
87// Event after EventAssembly
88//
89std::map<const EvtRecTrack*, TRef> commonData::m_EvtRecTrackMap;
90std::map<const TObject*, const EvtRecTrack*> commonData::m_rootEvtRecTrackMap;
91
92std::map<const EvtRecVeeVertex*, TRef> commonData::m_evtRecVeeVertexMap;
93std::map<const TObject*, const EvtRecVeeVertex*> commonData::m_rootEvtRecVeeVertexMap;
94
95
96std::map<const EvtRecPi0*, TRef> commonData::m_evtRecPi0Map;
97std::map<const TObject*, const EvtRecPi0*> commonData::m_rootEvtRecPi0Map;
98
99
100std::map<const EvtRecEtaToGG*, TRef> commonData::m_evtRecEtaToGGMap;
101std::map<const TObject*, const EvtRecEtaToGG*> commonData::m_rootEvtRecEtaToGGMap;
102
103std::map<const EvtRecDTag*, TRef> commonData::m_evtRecDTagMap;
104std::map<const TObject*, const EvtRecDTag*> commonData::m_rootEvtRecDTagMap;
105
106
107
108//for McTruth
109std::map<const MdcMcHit*, TRef> commonData::m_mdcMcHitMap;
110std::map<const TObject*, const MdcMcHit*> commonData::m_rootMdcMcHitMap;
111
112std::map<const EmcMcHit*, TRef> commonData::m_emcMcHitMap;
113std::map<const TObject*, const EmcMcHit*> commonData::m_rootEmcMcHitMap;
114
115std::map<const TofMcHit*, TRef> commonData::m_tofMcHitMap;
116std::map<const TObject*, const TofMcHit*> commonData::m_rootTofMcHitMap;
117
118std::map<const MucMcHit*, TRef> commonData::m_mucMcHitMap;
119std::map<const TObject*, const MucMcHit*> commonData::m_rootMucMcHitMap;
120
121std::map<const McParticle*, TRef> commonData::m_mcParticleMap;
122std::map<const TObject*, const McParticle*> commonData::m_rootMcParticleMap;
123
124//std::map<const DecayMode*, TRef> commonData::m_decayModeMap;
125//std::map<const TObject*, const DecayMode*> commonData::m_rootDecayModeMap;
126
127std::map<const TrigData*, TRef> commonData::m_trigDataMap; //caogf
128std::map<const TObject*, const TrigData*> commonData::m_rootTrigDataMap; //caogf
129
130std::map<const HltRaw*, TRef> commonData::m_hltRawMap; //fucd
131std::map<const TObject*, const HltRaw*> commonData::m_rootHltRawMap; //fucd
132std::map<const HltInf*, TRef> commonData::m_hltInfMap; //fucd
133std::map<const TObject*, const HltInf*> commonData::m_rootHltInfMap; //fucd
134std::map<const DstHltInf*, TRef> commonData::m_dstHltInfMap; //fucd
135std::map<const TObject*, const DstHltInf*> commonData::m_rootDstHltInfMap; //fucd
136
146
148//for digi
149
150 if (m_recEvt != NULL) {
151 delete m_recEvt;
152 m_recEvt = NULL;
153 }
154 if (m_dstEvt != NULL) {
155 delete m_dstEvt;
156 m_dstEvt = NULL;
157 }
158 if (m_mcEvt != NULL) {
159 delete m_mcEvt;
160 m_mcEvt = NULL;
161 }
162 if (m_rectrackEvt != NULL) { //2007-10-04
163 delete m_rectrackEvt;
164 m_rectrackEvt = NULL;
165 }
166 if (m_EvtHeader != NULL){
167 delete m_EvtHeader;
168 m_EvtHeader = NULL;
169 }
170 if (m_EvtNavigator != NULL){
171 delete m_EvtNavigator;
172 m_EvtNavigator = NULL;
173 }
174 if(m_trigEvt != NULL){
175 delete m_trigEvt;
176 m_trigEvt = NULL;
177 }
178 if(m_hltEvt != NULL){
179 delete m_hltEvt;
180 m_hltEvt = NULL;
181 }
182 if ( m_evtRecObject != NULL ) {
183 delete m_evtRecObject;
184 m_evtRecObject = NULL;
185 }
186
187 for (std::map<const MdcDigi*, TRef>::iterator iter = m_mdcDigiMap.begin();
188 iter != m_mdcDigiMap.end(); iter++) {
189 delete (*iter).second.GetObject();
190 delete (*iter).first;
191 }
192 m_mdcDigiMap.clear();
193 for (std::map<const TObject*, const MdcDigi*>::iterator iter = m_rootMdcDigiMap.begin();
194 iter != m_rootMdcDigiMap.end(); iter++) {
195 delete (*iter).first;
196 }
197 m_rootMdcDigiMap.clear();
198
199 for (std::map<const EmcDigi*, TRef>::iterator iter = m_emcDigiMap.begin();
200 iter != m_emcDigiMap.end(); iter++) {
201 delete (*iter).second.GetObject();
202 delete (*iter).first;
203 }
204 m_emcDigiMap.clear();
205 for (std::map<const TObject*, const EmcDigi*>::iterator iter = m_rootEmcDigiMap.begin();
206 iter != m_rootEmcDigiMap.end(); iter++) {
207 delete (*iter).first;
208 }
209 m_rootEmcDigiMap.clear();
210
211 for (std::map<const TofDigi*, TRef>::iterator iter = m_tofDigiMap.begin();
212 iter != m_tofDigiMap.end(); iter++) {
213 delete (*iter).second.GetObject();
214 delete (*iter).first;
215 }
216 m_tofDigiMap.clear();
217 for (std::map<const TObject*, const TofDigi*>::iterator iter = m_rootTofDigiMap.begin();
218 iter != m_rootTofDigiMap.end(); iter++) {
219 delete (*iter).first;
220 }
221 m_rootTofDigiMap.clear();
222
223 for (std::map<const MucDigi*, TRef>::iterator iter = m_mucDigiMap.begin();
224 iter != m_mucDigiMap.end(); iter++) {
225 delete (*iter).second.GetObject();
226 delete (*iter).first;
227 }
228 m_mucDigiMap.clear();
229 for (std::map<const TObject*, const MucDigi*>::iterator iter = m_rootMucDigiMap.begin();
230 iter != m_rootMucDigiMap.end(); iter++) {
231 delete (*iter).first;
232 }
233 m_rootMucDigiMap.clear();
234
235 for ( std::map<const LumiDigi*, TRef>::iterator iter = m_lumiDigiMap.begin();
236 iter != m_lumiDigiMap.end(); ++iter) {
237 delete (*iter).second.GetObject();
238 delete (*iter).first;
239 }
240 m_lumiDigiMap.clear();
241 for ( std::map<const TObject*, const LumiDigi*>::iterator iter = m_rootLumiDigiMap.begin();
242 iter != m_rootLumiDigiMap.end(); ++iter) {
243 delete (*iter).first;
244 }
245 m_rootLumiDigiMap.clear();
246
247 //for dst
248 for (std::map<const DstEmcShower*, TRef>::iterator iter = m_emcShowerMap.begin();
249 iter != m_emcShowerMap.end(); iter++) {
250 delete (*iter).second.GetObject();
251 delete (*iter).first;
252 }
253 m_emcShowerMap.clear();
254 for (std::map<const TObject*, const DstEmcShower*>::iterator iter = m_rootEmcShowerMap.begin();
255 iter != m_rootEmcShowerMap.end(); iter++) {
256 delete (*iter).first;
257 }
258 m_rootEmcShowerMap.clear();
259 /*
260 for (std::map<const DstMdcTrack*, TRef>::iterator p = m_mdcTrackMap.begin(); p != m_mdcTrackMap.end();p++){
261 std::cout << "********The first is ****************" << (*p).first <<endl;
262 //std::cout << "*********The second is " << (*p).second <<endl;
263 }
264 */
265 for (std::map<const DstMdcTrack*, TRef>::iterator iter = m_mdcTrackMap.begin();
266 iter != m_mdcTrackMap.end(); iter++) {
267 delete (*iter).second.GetObject();
268 delete (*iter).first;
269 }
270 m_mdcTrackMap.clear();
271 for (std::map<const TObject*, const DstMdcTrack*>::iterator iter = m_rootMdcTrackMap.begin();
272 iter != m_rootMdcTrackMap.end(); iter++) {
273 delete (*iter).first;
274 }
275 m_rootMdcTrackMap.clear();
276
277 for (std::map<const DstMucTrack*, TRef>::iterator iter = m_mucTrackMap.begin();
278 iter != m_mucTrackMap.end(); iter++) {
279 delete (*iter).second.GetObject();
280 delete (*iter).first;
281 }
282 m_mucTrackMap.clear();
283 for (std::map<const TObject*, const DstMucTrack*>::iterator iter = m_rootMucTrackMap.begin();
284 iter != m_rootMucTrackMap.end(); iter++) {
285 delete (*iter).first;
286 }
287 m_rootMucTrackMap.clear();
288
289 for (std::map<const DstTofTrack*, TRef>::iterator iter = m_tofTrackMap.begin();
290 iter != m_tofTrackMap.end(); iter++) {
291 delete (*iter).second.GetObject();
292 delete (*iter).first;
293 }
294 m_tofTrackMap.clear();
295 for (std::map<const TObject*, const DstTofTrack*>::iterator iter = m_rootTofTrackMap.begin();
296 iter != m_rootTofTrackMap.end(); iter++) {
297 delete (*iter).first;
298 }
299 m_rootTofTrackMap.clear();
300
301 for (std::map<const DstMdcDedx*, TRef>::iterator iter = m_mdcDedxMap.begin();
302 iter != m_mdcDedxMap.end(); iter++) {
303 delete (*iter).second.GetObject();
304 delete (*iter).first;
305 }
306 m_mdcDedxMap.clear();
307 for (std::map<const TObject*, const DstMdcDedx*>::iterator iter = m_rootMdcDedxMap.begin();
308 iter != m_rootMdcDedxMap.end(); iter++) {
309 delete (*iter).first;
310 }
311 m_rootMdcDedxMap.clear();
312
313 for (std::map<const DstExtTrack*, TRef>::iterator iter = m_extTrackMap.begin();
314 iter != m_extTrackMap.end(); iter++) {
315 delete (*iter).second.GetObject();
316 delete (*iter).first;
317 }
318 m_extTrackMap.clear();
319 for (std::map<const TObject*, const DstExtTrack*>::iterator iter = m_rootExtTrackMap.begin();
320 iter != m_rootExtTrackMap.end(); iter++) {
321 delete (*iter).first;
322 }
323 m_rootExtTrackMap.clear();
324
325 for (std::map<const DstMdcKalTrack*, TRef>::iterator iter = m_mdcKalTrackMap.begin();
326 iter != m_mdcKalTrackMap.end(); iter++) {
327 delete (*iter).second.GetObject();
328 delete (*iter).first;
329 }
330 m_mdcKalTrackMap.clear();
331 for (std::map<const TObject*, const DstMdcKalTrack*>::iterator iter = m_rootMdcKalTrackMap.begin();
332 iter != m_rootMdcKalTrackMap.end(); iter++) {
333 delete (*iter).first;
334 }
335 m_rootMdcKalTrackMap.clear();
336 // for McTruth
337 for (std::map<const MdcMcHit*, TRef>::iterator iter = m_mdcMcHitMap.begin();
338 iter != m_mdcMcHitMap.end(); iter++) {
339 delete (*iter).second.GetObject();
340 delete (*iter).first;
341 }
342 m_mdcMcHitMap.clear();
343 for (std::map<const TObject*, const MdcMcHit*>::iterator iter = m_rootMdcMcHitMap.begin();
344 iter != m_rootMdcMcHitMap.end(); iter++) {
345 delete (*iter).first;
346 }
347 m_rootMdcMcHitMap.clear();
348
349 for (std::map<const EmcMcHit*, TRef>::iterator iter = m_emcMcHitMap.begin();
350 iter != m_emcMcHitMap.end(); iter++) {
351 delete (*iter).second.GetObject();
352 delete (*iter).first;
353 }
354 m_emcMcHitMap.clear();
355 for (std::map<const TObject*, const EmcMcHit*>::iterator iter = m_rootEmcMcHitMap.begin();
356 iter != m_rootEmcMcHitMap.end(); iter++) {
357 delete (*iter).first;
358 }
359 m_rootEmcMcHitMap.clear();
360
361 for (std::map<const TofMcHit*, TRef>::iterator iter = m_tofMcHitMap.begin();
362 iter != m_tofMcHitMap.end(); iter++) {
363 delete (*iter).second.GetObject();
364 delete (*iter).first;
365 }
366 m_tofMcHitMap.clear();
367 for (std::map<const TObject*, const TofMcHit*>::iterator iter = m_rootTofMcHitMap.begin();
368 iter != m_rootTofMcHitMap.end(); iter++) {
369 delete (*iter).first;
370 }
371 m_rootTofMcHitMap.clear();
372
373 for (std::map<const MucMcHit*, TRef>::iterator iter = m_mucMcHitMap.begin();
374 iter != m_mucMcHitMap.end(); iter++) {
375 delete (*iter).second.GetObject();
376 delete (*iter).first;
377 }
378 m_mucMcHitMap.clear();
379 for (std::map<const TObject*, const MucMcHit*>::iterator iter = m_rootMucMcHitMap.begin();
380 iter != m_rootMucMcHitMap.end(); iter++) {
381 delete (*iter).first;
382 }
383 m_rootMucMcHitMap.clear();
384
385 for (std::map<const McParticle*, TRef>::iterator iter = m_mcParticleMap.begin();
386 iter != m_mcParticleMap.end(); iter++) {
387 delete (*iter).second.GetObject();
388 delete (*iter).first;
389 }
390 m_mcParticleMap.clear();
391 for (std::map<const TObject*, const McParticle*>::iterator iter = m_rootMcParticleMap.begin();
392 iter != m_rootMcParticleMap.end(); iter++) {
393 delete (*iter).first;
394 }
395 m_rootMcParticleMap.clear();
396
397 //m_decayModeMap.clear();
398 //m_rootDecayModeMap.clear();
399
400//m_decayModeMap.clear();
401//m_rootDecayModeMap.clear();
402
403 //for Trig
404 m_trigDataMap.clear();
405 m_rootTrigDataMap.clear();
406
407 //for event filter
408 for (std::map<const HltRaw*, TRef>::iterator iter = m_hltRawMap.begin();
409 iter != m_hltRawMap.end(); iter++) {
410 delete (*iter).second.GetObject();
411 delete (*iter).first;
412 }
413 m_hltRawMap.clear();
414 for (std::map<const TObject*, const HltRaw*>::iterator iter = m_rootHltRawMap.begin();
415 iter != m_rootHltRawMap.end(); iter++) {
416 delete (*iter).first;
417 }
418 m_rootHltRawMap.clear();
419 m_hltInfMap.clear();
420 m_rootHltInfMap.clear();
421 m_dstHltInfMap.clear();
422 m_rootDstHltInfMap.clear();
423 //for Rec
424 //Mdc
425 for (std::map<const RecMdcTrack*, TRef>::iterator iter = m_recMdcTrackMap.begin();
426 iter != m_recMdcTrackMap.end(); iter++) {
427 delete (*iter).second.GetObject();
428 delete (*iter).first;
429 }
430 m_recMdcTrackMap.clear();
431 for (std::map<const TObject*, const RecMdcTrack*>::iterator iter = m_rootRecMdcTrackMap.begin();
432 iter != m_rootRecMdcTrackMap.end(); iter++) {
433 delete (*iter).first;
434 }
435 m_rootRecMdcTrackMap.clear();
436 for (std::map<const RecMdcHit*, TRef>::iterator iter = m_recMdcHitMap.begin();
437 iter != m_recMdcHitMap.end(); iter++) {
438 delete (*iter).second.GetObject();
439 delete (*iter).first;
440 }
441 m_recMdcHitMap.clear();
442 for (std::map<const TObject*, const RecMdcHit*>::iterator iter = m_rootRecMdcHitMap.begin();
443 iter != m_rootRecMdcHitMap.end(); iter++) {
444 delete (*iter).first;
445 }
446 m_rootRecMdcHitMap.clear();
447
448//for Rec
449 for (std::map<const RecEmcHit*, TRef>::iterator iter = m_recEmcHitMap.begin();
450 iter != m_recEmcHitMap.end(); iter++) {
451 delete (*iter).second.GetObject();
452 delete (*iter).first;
453 }
454 m_recEmcHitMap.clear();
455 for (std::map<const TObject*, const RecEmcHit*>::iterator iter = m_rootRecEmcHitMap.begin();
456 iter != m_rootRecEmcHitMap.end(); iter++) {
457 delete (*iter).first;
458 }
459 m_rootRecEmcHitMap.clear();
460
461 for (std::map<const RecEmcCluster*, TRef>::iterator iter = m_recEmcClusterMap.begin();
462 iter != m_recEmcClusterMap.end(); iter++) {
463 delete (*iter).second.GetObject();
464 delete (*iter).first;
465 }
466 m_recEmcClusterMap.clear();
467 for (std::map<const TObject*, const RecEmcCluster*>::iterator iter = m_rootRecEmcClusterMap.begin();
468 iter != m_rootRecEmcClusterMap.end(); iter++) {
469 delete (*iter).first;
470 }
472
473 for (std::map<const RecEmcShower*, TRef>::iterator iter = m_recEmcShowerMap.begin();
474 iter != m_recEmcShowerMap.end(); iter++) {
475 delete (*iter).second.GetObject();
476 delete (*iter).first;
477 }
478 m_recEmcShowerMap.clear();
479 for (std::map<const TObject*, const RecEmcShower*>::iterator iter = m_rootRecEmcShowerMap.begin();
480 iter != m_rootRecEmcShowerMap.end(); iter++) {
481 delete (*iter).first;
482 }
483 m_rootRecEmcShowerMap.clear();
484
485 for (std::map<const RecTofTrack*, TRef>::iterator iter = m_RecTofTrackMap.begin();
486 iter != m_RecTofTrackMap.end(); iter++) {
487 delete (*iter).second.GetObject();
488 delete (*iter).first;
489 }
490 m_RecTofTrackMap.clear();
491 for (std::map<const TObject*, const RecTofTrack*>::iterator iter = m_rootRecTofTrackMap.begin();
492 iter != m_rootRecTofTrackMap.end(); iter++) {
493 delete (*iter).first;
494 }
495 m_rootRecTofTrackMap.clear();
496
497 for (std::map<const RecMucTrack*, TRef>::iterator iter = m_RecMucTrackMap.begin();
498 iter != m_RecMucTrackMap.end(); iter++) {
499 delete (*iter).second.GetObject();
500 delete (*iter).first;
501 }
502 m_RecMucTrackMap.clear();
503 for (std::map<const TObject*, const RecMucTrack*>::iterator iter = m_rootRecMucTrackMap.begin();
504 iter != m_rootRecMucTrackMap.end(); iter++) {
505 delete (*iter).first;
506 }
507 m_rootRecMucTrackMap.clear();
508
509 for (std::map<const RecMdcDedx*, TRef>::iterator iter = m_recMdcDedxMap.begin();
510 iter != m_recMdcDedxMap.end(); iter++) {
511 delete (*iter).second.GetObject();
512 delete (*iter).first;
513 }
514 m_recMdcDedxMap.clear();
515 for (std::map<const TObject*, const RecMdcDedx*>::iterator iter = m_rootRecMdcDedxMap.begin();
516 iter != m_rootRecMdcDedxMap.end(); iter++) {
517 delete (*iter).first;
518 }
519 m_rootRecMdcDedxMap.clear();
520
521
522 for (std::map<const RecMdcDedxHit*, TRef>::iterator iter = m_recMdcDedxHitMap.begin();
523 iter != m_recMdcDedxHitMap.end(); iter++) {
524 delete (*iter).second.GetObject();
525 delete (*iter).first;
526 }
527 m_recMdcDedxHitMap.clear();
528 for (std::map<const TObject*, const RecMdcDedxHit*>::iterator iter = m_rootRecMdcDedxHitMap.begin();
529 iter != m_rootRecMdcDedxHitMap.end(); iter++) {
530 delete (*iter).first;
531 }
533
534 for (std::map<const RecMdcKalTrack*, TRef>::iterator iter = m_recMdcKalTrackMap.begin();
535 iter != m_recMdcKalTrackMap.end(); iter++) {
536 delete (*iter).second.GetObject();
537 delete (*iter).first;
538 }
539 m_recMdcKalTrackMap.clear();
540 for (std::map<const TObject*, const RecMdcKalTrack*>::iterator iter = m_rootRecMdcKalTrackMap.begin();
541 iter != m_rootRecMdcKalTrackMap.end(); iter++) {
542 delete (*iter).first;
543 }
545
546
547 for (std::map<const RecMdcKalHelixSeg*, TRef>::iterator iter = m_recMdcKalHelixSegMap.begin();
548 iter != m_recMdcKalHelixSegMap.end(); iter++) {
549 delete (*iter).second.GetObject();
550 delete (*iter).first;
551 }
553 for (std::map<const TObject*, const RecMdcKalHelixSeg*>::iterator iter = m_rootRecMdcKalHelixSegMap.begin();
555 delete (*iter).first;
556 }
558
559//Estime
560
561 for (std::map<const RecEsTime*, TRef>::iterator iter = m_RecEvTimeMap.begin();
562 iter != m_RecEvTimeMap.end(); iter++) {
563 delete (*iter).second.GetObject();
564 delete (*iter).first;
565 }
566 m_RecEvTimeMap.clear();
567 for (std::map<const TObject*, const RecEsTime*>::iterator iter = m_rootRecEvTimeMap.begin();
568 iter != m_rootRecEvTimeMap.end(); iter++) {
569 delete (*iter).first;
570 }
571 m_rootRecEvTimeMap.clear();
572
573 // for event after EventAssembly
574 for (std::map<const EvtRecTrack*, TRef>::iterator iter = m_EvtRecTrackMap.begin();
575 iter != m_EvtRecTrackMap.end(); iter++ ) {
576 delete (*iter).second.GetObject();
577 delete (*iter).first;
578 }
579 m_EvtRecTrackMap.clear();
580 for (std::map<const TObject*, const EvtRecTrack*>::iterator iter = m_rootEvtRecTrackMap.begin();
581 iter != m_rootEvtRecTrackMap.end(); iter++) {
582 delete iter->first;
583 }
584 m_rootEvtRecTrackMap.clear();
585
586 // EvtRecVeeVertexCol
587 for (std::map<const EvtRecVeeVertex*, TRef>::iterator iter = m_evtRecVeeVertexMap.begin();
588 iter != m_evtRecVeeVertexMap.end(); iter++) {
589 delete (*iter).second.GetObject();
590 delete (*iter).first;
591 }
592 m_evtRecVeeVertexMap.clear();
593 for (std::map<const TObject*, const EvtRecVeeVertex*>::iterator iter = m_rootEvtRecVeeVertexMap.begin();
594 iter != m_rootEvtRecVeeVertexMap.end(); iter++) {
595 delete (*iter).first;
596 }
598
599 //EvtRecPi0Col
600 for (std::map<const EvtRecPi0*, TRef>::iterator iter = m_evtRecPi0Map.begin();
601 iter != m_evtRecPi0Map.end(); iter++) {
602 delete (*iter).second.GetObject();
603 delete (*iter).first;
604 }
605 m_evtRecPi0Map.clear();
606 for (std::map<const TObject*, const EvtRecPi0*>::iterator iter = m_rootEvtRecPi0Map.begin();
607 iter != m_rootEvtRecPi0Map.end(); iter++) {
608 delete (*iter).first;
609 }
610 m_rootEvtRecPi0Map.clear();
611
612
613 //EvtRecEtaToGGCol
614 for (std::map<const EvtRecEtaToGG*, TRef>::iterator iter = m_evtRecEtaToGGMap.begin();
615 iter != m_evtRecEtaToGGMap.end(); iter++) {
616 delete (*iter).second.GetObject();
617 delete (*iter).first;
618 }
619 m_evtRecEtaToGGMap.clear();
620 for (std::map<const TObject*, const EvtRecEtaToGG*>::iterator iter = m_rootEvtRecEtaToGGMap.begin();
621 iter != m_rootEvtRecEtaToGGMap.end(); iter++) {
622 delete (*iter).first;
623 }
625
626
627
628 // EvtRecDTagCol
629 for (std::map<const EvtRecDTag*, TRef>::iterator iter = m_evtRecDTagMap.begin();
630 iter != m_evtRecDTagMap.end(); iter++) {
631 delete (*iter).second.GetObject();
632 delete (*iter).first;
633 }
634 m_evtRecDTagMap.clear();
635 for (std::map<const TObject*, const EvtRecDTag*>::iterator iter = m_rootEvtRecDTagMap.begin();
636 iter != m_rootEvtRecDTagMap.end(); iter++) {
637 delete (*iter).first;
638 }
639 m_rootEvtRecDTagMap.clear();
640
641}
EvtStreamInputIterator< typename Generator::result_type > iter(Generator gen, int N=0)
static std::map< const TObject *, const EvtRecTrack * > m_rootEvtRecTrackMap
Definition: commonData.h:265
static std::map< const EmcMcHit *, TRef > m_emcMcHitMap
Definition: commonData.h:165
static std::map< const TObject *, const RecMdcKalHelixSeg * > m_rootRecMdcKalHelixSegMap
Definition: commonData.h:244
static std::map< const TObject *, const RecEmcCluster * > m_rootRecEmcClusterMap
Definition: commonData.h:218
static std::map< const EvtRecPi0 *, TRef > m_evtRecPi0Map
Definition: commonData.h:252
static std::map< const DstMdcTrack *, TRef > m_mdcTrackMap
Definition: commonData.h:144
static std::map< const TObject *, const RecMdcDedxHit * > m_rootRecMdcDedxHitMap
Definition: commonData.h:230
static std::map< const RecEmcShower *, TRef > m_recEmcShowerMap
Definition: commonData.h:220
static TEvtRecObject * m_evtRecObject
Definition: commonData.h:262
static TEvtHeader * m_EvtHeader
Definition: commonData.h:112
static std::map< const EmcDigi *, TRef > m_emcDigiMap
Definition: commonData.h:126
static std::map< const TObject *, const DstMdcKalTrack * > m_rootMdcKalTrackMap
Definition: commonData.h:160
static std::map< const EvtRecEtaToGG *, TRef > m_evtRecEtaToGGMap
Definition: commonData.h:255
static TDigiEvent * m_recEvt
Provide access to the ROOT event pointers.
Definition: commonData.h:124
static std::map< const TObject *, const RecMdcDedx * > m_rootRecMdcDedxMap
Definition: commonData.h:227
static std::map< const TObject *, const DstMdcDedx * > m_rootMdcDedxMap
Definition: commonData.h:154
static std::map< const TObject *, const MdcMcHit * > m_rootMdcMcHitMap
Definition: commonData.h:169
static std::map< const MdcDigi *, TRef > m_mdcDigiMap
Create a set of maps between Digi data in the TDS and the TRefs in the ROOT file.
Definition: commonData.h:117
static std::map< const DstMucTrack *, TRef > m_mucTrackMap
Definition: commonData.h:147
static std::map< const TrigData *, TRef > m_trigDataMap
Definition: commonData.h:186
static std::map< const DstMdcDedx *, TRef > m_mdcDedxMap
Definition: commonData.h:153
static std::map< const TObject *, const HltInf * > m_rootHltInfMap
Definition: commonData.h:194
static std::map< const RecEmcHit *, TRef > m_recEmcHitMap
Definition: commonData.h:214
static std::map< const MucMcHit *, TRef > m_mucMcHitMap
Definition: commonData.h:174
static std::map< const TObject *, const McParticle * > m_rootMcParticleMap
Definition: commonData.h:178
static std::map< const RecEsTime *, TRef > m_RecEvTimeMap
Definition: commonData.h:246
static TTrigEvent * m_trigEvt
Provide access to the ROOT event pointers.
Definition: commonData.h:184
static std::map< const EvtRecVeeVertex *, TRef > m_evtRecVeeVertexMap
Definition: commonData.h:249
static std::map< const TObject *, const EvtRecEtaToGG * > m_rootEvtRecEtaToGGMap
Definition: commonData.h:256
static std::map< const TObject *, const DstMdcTrack * > m_rootMdcTrackMap
Definition: commonData.h:145
static THltEvent * m_hltEvt
Provide access to the ROOT event pointers.
Definition: commonData.h:190
static std::map< const TObject *, const RecEmcHit * > m_rootRecEmcHitMap
Definition: commonData.h:215
static std::map< const TofMcHit *, TRef > m_tofMcHitMap
Definition: commonData.h:171
static std::map< const TObject *, const RecEmcShower * > m_rootRecEmcShowerMap
Definition: commonData.h:221
static std::map< const MucDigi *, TRef > m_mucDigiMap
Definition: commonData.h:132
static std::map< const TObject *, const RecMucTrack * > m_rootRecMucTrackMap
Definition: commonData.h:224
static std::map< const TObject *, const LumiDigi * > m_rootLumiDigiMap
Definition: commonData.h:136
static std::map< const MdcMcHit *, TRef > m_mdcMcHitMap
Definition: commonData.h:168
static TMcEvent * m_mcEvt
Provide access to the ROOT event pointers.
Definition: commonData.h:163
static std::map< const TObject *, const EvtRecPi0 * > m_rootEvtRecPi0Map
Definition: commonData.h:253
static std::map< const TObject *, const RecTofTrack * > m_rootRecTofTrackMap
Definition: commonData.h:212
static std::map< const TObject *, const RecEsTime * > m_rootRecEvTimeMap
Definition: commonData.h:247
static std::map< const TObject *, const HltRaw * > m_rootHltRawMap
Definition: commonData.h:192
static std::map< const TObject *, const RecMdcHit * > m_rootRecMdcHitMap
Definition: commonData.h:205
static TEvtNavigator * m_EvtNavigator
Definition: commonData.h:114
static std::map< const TObject *, const RecMdcTrack * > m_rootRecMdcTrackMap
Definition: commonData.h:202
static std::map< const HltInf *, TRef > m_hltInfMap
Definition: commonData.h:193
static std::map< const TObject *, const TrigData * > m_rootTrigDataMap
Definition: commonData.h:187
static std::map< const TObject *, const DstExtTrack * > m_rootExtTrackMap
Definition: commonData.h:157
static std::map< const TObject *, const DstHltInf * > m_rootDstHltInfMap
Definition: commonData.h:196
static std::map< const LumiDigi *, TRef > m_lumiDigiMap
Definition: commonData.h:135
static std::map< const TObject *, const EvtRecVeeVertex * > m_rootEvtRecVeeVertexMap
Definition: commonData.h:250
static std::map< const TObject *, const MucDigi * > m_rootMucDigiMap
Definition: commonData.h:133
static TRecTrackEvent * m_rectrackEvt
Provide access to the ROOT event pointers.
Definition: commonData.h:199
static std::map< const DstEmcShower *, TRef > m_emcShowerMap
Definition: commonData.h:141
static std::map< const TObject *, const MdcDigi * > m_rootMdcDigiMap
Create a set of maps between ROOT Digi objects and TDS Digi data.
Definition: commonData.h:120
static std::map< const RecMdcHit *, TRef > m_recMdcHitMap
Definition: commonData.h:204
static std::map< const RecEmcCluster *, TRef > m_recEmcClusterMap
Definition: commonData.h:217
static std::map< const TObject *, const TofDigi * > m_rootTofDigiMap
Definition: commonData.h:130
static std::map< const HltRaw *, TRef > m_hltRawMap
Definition: commonData.h:191
static std::map< const EvtRecTrack *, TRef > m_EvtRecTrackMap
Definition: commonData.h:264
static std::map< const DstMdcKalTrack *, TRef > m_mdcKalTrackMap
Definition: commonData.h:159
static std::map< const TObject *, const EmcMcHit * > m_rootEmcMcHitMap
Definition: commonData.h:166
static std::map< const RecTofTrack *, TRef > m_RecTofTrackMap
Definition: commonData.h:211
static std::map< const McParticle *, TRef > m_mcParticleMap
Definition: commonData.h:177
static std::map< const TObject *, const DstMucTrack * > m_rootMucTrackMap
Definition: commonData.h:148
static std::map< const TObject *, const DstEmcShower * > m_rootEmcShowerMap
Definition: commonData.h:142
static TDstEvent * m_dstEvt
Provide access to the ROOT event pointers.
Definition: commonData.h:139
static std::map< const DstTofTrack *, TRef > m_tofTrackMap
Definition: commonData.h:150
static std::map< const TofDigi *, TRef > m_tofDigiMap
Definition: commonData.h:129
static std::map< const TObject *, const TofMcHit * > m_rootTofMcHitMap
Definition: commonData.h:172
static std::map< const RecMdcDedx *, TRef > m_recMdcDedxMap
Definition: commonData.h:226
static std::map< const DstHltInf *, TRef > m_dstHltInfMap
Definition: commonData.h:195
static std::map< const TObject *, const RecMdcKalTrack * > m_rootRecMdcKalTrackMap
Definition: commonData.h:241
static std::map< const RecMucTrack *, TRef > m_RecMucTrackMap
Definition: commonData.h:223
static std::map< const DstExtTrack *, TRef > m_extTrackMap
Definition: commonData.h:156
static std::map< const TObject *, const DstTofTrack * > m_rootTofTrackMap
Definition: commonData.h:151
static std::map< const RecMdcKalTrack *, TRef > m_recMdcKalTrackMap
Definition: commonData.h:240
static std::map< const RecMdcKalHelixSeg *, TRef > m_recMdcKalHelixSegMap
Definition: commonData.h:243
static std::map< const RecMdcTrack *, TRef > m_recMdcTrackMap
Definition: commonData.h:201
static std::map< const EvtRecDTag *, TRef > m_evtRecDTagMap
Definition: commonData.h:258
void clear()
Definition: commonData.cxx:147
static std::map< const TObject *, const EvtRecDTag * > m_rootEvtRecDTagMap
Definition: commonData.h:259
static std::map< const RecMdcDedxHit *, TRef > m_recMdcDedxHitMap
Definition: commonData.h:229
static std::map< const TObject *, const EmcDigi * > m_rootEmcDigiMap
Definition: commonData.h:127
static std::map< const TObject *, const MucMcHit * > m_rootMucMcHitMap
Definition: commonData.h:175