Fork me on GitHub

Changeset 41da326 in git


Ignore:
Timestamp:
May 20, 2013, 10:10:25 PM (11 years ago)
Author:
pavel <pavel@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
d5104a4
Parents:
1ba5c52
Message:

add more particles to StatusPidFilter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/StatusPidFilter.cc

    r1ba5c52 r41da326  
    8080  Candidate *candidate;
    8181  Int_t status, pdgCode;
     82  Bool_t pass;
    8283
    8384  fItInputArray->Reset();
     
    8788    pdgCode = TMath::Abs(candidate->PID);
    8889
    89     // Write all electrons, muons, taus and status == 3;
    90     if(pdgCode != 11 && pdgCode != 13 && pdgCode != 15 && status != 3) continue;
     90    pass = kFALSE;
    9191
    92     if(candidate->Momentum.Pt() <= fPTMin) continue;
     92    // status == 3
     93    if(status == 3) pass = kTRUE;
     94
     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;
     100
     101    // heavy quarks
     102    if(pdgCode == 5 || pdgCode == 6) pass = kTRUE;
     103
     104    // Gauge bosons and other fundamental bosons
     105    if(pdgCode > 22 &&  pdgCode < 43) pass = kTRUE;
     106
     107    if(!pass || candidate->Momentum.Pt() <= fPTMin) continue;
    93108
    94109    fOutputArray->Add(candidate);
Note: See TracChangeset for help on using the changeset viewer.