Fork me on GitHub

Changes in / [f3c4047:28027d5] in git


Ignore:
Location:
modules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • modules/PdgCodeFilter.cc

    rf3c4047 r28027d5  
    7474  fPTMin = GetDouble("PTMin", 0.0);
    7575
    76   fInvertPdg = GetBool("InvertPdg", false);
    77 
    78   fRequireStatus = GetBool("RequireStatus", false);
    79   fStatus = GetInt("Status", 1);
    80 
    8176  // import input array
    8277  fInputArray = ImportArray(GetString("InputArray", "Delphes/allParticles"));
     
    114109  Double_t pt;
    115110
    116   const Bool_t requireStatus = fRequireStatus;
    117   const Bool_t invertPdg = fInvertPdg;
    118   const int reqStatus = fStatus;
    119 
    120111  fItInputArray->Reset();
    121112  while((candidate = static_cast<Candidate*>(fItInputArray->Next())))
     
    125116    pt = candidateMomentum.Pt();
    126117
    127     if(pt < fPTMin) continue;
    128     if(requireStatus && (candidate->Status != reqStatus)) continue;
     118    pass = kTRUE;
    129119
    130     pass = kTRUE;
     120    if(pt < fPTMin) pass = kFALSE;
    131121    if(find(fPdgCodes.begin(), fPdgCodes.end(), pdgCode) != fPdgCodes.end()) pass = kFALSE;
    132122
    133     if (invertPdg) pass = !pass;
    134123    if(pass) fOutputArray->Add(candidate);
    135124  }
  • modules/PdgCodeFilter.h

    rf3c4047 r28027d5  
    5050
    5151  Double_t fPTMin; //!
    52   Bool_t fInvertPdg; //!
    53   Bool_t fRequireStatus; //!
    54   Int_t fStatus; //!
    5552
    5653  std::vector<Int_t> fPdgCodes;
Note: See TracChangeset for help on using the changeset viewer.