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 
21 
25 
30 
31 
32 class McSelector {
33 
34  public:
35 
36  //Constructor
37  McSelector(edm::ParameterSet userCut_params);
38  //Destructor
39  virtual ~McSelector(){};
40 
41  //Methods
42  void handleObjects(const edm::Event&);
43  bool isSelected(const edm::Event&);
44  std::string GetName();
45 
46  private:
47 
48  // Define the parameters
49  std::string name;
50  std::string m_genSrc;
51  std::string m_genJetSrc;
52  std::string m_genMetSrc;
53  double mc_ptElecMin;
54  double mc_ptMuonMin;
55  double mc_ptTauMin;
56  double mc_ptPhotMin;
57  double mc_ptJetMin;
59  double mc_metMin;
60  double mc_htMin;
61  int mc_nElec;
62  std::string mc_nElecRule;
63  int mc_nMuon;
64  std::string mc_nMuonRule;
65  int mc_nTau;
66  int mc_nPhot;
67  int mc_nJet;
68 
69 
70  double ht;
71 
72 
73 
74 
78 
79 };
80 
81 #endif
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
double mc_ptPhotMin
Definition: McSelector.h:56
int mc_nPhot
Definition: McSelector.h:66
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:60
double ht
Definition: McSelector.h:70
int mc_nMuon
Definition: McSelector.h:63
std::string name
Definition: McSelector.h:49
double mc_ptJetForHtMin
Definition: McSelector.h:58
double mc_metMin
Definition: McSelector.h:59
bool isSelected(const edm::Event &)
Definition: McSelector.cc:67
McSelector(edm::ParameterSet userCut_params)
Definition: McSelector.cc:20
std::string m_genSrc
Definition: McSelector.h:50
const reco::GenJetCollection * theGenJetCollection
Definition: McSelector.h:76
int mc_nJet
Definition: McSelector.h:67
double mc_ptElecMin
Definition: McSelector.h:53
int mc_nElec
Definition: McSelector.h:61
double mc_ptTauMin
Definition: McSelector.h:55
double mc_ptJetMin
Definition: McSelector.h:57
const reco::GenParticleCollection * theGenParticleCollection
Definition: McSelector.h:75
std::string GetName()
Definition: McSelector.cc:65
std::string mc_nElecRule
Definition: McSelector.h:62
std::string m_genJetSrc
Definition: McSelector.h:51
double mc_ptMuonMin
Definition: McSelector.h:54
virtual ~McSelector()
Definition: McSelector.h:39
int mc_nTau
Definition: McSelector.h:65
std::string m_genMetSrc
Definition: McSelector.h:52
const reco::GenMETCollection * theGenMETCollection
Definition: McSelector.h:77
std::string mc_nMuonRule
Definition: McSelector.h:64