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 
90 
91  //objects to plot
92  //add your own with corresponding switch
93  bool do_met_;
95  bool do_jet_;
97  bool do_ht_;
99 
100 
101  std::unique_ptr<GenericTriggerEventFlag> num_genTriggerEventFlag_;
102  std::unique_ptr<GenericTriggerEventFlag> den_genTriggerEventFlag_;
103 
110  int njets_;
112  int nmuons_;
113 
114 };
115 
116 #endif // OBJMONITOR_H
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: ObjMonitor.cc:175
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:135
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:155
StringCutObjectSelector< reco::MET, true > metSelection_
Definition: ObjMonitor.h:104
int iEvent
Definition: GenABIO.cc:230
std::string jetId_
Definition: ObjMonitor.h:106
std::unique_ptr< GenericTriggerEventFlag > num_genTriggerEventFlag_
Definition: ObjMonitor.h:101
edm::EDGetTokenT< reco::PFMETCollection > metToken_
Definition: ObjMonitor.h:86
~ObjMonitor() override
StringCutObjectSelector< reco::PFJet, true > jetSelection_
Definition: ObjMonitor.h:105
std::unique_ptr< GenericTriggerEventFlag > den_genTriggerEventFlag_
Definition: ObjMonitor.h:102
std::string folderName_
Definition: ObjMonitor.h:83
bool do_met_
Definition: ObjMonitor.h:93
bool do_jet_
Definition: ObjMonitor.h:95
int nelectrons_
Definition: ObjMonitor.h:111
bool do_ht_
Definition: ObjMonitor.h:97
void analyze(edm::Event const &iEvent, edm::EventSetup const &iSetup) override
Definition: ObjMonitor.cc:70
JetDQM jetDQM_
Definition: ObjMonitor.h:96
Definition: HTDQM.h:11
edm::EDGetTokenT< reco::PFJetCollection > jetToken_
Definition: ObjMonitor.h:87
StringCutObjectSelector< reco::Muon, true > muoSelection_
Definition: ObjMonitor.h:109
StringCutObjectSelector< reco::PFJet, true > htjetSelection_
Definition: ObjMonitor.h:107
Definition: METDQM.h:9
edm::EDGetTokenT< reco::MuonCollection > muoToken_
Definition: ObjMonitor.h:89
METDQM metDQM_
Definition: ObjMonitor.h:94
ObjMonitor(const edm::ParameterSet &)
Definition: ObjMonitor.cc:18
StringCutObjectSelector< reco::GsfElectron, true > eleSelection_
Definition: ObjMonitor.h:108
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: ObjMonitor.cc:52
Definition: Run.h:42
Definition: JetDQM.h:13
HTDQM htDQM_
Definition: ObjMonitor.h:98