Fork me on GitHub

Changeset 7a86a5c in git for modules


Ignore:
Timestamp:
Nov 23, 2018, 2:37:05 AM (6 years ago)
Author:
chekanov <chekanov@…>
Branches:
ImprovedOutputFile, Timing, llp, master
Children:
7c7fe5e
Parents:
e5fa629
Message:

Added new option to remove pileup particles from truth record

Location:
modules
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • modules/PdgCodeFilter.cc

    re5fa629 r7a86a5c  
    7676  fInvert = GetBool("Invert", false);
    7777
     78  // no pileup
     79  fRequireNotPileup = GetBool("RequireNotPileup", false);
     80
    7881  fRequireStatus = GetBool("RequireStatus", false);
    7982  fStatus = GetInt("Status", 1);
     
    127130    if(fRequireStatus && (candidate->Status != fStatus)) continue;
    128131    if(fRequireCharge && (candidate->Charge != fCharge)) continue;
     132    if(fRequireNotPileup && (candidate->IsPU   >0     )) continue;
    129133
    130134    pass = kTRUE;
  • modules/PdgCodeFilter.h

    re5fa629 r7a86a5c  
    5555  Bool_t fRequireCharge; //!
    5656  Int_t fCharge; //!
    57 
     57  Bool_t fRequireNotPileup; //!
    5858
    5959  std::vector<Int_t> fPdgCodes;
  • modules/StatusPidFilter.cc

    re5fa629 r7a86a5c  
    153153{
    154154  // PT threshold
    155 
    156155  fPTMin = GetDouble("PTMin", 0.5);
     156
     157  // keep or remove pileup particles
     158  fRequireNotPileup = GetBool("RequireNotPileup", false);
    157159
    158160  // import input array
     
    227229    if(!pass || (candidate->Momentum.Pt() < fPTMin && !(is_b_hadron || is_b_quark || is_tau_daughter || is_W_daughter)) ) continue;
    228230
     231    // not pileup particles
     232    if(fRequireNotPileup && (candidate->IsPU >0)) continue;
     233
    229234    fOutputArray->Add(candidate);
    230235  }
  • modules/StatusPidFilter.h

    re5fa629 r7a86a5c  
    5151  Double_t fPTMin; //!
    5252
     53  Bool_t fRequireNotPileup; //!
     54
    5355  TIterator *fItInputArray; //!
    5456
Note: See TracChangeset for help on using the changeset viewer.