CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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&);
28 
29  virtual bool filter(edm::Event&, const edm::EventSetup&);
30  private:
31  bool pass(const edm::Event&);
33  const std::vector<int> pdgID;
34  const std::vector<unsigned> index;
35  const unsigned maxIndex;
36  const bool taggingMode;
38 };
39 #endif
const std::string tag
const bool taggingMode
MCPdgIndexFilter(const edm::ParameterSet &)
const std::vector< unsigned > index
const unsigned maxIndex
const edm::EDGetTokenT< edm::HepMCProduct > token_
const std::vector< int > pdgID
virtual bool filter(edm::Event &, const edm::EventSetup &)
bool pass(const edm::Event &)