CMS 3D CMS Logo

MCSingleParticleYPt.h
Go to the documentation of this file.
1 #ifndef MCSingleParticleYPt_h
2 #define MCSingleParticleYPt_h
3 // -*- C++ -*-
4 //
5 // Package: MCSingleParticleYPt
6 // Class: MCSingleParticleYPt
7 //
8 /*
9 
10  Description: filter events based on the Pythia particleID, Pt, Y and status. It is based on MCSingleParticleFilter.
11  It will used to filter a b-hadron with the given kinematics, only one b-hadron is required to match.
12  Implementation: inherits from generic EDFilter
13 
14 */
15 //
16 // Author: Alberto Sanchez-Hernandez
17 // Adapted on: August 2016
18 //
19 //
20 
21 
22 // system include files
23 #include <memory>
24 
25 // user include files
31 
32 //
33 // class decleration
34 //
35 namespace edm {
36  class HepMCProduct;
37 }
38 
40  public:
41  explicit MCSingleParticleYPt(const edm::ParameterSet&);
42  ~MCSingleParticleYPt() override;
43  bool filter(edm::Event&, const edm::EventSetup&) override;
44  private:
45  // ----------member data ---------------------------
46 
47  int fVerbose;
50  std::vector<int> particleID;
51  std::vector<double> ptMin;
52  std::vector<double> rapMin;
53  std::vector<double> rapMax;
54  std::vector<int> status;
55  double rapidity;
56 };
57 #endif
std::vector< int > particleID
std::vector< int > status
std::vector< double > rapMax
std::vector< double > ptMin
HLT enums.
edm::EDGetTokenT< edm::HepMCProduct > token_
std::vector< double > rapMin