CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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. 2013
17 
18 
49 #include "TMath.h"
50 
51 
52 //class METTester: public edm::EDAnalyzer {
53 class METTester: public DQMEDAnalyzer {
54 public:
55 
56  explicit METTester(const edm::ParameterSet&);
57 
58  virtual void analyze(const edm::Event&, const edm::EventSetup&);
59  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
60  void FillMETRes();
61 
62 
63  private:
64 
65  std::map<std::string, MonitorElement*> me;
66 
67  // Inputs from Configuration File
68 
72 
74 
75  //Tokens
79  //edm::EDGetTokenT<reco::METCollection> tcMETsToken_;
84 
85 
86  // Events variables
88 
89  // Common variables
102  //CaloMET variables
103 
119 
120  //GenMET variables
127 
128  //MET variables
129 
130  //PFMET variables
145 
157 
158 
159 
160  bool isCaloMET;
161 // bool isCorMET;
162 // bool isTcMET;
163  bool isPFMET;
164  bool isGenMET;
166 
167 };
168 
169 #endif // METTESTER_H
170 
171 
MonitorElement * mChargedEMEtFraction
Definition: METTester.h:123
MonitorElement * mMETDifference_GenMETTrue_METResolution
Definition: METTester.h:156
edm::InputTag inputCaloMETLabel_
Definition: METTester.h:73
edm::InputTag mInputCollection_
Definition: METTester.h:69
MonitorElement * mMuonEtFraction
Definition: METTester.h:125
MonitorElement * mMETPhi
Definition: METTester.h:96
MonitorElement * mMET
Definition: METTester.h:93
MonitorElement * mMETDifference_GenMETTrue
Definition: METTester.h:98
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Definition: METTester.cc:197
MonitorElement * mMETDifference_GenMETTrue_MET400to500
Definition: METTester.h:155
void FillMETRes()
Definition: METTester.cc:389
MonitorElement * mPFelectronEtFraction
Definition: METTester.h:135
MonitorElement * mMETSig
Definition: METTester.h:92
MonitorElement * mCaloMaxEtInEmTowers
Definition: METTester.h:104
MonitorElement * mMEy
Definition: METTester.h:91
MonitorElement * mCaloSETInpHF
Definition: METTester.h:115
MonitorElement * mCaloHadEtInHF
Definition: METTester.h:111
MonitorElement * mCaloHadEtInEE
Definition: METTester.h:113
MonitorElement * mPFphotonEtFraction
Definition: METTester.h:131
MonitorElement * mPFHFEMEt
Definition: METTester.h:144
MonitorElement * mMETDifference_GenMETTrue_MET40to60
Definition: METTester.h:148
bool isPFMET
Definition: METTester.h:163
MonitorElement * mCaloEmEtFraction
Definition: METTester.h:107
MonitorElement * mCaloEmEtInEE
Definition: METTester.h:117
std::string METType_
Definition: METTester.h:71
MonitorElement * mCaloSETInmHF
Definition: METTester.h:116
MonitorElement * mNeutralEMEtFraction
Definition: METTester.h:121
MonitorElement * mMETDifference_GenMETTrue_MET20to40
Definition: METTester.h:147
MonitorElement * mMETDifference_GenMETTrue_MET60to80
Definition: METTester.h:149
MonitorElement * mCaloMaxEtInHadTowers
Definition: METTester.h:105
MonitorElement * mInvisibleEtFraction
Definition: METTester.h:126
MonitorElement * mCaloEtFractionHadronic
Definition: METTester.h:106
bool isMiniAODMET
Definition: METTester.h:165
MonitorElement * mPFmuonEt
Definition: METTester.h:140
MonitorElement * mPFelectronEt
Definition: METTester.h:136
MonitorElement * mPFphotonEt
Definition: METTester.h:132
MonitorElement * mCaloEmEtInEB
Definition: METTester.h:118
MonitorElement * mCaloHadEtInHE
Definition: METTester.h:110
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: METTester.cc:112
edm::EDGetTokenT< reco::PFMETCollection > pfMETsToken_
Definition: METTester.h:78
edm::EDGetTokenT< reco::CaloMETCollection > caloMETsToken_
Definition: METTester.h:77
MonitorElement * mPFneutralHadronEtFraction
Definition: METTester.h:133
MonitorElement * mPFHFHadronEt
Definition: METTester.h:142
bool isGenMET
Definition: METTester.h:164
edm::EDGetTokenT< std::vector< reco::Vertex > > pvToken_
Definition: METTester.h:76
edm::EDGetTokenT< reco::GenMETCollection > genMETsToken_
Definition: METTester.h:80
MonitorElement * mMETDifference_GenMETTrue_MET150to200
Definition: METTester.h:152
MonitorElement * mCaloHadEtInEB
Definition: METTester.h:112
bool isCaloMET
Definition: METTester.h:160
MonitorElement * mMETDeltaPhi_GenMETCalo
Definition: METTester.h:101
MonitorElement * mMETDifference_GenMETTrue_MET100to150
Definition: METTester.h:151
MonitorElement * mCaloHadEtInHB
Definition: METTester.h:108
MonitorElement * mMETDifference_GenMETTrue_MET300to400
Definition: METTester.h:154
MonitorElement * mMETDifference_GenMETCalo
Definition: METTester.h:100
MonitorElement * mCaloHadEtInHO
Definition: METTester.h:109
MonitorElement * mPFchargedHadronEt
Definition: METTester.h:138
MonitorElement * mMEx
Definition: METTester.h:90
MonitorElement * mChargedHadEtFraction
Definition: METTester.h:124
MonitorElement * mMETDeltaPhi_GenMETTrue
Definition: METTester.h:99
MonitorElement * mPFneutralHadronEt
Definition: METTester.h:134
edm::EDGetTokenT< reco::GenMETCollection > genMETsCaloToken_
Definition: METTester.h:82
edm::EDGetTokenT< reco::GenMETCollection > genMETsTrueToken_
Definition: METTester.h:81
std::map< std::string, MonitorElement * > me
Definition: METTester.h:65
MonitorElement * mPFmuonEtFraction
Definition: METTester.h:139
MonitorElement * mMETFine
Definition: METTester.h:94
MonitorElement * mNeutralHadEtFraction
Definition: METTester.h:122
edm::EDGetTokenT< pat::METCollection > patMETToken_
Definition: METTester.h:83
MonitorElement * mPFHFEMEtFraction
Definition: METTester.h:143
METTester(const edm::ParameterSet &)
Definition: METTester.cc:32
MonitorElement * mNvertex
Definition: METTester.h:87
MonitorElement * mMET_Nvtx
Definition: METTester.h:95
MonitorElement * mPFchargedHadronEtFraction
Definition: METTester.h:137
MonitorElement * mMETDifference_GenMETTrue_MET0to20
Definition: METTester.h:146
MonitorElement * mSumET
Definition: METTester.h:97
edm::InputTag inputMETLabel_
Definition: METTester.h:70
MonitorElement * mMETDifference_GenMETTrue_MET200to300
Definition: METTester.h:153
MonitorElement * mMETDifference_GenMETTrue_MET80to100
Definition: METTester.h:150
Definition: Run.h:41
MonitorElement * mCaloEmEtInHF
Definition: METTester.h:114
MonitorElement * mPFHFHadronEtFraction
Definition: METTester.h:141