CMS 3D CMS Logo

METMonitor.h
Go to the documentation of this file.
1 #ifndef METMONITOR_H
2 #define METMONITOR_H
3 
4 #include <string>
5 #include <vector>
6 #include <map>
7 
16 
20 
22 
23 //DataFormats
26 
39 
41 
42 struct MEbinning {
43  int nbins;
44  double xmin;
45  double xmax;
46 };
47 
48 struct METME {
51 };
52 //
53 // class declaration
54 //
55 
56 class METMonitor : public DQMEDAnalyzer
57 {
58 public:
59  METMonitor( const edm::ParameterSet& );
60  ~METMonitor();
61  static void fillDescriptions(edm::ConfigurationDescriptions & descriptions);
62  static void fillHistoPSetDescription(edm::ParameterSetDescription & pset);
63  static void fillHistoLSPSetDescription(edm::ParameterSetDescription & pset);
64 
65 protected:
66 
67  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
68  void bookME(DQMStore::IBooker &, METME& me, const std::string& histname, const std::string& histtitle, int nbins, double xmin, double xmax);
69  void bookME(DQMStore::IBooker &, METME& me, const std::string& histname, const std::string& histtitle, const std::vector<double>& binningX);
70  void bookME(DQMStore::IBooker &, METME& me, const std::string& histname, const std::string& histtitle, int nbinsX, double xmin, double xmax, double ymin, double ymax);
71  void bookME(DQMStore::IBooker &, METME& me, const std::string& histname, const std::string& histtitle, int nbinsX, double xmin, double xmax, int nbinsY, double ymin, double ymax);
72  void bookME(DQMStore::IBooker &, METME& me, const std::string& histname, const std::string& histtitle, const std::vector<double>& binningX, const std::vector<double>& binningY);
73  void setMETitle(METME& me, std::string titleX, std::string titleY);
74 
75  void analyze(edm::Event const& iEvent, edm::EventSetup const& iSetup) override;
76 
77 private:
78  static MEbinning getHistoPSet (edm::ParameterSet pset);
79  static MEbinning getHistoLSPSet (edm::ParameterSet pset);
80 
83 
88 
89  std::vector<double> met_variable_binning_;
92 
97 
100 
105  int njets_;
107  int nmuons_;
108 
109 };
110 
111 #endif // METMONITOR_H
numerator
Definition: cuy.py:483
def analyze(function, filename, filter=None)
Definition: Profiling.py:11
std::string histoSuffix_
Definition: METMonitor.h:82
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
StringCutObjectSelector< reco::Muon, true > muoSelection_
Definition: METMonitor.h:104
GenericTriggerEventFlag * den_genTriggerEventFlag_
Definition: METMonitor.h:99
StringCutObjectSelector< reco::GsfElectron, true > eleSelection_
Definition: METMonitor.h:103
METME metME_variableBinning_
Definition: METMonitor.h:94
void bookHistograms(fwlite::EventContainer &eventCont)
std::string folderName_
Definition: METMonitor.h:81
StringCutObjectSelector< reco::PFJet, true > jetSelection_
Definition: METMonitor.h:102
int iEvent
Definition: GenABIO.cc:230
edm::EDGetTokenT< reco::GsfElectronCollection > eleToken_
Definition: METMonitor.h:86
MEbinning met_binning_
Definition: METMonitor.h:90
edm::EDGetTokenT< reco::PFJetCollection > jetToken_
Definition: METMonitor.h:85
double xmin
Definition: LumiMonitor.h:30
edm::EDGetTokenT< reco::PFMETCollection > metToken_
Definition: METMonitor.h:84
GenericTriggerEventFlag * num_genTriggerEventFlag_
Definition: METMonitor.h:98
edm::EDGetTokenT< reco::MuonCollection > muoToken_
Definition: METMonitor.h:87
denominator
Definition: cuy.py:484
std::vector< double > met_variable_binning_
Definition: METMonitor.h:89
METME metPhiME_
Definition: METMonitor.h:96
METME metVsLS_
Definition: METMonitor.h:95
MEbinning ls_binning_
Definition: METMonitor.h:91
StringCutObjectSelector< reco::MET, true > metSelection_
Definition: METMonitor.h:101
int nelectrons_
Definition: METMonitor.h:106
METME metME_
Definition: METMonitor.h:93
Definition: Run.h:42
double xmax
Definition: LumiMonitor.h:31