Fork me on GitHub

Changeset fa42514 in git for modules/PdgCodeFilter.h


Ignore:
Timestamp:
May 22, 2015, 6:00:15 PM (9 years ago)
Author:
Chase Shimmin <cshimmin@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
f3c4047
Parents:
e8070b6
git-author:
Chase Shimmin <cshimmin@…> (05/22/15 17:50:49)
git-committer:
Chase Shimmin <cshimmin@…> (05/22/15 18:00:15)
Message:

Add Invert and Status options to PdgCodeFilter

It is sometimes useful to output the truth record of a single
(non-stable) particle species, for example when considering an
exotic heavy resonance. Presently the only way to do so is to
output the entire Delphes/allParticles array, which is inefficient.

This patch adds the option InvertPdg to PdgCodeFilter, which causes
the PdgCodes specified to be *added* to the output array, rather
than removed. It also adds the options RequireStatus and Status,
for additional filtering based on the MC record status. If
RequireStatus is true, than only particles matching Status are
added to the output array.

This patch should be backwards compatible with existing usages of
PdgCodeFilter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/PdgCodeFilter.h

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