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