- Timestamp:
- Oct 5, 2015, 6:10:37 PM (9 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- ce4feac
- Parents:
- c62695e
- Location:
- modules
- Files:
-
- 2 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 -
modules/SimpleCalorimeter.cc
rc62695e r4f00e0b 466 466 467 467 // charged particle has to deposit either in ECAL or HCAL 468 if(fraction < 1.0E-9) continue; 469 470 trkSigma = fResolutionFormula->Eval(0.0, fTowerEta, 0.0, momentum.E()); 471 472 if(track->TrackResolution < trkSigma/momentum.E()) 468 if(fraction > 1.0E-9) 473 469 { 474 energy -= momentum.E(); 475 fEFlowTrackOutputArray->Add(track); 470 trkSigma = fResolutionFormula->Eval(0.0, fTowerEta, 0.0, momentum.E()); 471 if(track->TrackResolution < trkSigma/momentum.E()) 472 { 473 energy -= momentum.E(); 474 fEFlowTrackOutputArray->Add(track); 475 } 476 476 } 477 477 //forward all tracks from ECAL to HCAL 478 else if(fIsEcal) 479 { 480 fEFlowTrackOutputArray->Add(track); 481 } 482 //store muons from HCAL 483 else if(pdgCode == 13) 484 { 485 fEFlowTrackOutputArray->Add(track); 486 } 478 487 } 479 488
Note:
See TracChangeset
for help on using the changeset viewer.