Fork me on GitHub

Changeset b3c0535 in git


Ignore:
Timestamp:
Oct 6, 2015, 11:18:23 AM (9 years ago)
Author:
Pavel Demin <pavel.demin@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
934d037
Parents:
ce4feac
Message:

replace InvertPdg with Invert in PdgCodeFilter

Location:
modules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • modules/PdgCodeFilter.cc

    rce4feac rb3c0535  
    7474  fPTMin = GetDouble("PTMin", 0.0);
    7575
    76   fInvertPdg = GetBool("InvertPdg", false);
     76  fInvert = GetBool("Invert", false);
    7777
    7878  fRequireStatus = GetBool("RequireStatus", false);
     
    114114  Double_t pt;
    115115
    116   const Bool_t requireStatus = fRequireStatus;
    117   const Bool_t invertPdg = fInvertPdg;
    118   const int reqStatus = fStatus;
    119 
    120116  fItInputArray->Reset();
    121117  while((candidate = static_cast<Candidate*>(fItInputArray->Next())))
     
    126122
    127123    if(pt < fPTMin) continue;
    128     if(requireStatus && (candidate->Status != reqStatus)) continue;
     124    if(fRequireStatus && (candidate->Status != fStatus)) continue;
    129125
    130126    pass = kTRUE;
    131127    if(find(fPdgCodes.begin(), fPdgCodes.end(), pdgCode) != fPdgCodes.end()) pass = kFALSE;
    132128
    133     if (invertPdg) pass = !pass;
     129    if(fInvert) pass = !pass;
    134130    if(pass) fOutputArray->Add(candidate);
    135131  }
  • modules/PdgCodeFilter.h

    rce4feac rb3c0535  
    1919//------------------------------------------------------------------------------
    2020
    21 #ifndef PidFilter_h
    22 #define PidFilter_h
     21#ifndef PdgCodeFilter_h
     22#define PdgCodeFilter_h
    2323
    24 /** \class Efficiency
     24/** \class PdgCodeFilter
    2525 *
    26  *  Removes particles with specific pdg codes
    27   *
     26 *  Removes particles with specific PDG codes
     27 *
    2828 *  \author M. Selvaggi
    2929 *
     
    5050
    5151  Double_t fPTMin; //!
    52   Bool_t fInvertPdg; //!
     52  Bool_t fInvert; //!
    5353  Bool_t fRequireStatus; //!
    5454  Int_t fStatus; //!
Note: See TracChangeset for help on using the changeset viewer.