CMS 3D CMS Logo

METTester.h
Go to the documentation of this file.
1 #ifndef METTESTER_H
2 #define METTESTER_H
3 
4 // author: Mike Schmitt (The University of Florida)
5 // date: 8/24/2006
6 // modification: Bobby Scurlock
7 // date: 03.11.2006
8 // note: added RMS(METx) vs SumET capability
9 // modification: Rick Cavanaugh
10 // date: 05.11.2006
11 // note: added configuration parameters
12 // modification: Mike Schmitt
13 // date: 02.28.2007
14 // note: code rewrite
15 
16 // Rewritten by Viola Sordini, Matthias Artur Weber, Robert Schoefbeck Nov./Dez.
17 // 2013
18 
47 #include "TMath.h"
49 
50 // class METTester: public edm::EDAnalyzer {
51 class METTester : public DQMEDAnalyzer {
52 public:
53  explicit METTester(const edm::ParameterSet &);
54 
55  void analyze(const edm::Event &, const edm::EventSetup &) override;
56  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
57 
58 private:
59  std::map<std::string, MonitorElement *> me;
60 
61  // Inputs from Configuration File
62 
66 
68 
69  // Tokens
73  // edm::EDGetTokenT<reco::METCollection> tcMETsToken_;
78 
79  // Events variables
81 
82  // Common variables
95 
96  // MET Uncertainity Variables
111 
112  // CaloMET variables
113 
129 
130  // GenMET variables
137 
138  // MET variables
139 
140  // PFMET variables
155 
167  // moved into postprocessor
168  // MonitorElement* mMETDifference_GenMETTrue_METResolution;
169 
170  bool isCaloMET;
171  // bool isCorMET;
172  // bool isTcMET;
173  bool isPFMET;
174  bool isGenMET;
176 };
177 
178 #endif // METTESTER_H
MonitorElement * mChargedEMEtFraction
Definition: METTester.h:133
edm::InputTag inputCaloMETLabel_
Definition: METTester.h:67
edm::InputTag mInputCollection_
Definition: METTester.h:63
MonitorElement * mMuonEtFraction
Definition: METTester.h:135
MonitorElement * mMETPhi
Definition: METTester.h:89
MonitorElement * mMET
Definition: METTester.h:86
MonitorElement * mMETDifference_GenMETTrue
Definition: METTester.h:91
MonitorElement * mMETUnc_MuonEnUp
Definition: METTester.h:101
MonitorElement * mMETUnc_ElectronEnDown
Definition: METTester.h:104
MonitorElement * mMETUnc_ElectronEnUp
Definition: METTester.h:103
MonitorElement * mMETDifference_GenMETTrue_MET400to500
Definition: METTester.h:165
MonitorElement * mMETUnc_TauEnDown
Definition: METTester.h:106
MonitorElement * mPFelectronEtFraction
Definition: METTester.h:145
MonitorElement * mMETSig
Definition: METTester.h:85
MonitorElement * mCaloMaxEtInEmTowers
Definition: METTester.h:114
MonitorElement * mMEy
Definition: METTester.h:84
MonitorElement * mCaloSETInpHF
Definition: METTester.h:125
MonitorElement * mCaloHadEtInHF
Definition: METTester.h:121
MonitorElement * mCaloHadEtInEE
Definition: METTester.h:123
MonitorElement * mPFphotonEtFraction
Definition: METTester.h:141
MonitorElement * mPFHFEMEt
Definition: METTester.h:154
MonitorElement * mMETDifference_GenMETTrue_MET40to60
Definition: METTester.h:158
bool isPFMET
Definition: METTester.h:173
MonitorElement * mCaloEmEtFraction
Definition: METTester.h:117
MonitorElement * mCaloEmEtInEE
Definition: METTester.h:127
std::string METType_
Definition: METTester.h:65
MonitorElement * mCaloSETInmHF
Definition: METTester.h:126
MonitorElement * mNeutralEMEtFraction
Definition: METTester.h:131
MonitorElement * mMETDifference_GenMETTrue_MET20to40
Definition: METTester.h:157
MonitorElement * mMETDifference_GenMETTrue_MET60to80
Definition: METTester.h:159
MonitorElement * mCaloMaxEtInHadTowers
Definition: METTester.h:115
MonitorElement * mInvisibleEtFraction
Definition: METTester.h:136
MonitorElement * mCaloEtFractionHadronic
Definition: METTester.h:116
bool isMiniAODMET
Definition: METTester.h:175
MonitorElement * mPFmuonEt
Definition: METTester.h:150
MonitorElement * mMETUnc_UnclusteredEnUp
Definition: METTester.h:107
MonitorElement * mPFelectronEt
Definition: METTester.h:146
MonitorElement * mPFphotonEt
Definition: METTester.h:142
MonitorElement * mCaloEmEtInEB
Definition: METTester.h:128
MonitorElement * mMETUnc_JetEnUp
Definition: METTester.h:99
MonitorElement * mCaloHadEtInHE
Definition: METTester.h:120
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: METTester.cc:129
edm::EDGetTokenT< reco::PFMETCollection > pfMETsToken_
Definition: METTester.h:72
edm::EDGetTokenT< reco::CaloMETCollection > caloMETsToken_
Definition: METTester.h:71
MonitorElement * mPFneutralHadronEtFraction
Definition: METTester.h:143
MonitorElement * mMETUnc_JetResUp
Definition: METTester.h:97
MonitorElement * mPFHFHadronEt
Definition: METTester.h:152
bool isGenMET
Definition: METTester.h:174
edm::EDGetTokenT< std::vector< reco::Vertex > > pvToken_
Definition: METTester.h:70
edm::EDGetTokenT< reco::GenMETCollection > genMETsToken_
Definition: METTester.h:74
MonitorElement * mMETUnc_JetEnDown
Definition: METTester.h:100
MonitorElement * mMETDifference_GenMETTrue_MET150to200
Definition: METTester.h:162
MonitorElement * mCaloHadEtInEB
Definition: METTester.h:122
bool isCaloMET
Definition: METTester.h:170
MonitorElement * mMETDeltaPhi_GenMETCalo
Definition: METTester.h:94
MonitorElement * mMETDifference_GenMETTrue_MET100to150
Definition: METTester.h:161
MonitorElement * mCaloHadEtInHB
Definition: METTester.h:118
MonitorElement * mMETUnc_PhotonEnDown
Definition: METTester.h:110
MonitorElement * mMETDifference_GenMETTrue_MET300to400
Definition: METTester.h:164
MonitorElement * mMETDifference_GenMETCalo
Definition: METTester.h:93
MonitorElement * mMETUnc_JetResDown
Definition: METTester.h:98
MonitorElement * mCaloHadEtInHO
Definition: METTester.h:119
MonitorElement * mMETDifference_GenMETTrue_MET500
Definition: METTester.h:166
MonitorElement * mPFchargedHadronEt
Definition: METTester.h:148
MonitorElement * mMEx
Definition: METTester.h:83
MonitorElement * mChargedHadEtFraction
Definition: METTester.h:134
MonitorElement * mMETDeltaPhi_GenMETTrue
Definition: METTester.h:92
MonitorElement * mPFneutralHadronEt
Definition: METTester.h:144
MonitorElement * mMETUnc_TauEnUp
Definition: METTester.h:105
edm::EDGetTokenT< reco::GenMETCollection > genMETsCaloToken_
Definition: METTester.h:76
edm::EDGetTokenT< reco::GenMETCollection > genMETsTrueToken_
Definition: METTester.h:75
MonitorElement * mPFmuonEtFraction
Definition: METTester.h:149
MonitorElement * mMETFine
Definition: METTester.h:87
MonitorElement * mMETUnc_MuonEnDown
Definition: METTester.h:102
MonitorElement * mNeutralHadEtFraction
Definition: METTester.h:132
edm::EDGetTokenT< pat::METCollection > patMETToken_
Definition: METTester.h:77
MonitorElement * mPFHFEMEtFraction
Definition: METTester.h:153
MonitorElement * mMETUnc_UnclusteredEnDown
Definition: METTester.h:108
std::map< std::string, MonitorElement * > me
Definition: METTester.h:59
METTester(const edm::ParameterSet &)
Definition: METTester.cc:33
MonitorElement * mMETUnc_PhotonEnUp
Definition: METTester.h:109
MonitorElement * mNvertex
Definition: METTester.h:80
MonitorElement * mMET_Nvtx
Definition: METTester.h:88
MonitorElement * mPFchargedHadronEtFraction
Definition: METTester.h:147
MonitorElement * mMETDifference_GenMETTrue_MET0to20
Definition: METTester.h:156
MonitorElement * mSumET
Definition: METTester.h:90
edm::InputTag inputMETLabel_
Definition: METTester.h:64
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: METTester.cc:234
MonitorElement * mMETDifference_GenMETTrue_MET200to300
Definition: METTester.h:163
MonitorElement * mMETDifference_GenMETTrue_MET80to100
Definition: METTester.h:160
Definition: Run.h:45
MonitorElement * mCaloEmEtInHF
Definition: METTester.h:124
MonitorElement * mPFHFHadronEtFraction
Definition: METTester.h:151