Fork me on GitHub

Changeset 4f00e0b in git for modules/Calorimeter.cc


Ignore:
Timestamp:
Oct 5, 2015, 6:10:37 PM (9 years ago)
Author:
Michele Selvaggi <michele.selvaggi@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
ce4feac
Parents:
c62695e
Message:

fixed muons for high pt eflow

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/Calorimeter.cc

    rc62695e r4f00e0b  
    528528
    529529     // 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 )
    535532     {
     533       ecalTrkSigma = fECalResolutionFormula->Eval(0.0, fTowerEta, 0.0, momentum.E());     
    536534       if(track->TrackResolution < ecalTrkSigma/momentum.E())
    537535       {
    538          ecalTrkSigma = fECalResolutionFormula->Eval(0.0, fTowerEta, 0.0, momentum.E()); 
    539536         ecalEnergy -= momentum.E();
    540537         fEFlowTrackOutputArray->Add(track);       
    541        }
    542    
     538       }   
    543539     }
    544    
    545      if(hcalFraction > 1.0E-9)
     540     else if(ecalFraction < 1.0E-9 && hcalFraction > 1.0E-9 )
    546541     {
     542       hcalTrkSigma = fHCalResolutionFormula->Eval(0.0, fTowerEta, 0.0, momentum.E());   
    547543       if(track->TrackResolution < hcalTrkSigma/momentum.E())
    548544       {
    549          hcalTrkSigma = fHCalResolutionFormula->Eval(0.0, fTowerEta, 0.0, momentum.E()); 
    550545         hcalEnergy -= momentum.E();
    551546         fEFlowTrackOutputArray->Add(track);       
    552547       }
    553548     }
     549     else if(pdgCode == 13)
     550     {
     551       fEFlowTrackOutputArray->Add(track);
     552     }
    554553  }
    555554
Note: See TracChangeset for help on using the changeset viewer.