Fork me on GitHub

Changeset 9c980d2 in git for modules/StatusPidFilter.cc


Ignore:
Timestamp:
Feb 25, 2018, 2:29:05 PM (7 years ago)
Author:
Luca Cadamuro <lc.cadamuro@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
193c0693
Parents:
36b4099
Message:

all b quarks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/StatusPidFilter.cc

    r36b4099 r9c980d2  
    175175    // logic ported from HepPDF: http://lcgapp.cern.ch/project/simu/HepPDT/HepPDT.2.05.02/html/ParticleID_8cc-source.html#l00081
    176176    bool is_b_hadron = hasBottom(pdgCode);
     177    bool is_b_quark  = (pdgCode == 5);
    177178
    178179    if (is_b_hadron)
    179180      pass = kTRUE;
    180181
    181     // fPTMin not applied to b_hadrons to allow for b-enriched sample stitching
    182     if(!pass || (candidate->Momentum.Pt() < fPTMin && !is_b_hadron) ) continue;
     182    // fPTMin not applied to b_hadrons / b_quarks to allow for b-enriched sample stitching
     183    if(!pass || (candidate->Momentum.Pt() < fPTMin && !(is_b_hadron || is_b_quark)) ) continue;
    183184
    184185    fOutputArray->Add(candidate);
Note: See TracChangeset for help on using the changeset viewer.