Fork me on GitHub

Changeset 4f00e0b in git for modules


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

Location:
modules
Files:
2 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
  • modules/SimpleCalorimeter.cc

    rc62695e r4f00e0b  
    466466   
    467467     // 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)
    473469     {
    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       }
    476476     }
    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     }
    478487  }
    479488
Note: See TracChangeset for help on using the changeset viewer.