Changeset 4f00e0b in git for modules/Calorimeter.cc
- Timestamp:
- Oct 5, 2015, 6:10:37 PM (9 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- ce4feac
- Parents:
- c62695e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/Calorimeter.cc
rc62695e r4f00e0b 528 528 529 529 // charged particle has to deposit either in ECAL or HCAL 530 531 if(ecalFraction < 1.0E-9 && hcalFraction < 1.0E-9) continue; 532 if(ecalFraction > 1.0E-9 && hcalFraction > 1.0E-9) continue; 533 534 if(ecalFraction > 1.0E-9) 530 531 if(ecalFraction > 1.0E-9 && hcalFraction < 1.0E-9 ) 535 532 { 533 ecalTrkSigma = fECalResolutionFormula->Eval(0.0, fTowerEta, 0.0, momentum.E()); 536 534 if(track->TrackResolution < ecalTrkSigma/momentum.E()) 537 535 { 538 ecalTrkSigma = fECalResolutionFormula->Eval(0.0, fTowerEta, 0.0, momentum.E());539 536 ecalEnergy -= momentum.E(); 540 537 fEFlowTrackOutputArray->Add(track); 541 } 542 538 } 543 539 } 544 545 if(hcalFraction > 1.0E-9) 540 else if(ecalFraction < 1.0E-9 && hcalFraction > 1.0E-9 ) 546 541 { 542 hcalTrkSigma = fHCalResolutionFormula->Eval(0.0, fTowerEta, 0.0, momentum.E()); 547 543 if(track->TrackResolution < hcalTrkSigma/momentum.E()) 548 544 { 549 hcalTrkSigma = fHCalResolutionFormula->Eval(0.0, fTowerEta, 0.0, momentum.E());550 545 hcalEnergy -= momentum.E(); 551 546 fEFlowTrackOutputArray->Add(track); 552 547 } 553 548 } 549 else if(pdgCode == 13) 550 { 551 fEFlowTrackOutputArray->Add(track); 552 } 554 553 } 555 554
Note:
See TracChangeset
for help on using the changeset viewer.