Fork me on GitHub

Changeset 27738e8 in git


Ignore:
Timestamp:
May 29, 2018, 12:15:13 PM (6 years ago)
Author:
Michele Selvaggi <michele.selvaggi@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
3d778cd, 509d1b4
Parents:
f37555a
Message:

added W daughters info in gen particle filter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/StatusPidFilter.cc

    rf37555a r27738e8  
    121121  }
    122122
     123  bool isWDaughter(int M1, const TObjArray *fInputArray)
     124  {
     125     if ( M1 < 0 ) return false;
     126
     127     Candidate *mother;
     128     mother = static_cast<Candidate*>(fInputArray->At( M1 ));
     129     if ( TMath::Abs(mother->PID) == 24 ) return true;
     130
     131     return false;
     132  }
     133
    123134}
    124135
     
    208219      pass = kTRUE;
    209220
     221    bool is_W_daughter = isWDaughter(candidate->M1, fInputArray);
     222    if (is_W_daughter)
     223      pass = kTRUE;
     224
    210225    // fPTMin not applied to b_hadrons / b_quarks to allow for b-enriched sample stitching
    211226    // fPTMin not applied to tau decay products to allow visible-tau four momentum determination
    212     if(!pass || (candidate->Momentum.Pt() < fPTMin && !(is_b_hadron || is_b_quark || is_tau_daughter)) ) continue;
     227    if(!pass || (candidate->Momentum.Pt() < fPTMin && !(is_b_hadron || is_b_quark || is_tau_daughter || is_W_daughter)) ) continue;
    213228
    214229    fOutputArray->Add(candidate);
Note: See TracChangeset for help on using the changeset viewer.