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