Fork me on GitHub

Changeset 1118 in svn


Ignore:
Timestamp:
May 20, 2013, 10:22:07 PM (11 years ago)
Author:
Pavel Demin
Message:

simplify lepton selection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/StatusPidFilter.cc

    r1117 r1118  
    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.