Fork me on GitHub

Changeset d5104a4 in git for modules


Ignore:
Timestamp:
May 20, 2013, 10:22:07 PM (11 years ago)
Author:
pavel <pavel@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
4575766
Parents:
41da326
Message:

simplify lepton selection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/StatusPidFilter.cc

    r41da326 rd5104a4  
    9393    if(status == 3) pass = kTRUE;
    9494
    95     // electrons, muons, taus
    96     if(pdgCode == 11 || pdgCode == 13 || pdgCode == 15) pass = kTRUE;
    97 
    98     // neutrinos
    99     if(pdgCode == 12 || pdgCode == 14 || pdgCode == 16) pass = kTRUE;
     95    // electrons, muons, taus and neutrinos
     96    if(pdgCode > 10 && pdgCode < 17) pass = kTRUE;
    10097
    10198    // heavy quarks
     
    103100
    104101    // Gauge bosons and other fundamental bosons
    105     if(pdgCode > 22 &&  pdgCode < 43) pass = kTRUE;
     102    if(pdgCode > 22 && pdgCode < 43) pass = kTRUE;
    106103
    107104    if(!pass || candidate->Momentum.Pt() <= fPTMin) continue;
Note: See TracChangeset for help on using the changeset viewer.