CMS 3D CMS Logo

ObjMonitor.h
Go to the documentation of this file.
1 #ifndef OBJMONITOR_H
2 #define OBJMONITOR_H
3 
4 #include <string>
5 #include <vector>
6 #include <map>
7 
16 
20 
22 
23 //DataFormats
26 
39 
44 
45 
46 
48 
49 //
50 // class declaration
51 //
52 
53 class ObjMonitor : public DQMEDAnalyzer
54 {
55 public:
56  ObjMonitor( const edm::ParameterSet& );
57  ~ObjMonitor() override;
58  static void fillDescriptions(edm::ConfigurationDescriptions & descriptions);
59 
60 protected:
61  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
62 
63  void analyze(edm::Event const& iEvent, edm::EventSetup const& iSetup) override;
64 
65 private:
66 
67  bool looseJetId(const double & abseta,
68  const double & NHF,
69  const double & NEMF,
70  const double & CHF,
71  const double & CEMF,
72  const unsigned & NumNeutralParticles,
73  const unsigned & CHM);
74 
75  bool tightJetId(const double & abseta,
76  const double & NHF,
77  const double & NEMF,
78  const double & CHF,
79  const double & CEMF,
80  const unsigned & NumNeutralParticles,
81  const unsigned & CHM);
82 
85 
91 
92  //objects to plot
93  //add your own with corresponding switch
94  bool do_met_;
96  bool do_jet_;
98  bool do_ht_;
100 
101 
102  std::unique_ptr<GenericTriggerEventFlag> num_genTriggerEventFlag_;
103  std::unique_ptr<GenericTriggerEventFlag> den_genTriggerEventFlag_;
104 
112  unsigned njets_;
113  unsigned nelectrons_;
114  unsigned nmuons_;
115  unsigned nphotons_;
116 
117 };
118 
119 #endif // OBJMONITOR_H
unsigned nelectrons_
Definition: ObjMonitor.h:113
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: ObjMonitor.cc:187
bool looseJetId(const double &abseta, const double &NHF, const double &NEMF, const double &CHF, const double &CEMF, const unsigned &NumNeutralParticles, const unsigned &CHM)
Definition: ObjMonitor.cc:147
edm::EDGetTokenT< reco::GsfElectronCollection > eleToken_
Definition: ObjMonitor.h:88
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
std::string histoSuffix_
Definition: ObjMonitor.h:84
bool tightJetId(const double &abseta, const double &NHF, const double &NEMF, const double &CHF, const double &CEMF, const unsigned &NumNeutralParticles, const unsigned &CHM)
Definition: ObjMonitor.cc:167
StringCutObjectSelector< reco::MET, true > metSelection_
Definition: ObjMonitor.h:105
unsigned nmuons_
Definition: ObjMonitor.h:114
unsigned nphotons_
Definition: ObjMonitor.h:115
StringCutObjectSelector< reco::Photon, true > phoSelection_
Definition: ObjMonitor.h:111
int iEvent
Definition: GenABIO.cc:230
std::string jetId_
Definition: ObjMonitor.h:107
std::unique_ptr< GenericTriggerEventFlag > num_genTriggerEventFlag_
Definition: ObjMonitor.h:102
edm::EDGetTokenT< reco::PFMETCollection > metToken_
Definition: ObjMonitor.h:86
~ObjMonitor() override
StringCutObjectSelector< reco::PFJet, true > jetSelection_
Definition: ObjMonitor.h:106
std::unique_ptr< GenericTriggerEventFlag > den_genTriggerEventFlag_
Definition: ObjMonitor.h:103
std::string folderName_
Definition: ObjMonitor.h:83
bool do_met_
Definition: ObjMonitor.h:94
bool do_jet_
Definition: ObjMonitor.h:96
edm::EDGetTokenT< reco::PhotonCollection > phoToken_
Definition: ObjMonitor.h:90
bool do_ht_
Definition: ObjMonitor.h:98
void analyze(edm::Event const &iEvent, edm::EventSetup const &iSetup) override
Definition: ObjMonitor.cc:73
JetDQM jetDQM_
Definition: ObjMonitor.h:97
Definition: HTDQM.h:11
edm::EDGetTokenT< reco::PFJetCollection > jetToken_
Definition: ObjMonitor.h:87
StringCutObjectSelector< reco::Muon, true > muoSelection_
Definition: ObjMonitor.h:110
StringCutObjectSelector< reco::PFJet, true > htjetSelection_
Definition: ObjMonitor.h:108
Definition: METDQM.h:9
edm::EDGetTokenT< reco::MuonCollection > muoToken_
Definition: ObjMonitor.h:89
unsigned njets_
Definition: ObjMonitor.h:112
METDQM metDQM_
Definition: ObjMonitor.h:95
ObjMonitor(const edm::ParameterSet &)
Definition: ObjMonitor.cc:18
StringCutObjectSelector< reco::GsfElectron, true > eleSelection_
Definition: ObjMonitor.h:109
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: ObjMonitor.cc:55
Definition: Run.h:43
Definition: JetDQM.h:13
HTDQM htDQM_
Definition: ObjMonitor.h:99