CMS 3D CMS Logo

MCPdgIndexFilter.h
Go to the documentation of this file.
1 #ifndef MCPdgIndexFilter_h
2 #define MCPdgIndexFilter_h
3 /*
4  Description: filter events based on the particle PDG ID at a given
5  index in the HepMC::GenEvent record.
6 
7  Original Author: Burt Betchart, 2013/08/09
8 */
9 
10 #include <memory>
11 
14 
17 
19 
20 namespace edm {
21  class HepMCProduct;
22 }
23 
25  public:
26  explicit MCPdgIndexFilter(const edm::ParameterSet&);
27  ~MCPdgIndexFilter() override {};
28 
29  bool filter(edm::StreamID, edm::Event&, const edm::EventSetup&) const override;
30  private:
31  bool pass(const edm::Event&) const;
33  const std::vector<int> pdgID;
34  const std::vector<unsigned> index;
36  const unsigned maxIndex;
37  const bool taggingMode;
38 };
39 #endif
const bool taggingMode
const std::vector< unsigned > index
const unsigned maxIndex
const edm::EDGetTokenT< edm::HepMCProduct > token_
const std::vector< int > pdgID
HLT enums.
edm::EDPutTokenT< bool > putToken_
~MCPdgIndexFilter() override