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 
46 #include "TMath.h"
48 
49 // class METTester: public edm::EDAnalyzer {
50 class METTester : public DQMEDAnalyzer {
51 public:
52  explicit METTester(const edm::ParameterSet &);
53 
54  void analyze(const edm::Event &, const edm::EventSetup &) override;
55  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
56 
57 private:
58  std::map<std::string, MonitorElement *> me;
59 
60  // Inputs from Configuration File
61 
65 
67 
68  // Tokens
72  // edm::EDGetTokenT<reco::METCollection> tcMETsToken_;
77 
78  // Events variables
80 
81  // Common variables
94 
95  // MET Uncertainity Variables
110 
111  // CaloMET variables
112 
128 
129  // GenMET variables
136 
137  // MET variables
138 
139  // PFMET variables
154 
166  // moved into postprocessor
167  // MonitorElement* mMETDifference_GenMETTrue_METResolution;
168 
169  bool isCaloMET;
170  // bool isCorMET;
171  // bool isTcMET;
172  bool isPFMET;
173  bool isGenMET;
175 };
176 
177 #endif // METTESTER_H
METTester::mMETDifference_GenMETTrue
MonitorElement * mMETDifference_GenMETTrue
Definition: METTester.h:90
METTester::mCaloHadEtInEE
MonitorElement * mCaloHadEtInEE
Definition: METTester.h:122
dqm::impl::MonitorElement
Definition: MonitorElement.h:99
METTester::mMETDifference_GenMETTrue_MET200to300
MonitorElement * mMETDifference_GenMETTrue_MET200to300
Definition: METTester.h:162
METTester::isPFMET
bool isPFMET
Definition: METTester.h:172
Handle.h
METTester::mMETDifference_GenMETTrue_MET60to80
MonitorElement * mMETDifference_GenMETTrue_MET60to80
Definition: METTester.h:158
Muon.h
MessageLogger.h
METTester::mMETUnc_UnclusteredEnDown
MonitorElement * mMETUnc_UnclusteredEnDown
Definition: METTester.h:107
METTester::mMETFine
MonitorElement * mMETFine
Definition: METTester.h:86
METTester::mCaloHadEtInHO
MonitorElement * mCaloHadEtInHO
Definition: METTester.h:118
METTester::mMETUnc_TauEnUp
MonitorElement * mMETUnc_TauEnUp
Definition: METTester.h:104
METTester::mMETDifference_GenMETTrue_MET20to40
MonitorElement * mMETDifference_GenMETTrue_MET20to40
Definition: METTester.h:156
GenMETCollection.h
edm::Run
Definition: Run.h:45
METTester::mPFHFHadronEtFraction
MonitorElement * mPFHFHadronEtFraction
Definition: METTester.h:150
edm::EDGetTokenT
Definition: EDGetToken.h:33
METTester::me
std::map< std::string, MonitorElement * > me
Definition: METTester.h:58
METTester::mMETUnc_UnclusteredEnUp
MonitorElement * mMETUnc_UnclusteredEnUp
Definition: METTester.h:106
METTester::caloMETsToken_
edm::EDGetTokenT< reco::CaloMETCollection > caloMETsToken_
Definition: METTester.h:70
METTester::mMETUnc_MuonEnDown
MonitorElement * mMETUnc_MuonEnDown
Definition: METTester.h:101
METTester::mMETDifference_GenMETTrue_MET150to200
MonitorElement * mMETDifference_GenMETTrue_MET150to200
Definition: METTester.h:161
METTester::mCaloHadEtInEB
MonitorElement * mCaloHadEtInEB
Definition: METTester.h:121
METTester::mNeutralHadEtFraction
MonitorElement * mNeutralHadEtFraction
Definition: METTester.h:131
METTester::mMET_Nvtx
MonitorElement * mMET_Nvtx
Definition: METTester.h:87
METTester::mPFHFEMEt
MonitorElement * mPFHFEMEt
Definition: METTester.h:153
METTester::mCaloEmEtInEE
MonitorElement * mCaloEmEtInEE
Definition: METTester.h:126
DQMStore.h
METTester::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: METTester.cc:234
EDAnalyzer.h
PFMETCollection.h
METTester::inputMETLabel_
edm::InputTag inputMETLabel_
Definition: METTester.h:63
METTester::mMETUnc_MuonEnUp
MonitorElement * mMETUnc_MuonEnUp
Definition: METTester.h:100
METTester::mPFHFEMEtFraction
MonitorElement * mPFHFEMEtFraction
Definition: METTester.h:152
METTester::mMETPhi
MonitorElement * mMETPhi
Definition: METTester.h:88
METTester::mCaloEmEtInHF
MonitorElement * mCaloEmEtInHF
Definition: METTester.h:123
METTester::isMiniAODMET
bool isMiniAODMET
Definition: METTester.h:174
METTester::mCaloHadEtInHF
MonitorElement * mCaloHadEtInHF
Definition: METTester.h:120
METTester::mMEx
MonitorElement * mMEx
Definition: METTester.h:82
METTester::mMETSig
MonitorElement * mMETSig
Definition: METTester.h:84
METTester::inputCaloMETLabel_
edm::InputTag inputCaloMETLabel_
Definition: METTester.h:66
CaloMETCollection.h
METTester::mInputCollection_
edm::InputTag mInputCollection_
Definition: METTester.h:62
METTester::mCaloMaxEtInHadTowers
MonitorElement * mCaloMaxEtInHadTowers
Definition: METTester.h:114
METTester::mPFchargedHadronEt
MonitorElement * mPFchargedHadronEt
Definition: METTester.h:147
METTester::mCaloEtFractionHadronic
MonitorElement * mCaloEtFractionHadronic
Definition: METTester.h:115
METTester::genMETsToken_
edm::EDGetTokenT< reco::GenMETCollection > genMETsToken_
Definition: METTester.h:73
METTester::mMETUnc_TauEnDown
MonitorElement * mMETUnc_TauEnDown
Definition: METTester.h:105
Track.h
TrackFwd.h
METTester::mMuonEtFraction
MonitorElement * mMuonEtFraction
Definition: METTester.h:134
CaloMET.h
METTester::mNeutralEMEtFraction
MonitorElement * mNeutralEMEtFraction
Definition: METTester.h:130
Service.h
METTester::mMETDifference_GenMETTrue_MET100to150
MonitorElement * mMETDifference_GenMETTrue_MET100to150
Definition: METTester.h:160
METTester
Definition: METTester.h:50
METTester::mCaloHadEtInHB
MonitorElement * mCaloHadEtInHB
Definition: METTester.h:117
MuonFwd.h
METTester::mMET
MonitorElement * mMET
Definition: METTester.h:85
METTester::mChargedHadEtFraction
MonitorElement * mChargedHadEtFraction
Definition: METTester.h:133
METTester::mMETDifference_GenMETTrue_MET80to100
MonitorElement * mMETDifference_GenMETTrue_MET80to100
Definition: METTester.h:159
METTester::mMETDeltaPhi_GenMETTrue
MonitorElement * mMETDeltaPhi_GenMETTrue
Definition: METTester.h:91
METTester::mCaloEmEtInEB
MonitorElement * mCaloEmEtInEB
Definition: METTester.h:127
METTester::genMETsTrueToken_
edm::EDGetTokenT< reco::GenMETCollection > genMETsTrueToken_
Definition: METTester.h:74
GsfElectron.h
EDGetToken.h
METTester::mPFelectronEtFraction
MonitorElement * mPFelectronEtFraction
Definition: METTester.h:144
METTester::mPFmuonEtFraction
MonitorElement * mPFmuonEtFraction
Definition: METTester.h:148
DQMEDAnalyzer.h
METTester::mMETUnc_PhotonEnUp
MonitorElement * mMETUnc_PhotonEnUp
Definition: METTester.h:108
GenMET.h
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
METTester::mMEy
MonitorElement * mMEy
Definition: METTester.h:83
METTester::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: METTester.cc:129
METTester::mPFphotonEtFraction
MonitorElement * mPFphotonEtFraction
Definition: METTester.h:140
METCollection.h
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
METTester::isGenMET
bool isGenMET
Definition: METTester.h:173
METTester::mPFneutralHadronEtFraction
MonitorElement * mPFneutralHadronEtFraction
Definition: METTester.h:142
PFMET.h
METTester::pfMETsToken_
edm::EDGetTokenT< reco::PFMETCollection > pfMETsToken_
Definition: METTester.h:71
METTester::mPFHFHadronEt
MonitorElement * mPFHFHadronEt
Definition: METTester.h:151
METTester::mMETDifference_GenMETTrue_MET0to20
MonitorElement * mMETDifference_GenMETTrue_MET0to20
Definition: METTester.h:155
METTester::patMETToken_
edm::EDGetTokenT< pat::METCollection > patMETToken_
Definition: METTester.h:76
METTester::mMETUnc_JetResUp
MonitorElement * mMETUnc_JetResUp
Definition: METTester.h:96
METTester::mNvertex
MonitorElement * mNvertex
Definition: METTester.h:79
edm::EventSetup
Definition: EventSetup.h:58
METTester::METType_
std::string METType_
Definition: METTester.h:64
MET.h
METTester::mCaloSETInpHF
MonitorElement * mCaloSETInpHF
Definition: METTester.h:124
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
METTester::mMETUnc_ElectronEnUp
MonitorElement * mMETUnc_ElectronEnUp
Definition: METTester.h:102
METTester::mMETDifference_GenMETTrue_MET300to400
MonitorElement * mMETDifference_GenMETTrue_MET300to400
Definition: METTester.h:163
InputTag.h
METTester::mPFphotonEt
MonitorElement * mPFphotonEt
Definition: METTester.h:141
METTester::mMETUnc_JetEnDown
MonitorElement * mMETUnc_JetEnDown
Definition: METTester.h:99
ValueMap.h
VertexFwd.h
METTester::mMETDeltaPhi_GenMETCalo
MonitorElement * mMETDeltaPhi_GenMETCalo
Definition: METTester.h:93
METTester::mMETDifference_GenMETTrue_MET500
MonitorElement * mMETDifference_GenMETTrue_MET500
Definition: METTester.h:165
MET.h
METTester::mCaloSETInmHF
MonitorElement * mCaloSETInmHF
Definition: METTester.h:125
METTester::mPFchargedHadronEtFraction
MonitorElement * mPFchargedHadronEtFraction
Definition: METTester.h:146
METTester::mMETUnc_JetEnUp
MonitorElement * mMETUnc_JetEnUp
Definition: METTester.h:98
METTester::METTester
METTester(const edm::ParameterSet &)
Definition: METTester.cc:33
Vertex.h
METTester::mInvisibleEtFraction
MonitorElement * mInvisibleEtFraction
Definition: METTester.h:135
METTester::mSumET
MonitorElement * mSumET
Definition: METTester.h:89
METFwd.h
MuonMETCorrectionData.h
METTester::mCaloMaxEtInEmTowers
MonitorElement * mCaloMaxEtInEmTowers
Definition: METTester.h:113
dqm::implementation::IBooker
Definition: DQMStore.h:43
METTester::mMETDifference_GenMETCalo
MonitorElement * mMETDifference_GenMETCalo
Definition: METTester.h:92
METTester::mChargedEMEtFraction
MonitorElement * mChargedEMEtFraction
Definition: METTester.h:132
METTester::genMETsCaloToken_
edm::EDGetTokenT< reco::GenMETCollection > genMETsCaloToken_
Definition: METTester.h:75
METTester::mMETUnc_PhotonEnDown
MonitorElement * mMETUnc_PhotonEnDown
Definition: METTester.h:109
METTester::isCaloMET
bool isCaloMET
Definition: METTester.h:169
METTester::mCaloHadEtInHE
MonitorElement * mCaloHadEtInHE
Definition: METTester.h:119
edm::Event
Definition: Event.h:73
METTester::pvToken_
edm::EDGetTokenT< std::vector< reco::Vertex > > pvToken_
Definition: METTester.h:69
METTester::mPFneutralHadronEt
MonitorElement * mPFneutralHadronEt
Definition: METTester.h:143
METTester::mMETUnc_JetResDown
MonitorElement * mMETUnc_JetResDown
Definition: METTester.h:97
METTester::mMETUnc_ElectronEnDown
MonitorElement * mMETUnc_ElectronEnDown
Definition: METTester.h:103
edm::InputTag
Definition: InputTag.h:15
METTester::mCaloEmEtFraction
MonitorElement * mCaloEmEtFraction
Definition: METTester.h:116
METTester::mMETDifference_GenMETTrue_MET40to60
MonitorElement * mMETDifference_GenMETTrue_MET40to60
Definition: METTester.h:157
METTester::mMETDifference_GenMETTrue_MET400to500
MonitorElement * mMETDifference_GenMETTrue_MET400to500
Definition: METTester.h:164
METTester::mPFelectronEt
MonitorElement * mPFelectronEt
Definition: METTester.h:145
METTester::mPFmuonEt
MonitorElement * mPFmuonEt
Definition: METTester.h:149