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 #include "TLorentzVector.h"
8 
17 
21 
23 
24 //DataFormats
27 
40 
46 
47 
49 
50 //
51 // class declaration
52 //
53 
54 class ObjMonitor : public DQMEDAnalyzer
55 {
56 public:
57  ObjMonitor( const edm::ParameterSet& );
58  ~ObjMonitor() override;
59  static void fillDescriptions(edm::ConfigurationDescriptions & descriptions);
60 
61 protected:
62  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
63 
64  void analyze(edm::Event const& iEvent, edm::EventSetup const& iSetup) override;
65 
66 private:
67 
68  bool looseJetId(const double & abseta,
69  const double & NHF,
70  const double & NEMF,
71  const double & CHF,
72  const double & CEMF,
73  const unsigned & NumNeutralParticles,
74  const unsigned & CHM);
75 
76  bool tightJetId(const double & abseta,
77  const double & NHF,
78  const double & NEMF,
79  const double & CHF,
80  const double & CEMF,
81  const unsigned & NumNeutralParticles,
82  const unsigned & CHM);
83 
86 
93 
94  //objects to plot
95  //add your own with corresponding switch
96  bool do_met_;
98  bool do_jet_;
100  bool do_ht_;
102  bool do_hmg_;
104 
105 
106  std::unique_ptr<GenericTriggerEventFlag> num_genTriggerEventFlag_;
107  std::unique_ptr<GenericTriggerEventFlag> den_genTriggerEventFlag_;
108 
117 
118  unsigned njets_;
119  unsigned nelectrons_;
120  unsigned nmuons_;
121  unsigned nphotons_;
122  unsigned nmesons_;
123 
124 };
125 
126 #endif // OBJMONITOR_H
edm::EDGetTokenT< reco::TrackCollection > trkToken_
Definition: ObjMonitor.h:92
unsigned nelectrons_
Definition: ObjMonitor.h:119
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: ObjMonitor.cc:242
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:202
edm::EDGetTokenT< reco::GsfElectronCollection > eleToken_
Definition: ObjMonitor.h:89
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
std::string histoSuffix_
Definition: ObjMonitor.h:85
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:222
StringCutObjectSelector< reco::MET, true > metSelection_
Definition: ObjMonitor.h:109
unsigned nmuons_
Definition: ObjMonitor.h:120
unsigned nphotons_
Definition: ObjMonitor.h:121
StringCutObjectSelector< reco::Photon, true > phoSelection_
Definition: ObjMonitor.h:115
int iEvent
Definition: GenABIO.cc:230
std::string jetId_
Definition: ObjMonitor.h:111
std::unique_ptr< GenericTriggerEventFlag > num_genTriggerEventFlag_
Definition: ObjMonitor.h:106
edm::EDGetTokenT< reco::PFMETCollection > metToken_
Definition: ObjMonitor.h:87
~ObjMonitor() override
StringCutObjectSelector< reco::PFJet, true > jetSelection_
Definition: ObjMonitor.h:110
std::unique_ptr< GenericTriggerEventFlag > den_genTriggerEventFlag_
Definition: ObjMonitor.h:107
std::string folderName_
Definition: ObjMonitor.h:84
bool do_met_
Definition: ObjMonitor.h:96
bool do_jet_
Definition: ObjMonitor.h:98
edm::EDGetTokenT< reco::PhotonCollection > phoToken_
Definition: ObjMonitor.h:91
StringCutObjectSelector< reco::Track, true > trkSelection_
Definition: ObjMonitor.h:116
bool do_ht_
Definition: ObjMonitor.h:100
void analyze(edm::Event const &iEvent, edm::EventSetup const &iSetup) override
Definition: ObjMonitor.cc:82
JetDQM jetDQM_
Definition: ObjMonitor.h:99
Definition: HTDQM.h:11
unsigned nmesons_
Definition: ObjMonitor.h:122
HMesonGammaDQM hmgDQM_
Definition: ObjMonitor.h:103
bool do_hmg_
Definition: ObjMonitor.h:102
edm::EDGetTokenT< reco::PFJetCollection > jetToken_
Definition: ObjMonitor.h:88
StringCutObjectSelector< reco::Muon, true > muoSelection_
Definition: ObjMonitor.h:114
StringCutObjectSelector< reco::PFJet, true > htjetSelection_
Definition: ObjMonitor.h:112
Definition: METDQM.h:9
edm::EDGetTokenT< reco::MuonCollection > muoToken_
Definition: ObjMonitor.h:90
unsigned njets_
Definition: ObjMonitor.h:118
METDQM metDQM_
Definition: ObjMonitor.h:97
ObjMonitor(const edm::ParameterSet &)
Definition: ObjMonitor.cc:19
StringCutObjectSelector< reco::GsfElectron, true > eleSelection_
Definition: ObjMonitor.h:113
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: ObjMonitor.cc:63
Definition: Run.h:44
Definition: JetDQM.h:13
HTDQM htDQM_
Definition: ObjMonitor.h:101