CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
McSelector.h
Go to the documentation of this file.
1 #ifndef McSelector_h
2 #define McSelector_h
3 
4 /* \class McSelector
5 *
6 * Class to apply analysis cuts in the TriggerValidation Code
7 *
8 * Author: Massimiliano Chiorboli Date: August 2007
9 // Maurizio Pierini
10 // Maria Spiropulu
11 *
12 */
13 #include <memory>
14 #include <string>
15 #include <iostream>
16 
22 
26 
31 
32 
33 class McSelector {
34 
35  public:
36 
37  //Constructor
38  McSelector(const edm::ParameterSet& userCut_params, edm::ConsumesCollector&& iC);
39  //Destructor
40  virtual ~McSelector(){};
41 
42  //Methods
43  void handleObjects(const edm::Event&);
44  bool isSelected(const edm::Event&);
46 
47  private:
48 
49  // Define the parameters
54  double mc_ptElecMin;
55  double mc_ptMuonMin;
56  double mc_ptTauMin;
57  double mc_ptPhotMin;
58  double mc_ptJetMin;
60  double mc_metMin;
61  double mc_htMin;
62  int mc_nElec;
64  int mc_nMuon;
66  int mc_nTau;
67  int mc_nPhot;
68  int mc_nJet;
69 
70 
71  double ht;
72 
73 
74 
75 
79 
80 };
81 
82 #endif
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
double mc_ptPhotMin
Definition: McSelector.h:57
int mc_nPhot
Definition: McSelector.h:67
std::vector< reco::GenMET > GenMETCollection
collection of GenMET objects
std::vector< GenJet > GenJetCollection
collection of GenJet objects
void handleObjects(const edm::Event &)
Definition: McSelector.cc:249
double mc_htMin
Definition: McSelector.h:61
double ht
Definition: McSelector.h:71
int mc_nMuon
Definition: McSelector.h:64
edm::EDGetTokenT< reco::GenJetCollection > m_genJetSrc
Definition: McSelector.h:52
std::string name
Definition: McSelector.h:50
double mc_ptJetForHtMin
Definition: McSelector.h:59
double mc_metMin
Definition: McSelector.h:60
bool isSelected(const edm::Event &)
Definition: McSelector.cc:67
McSelector(const edm::ParameterSet &userCut_params, edm::ConsumesCollector &&iC)
Definition: McSelector.cc:20
const reco::GenJetCollection * theGenJetCollection
Definition: McSelector.h:77
edm::EDGetTokenT< reco::GenMETCollection > m_genMetSrc
Definition: McSelector.h:53
int mc_nJet
Definition: McSelector.h:68
double mc_ptElecMin
Definition: McSelector.h:54
int mc_nElec
Definition: McSelector.h:62
double mc_ptTauMin
Definition: McSelector.h:56
double mc_ptJetMin
Definition: McSelector.h:58
const reco::GenParticleCollection * theGenParticleCollection
Definition: McSelector.h:76
std::string GetName()
Definition: McSelector.cc:65
std::string mc_nElecRule
Definition: McSelector.h:63
double mc_ptMuonMin
Definition: McSelector.h:55
virtual ~McSelector()
Definition: McSelector.h:40
int mc_nTau
Definition: McSelector.h:66
const reco::GenMETCollection * theGenMETCollection
Definition: McSelector.h:78
edm::EDGetTokenT< reco::GenParticleCollection > m_genSrc
Definition: McSelector.h:51
std::string mc_nMuonRule
Definition: McSelector.h:65