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 
22  public:
23  explicit MCPdgIndexFilter(const edm::ParameterSet&);
25 
26  virtual bool filter(edm::Event&, const edm::EventSetup&);
27  private:
28  bool pass(const edm::Event&);
29  const std::string label_;
30  const std::vector<int> pdgID;
31  const std::vector<unsigned> index;
32  const unsigned maxIndex;
33  const bool taggingMode;
34  const std::string tag;
35 };
36 #endif
const std::string tag
const bool taggingMode
MCPdgIndexFilter(const edm::ParameterSet &)
const std::vector< unsigned > index
const unsigned maxIndex
const std::string label_
const std::vector< int > pdgID
virtual bool filter(edm::Event &, const edm::EventSetup &)
bool pass(const edm::Event &)