Changeset 1235 in svn
- Timestamp:
- Jul 22, 2013, 10:00:23 PM (11 years ago)
- Location:
- trunk/modules
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/Calorimeter.cc
r1233 r1235 45 45 fTowerECalArray(0), fItTowerECalArray(0), 46 46 fTowerHCalArray(0), fItTowerHCalArray(0), 47 fTowerTrackArray(0), fItTowerTrackArray(0), 47 48 fTowerECalTrackArray(0), fItTowerECalTrackArray(0), 48 49 fTowerHCalTrackArray(0), fItTowerHCalTrackArray(0) … … 56 57 fItTowerHCalArray = fTowerHCalArray->MakeIterator(); 57 58 59 fTowerTrackArray = new TObjArray; 60 fItTowerTrackArray = fTowerTrackArray->MakeIterator(); 58 61 fTowerECalTrackArray = new TObjArray; 59 62 fItTowerECalTrackArray = fTowerECalTrackArray->MakeIterator(); … … 74 77 if(fItTowerHCalArray) delete fItTowerHCalArray; 75 78 79 if(fTowerTrackArray) delete fTowerTrackArray; 80 if(fItTowerTrackArray) delete fItTowerTrackArray; 76 81 if(fTowerECalTrackArray) delete fTowerECalTrackArray; 77 82 if(fItTowerECalTrackArray) delete fItTowerECalTrackArray; … … 352 357 fTowerHCalTrackHits = 0; 353 358 359 fTowerECalArray->Clear(); 360 fTowerHCalArray->Clear(); 361 362 fTowerTrackArray->Clear(); 354 363 fTowerECalTrackArray->Clear(); 355 364 fTowerHCalTrackArray->Clear(); 356 fTowerECalArray->Clear();357 fTowerHCalArray->Clear();358 365 } 359 366 … … 365 372 ++fTowerTrackAllHits; 366 373 fTowerTrackArray->Add(track); 374 375 // check for track ECAL hits 367 376 if(flags & 2) 368 377 { … … 370 379 fTowerECalTrackArray->Add(track); 371 380 } 381 382 // check for track HCAL hits 372 383 if(flags & 4) 373 384 { … … 379 390 380 391 ++fTowerAllHits; 381 382 // check for ECAL hits in current tower 392 fTower->AddCandidate(particle); 393 394 // check for ECAL hits 383 395 if(flags & 2) 384 396 { … … 387 399 } 388 400 389 // check for HCAL hits in current tower401 // check for HCAL hits 390 402 if(flags & 4) 391 403 { … … 406 418 fTowerECalEnergy += ecalEnergy; 407 419 fTowerHCalEnergy += hcalEnergy; 408 409 fTower->AddCandidate(particle);410 420 } 411 421 -
trunk/modules/Calorimeter.h
r1233 r1235 74 74 TObjArray *fEFlowTowerOutputArray; //! 75 75 76 TObjArray *fTowerECalArray; //! 77 TIterator *fItTowerECalArray; //! 78 79 TObjArray *fTowerHCalArray; //! 80 TIterator *fItTowerHCalArray; //! 81 82 TObjArray *fTowerTrackArray; //! 83 TIterator *fItTowerTrackArray; //! 84 76 85 TObjArray *fTowerECalTrackArray; //! 77 86 TIterator *fItTowerECalTrackArray; //! … … 79 88 TObjArray *fTowerHCalTrackArray; //! 80 89 TIterator *fItTowerHCalTrackArray; //! 81 82 TObjArray *fTowerECalArray; //!83 TIterator *fItTowerECalArray; //!84 85 TObjArray *fTowerHCalArray; //!86 TIterator *fItTowerHCalArray; //!87 90 88 91 void FinalizeTower();
Note:
See TracChangeset
for help on using the changeset viewer.