File indexing completed on 2024-04-06 12:08:03
0001 #ifndef EwkElecDQM_H
0002 #define EwkElecDQM_H
0003
0004
0005
0006
0007
0008
0009
0010 #include "FWCore/Framework/interface/Frameworkfwd.h"
0011 #include "FWCore/Framework/interface/MakerMacros.h"
0012 #include "HLTrigger/HLTcore/interface/HLTPrescaleProvider.h"
0013
0014 #include "FWCore/Utilities/interface/InputTag.h"
0015
0016 #include "DataFormats/EgammaCandidates/interface/GsfElectronFwd.h"
0017 #include "DataFormats/VertexReco/interface/VertexFwd.h"
0018 #include "DQMServices/Core/interface/DQMOneEDAnalyzer.h"
0019 #include "DQMServices/Core/interface/DQMStore.h"
0020
0021 namespace reco {
0022 class Jet;
0023 class MET;
0024 class BeamSpot;
0025 }
0026
0027 class EwkElecDQM : public DQMOneEDAnalyzer<> {
0028 public:
0029 EwkElecDQM(const edm::ParameterSet&);
0030
0031 protected:
0032
0033 void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
0034 void dqmBeginRun(const edm::Run&, const edm::EventSetup&) override;
0035 void analyze(const edm::Event&, const edm::EventSetup&) override;
0036 void dqmEndRun(const edm::Run&, const edm::EventSetup&) override;
0037
0038 double calcDeltaPhi(double phi1, double phi2);
0039
0040 private:
0041
0042 edm::InputTag metTag_;
0043 edm::InputTag jetTag_;
0044 edm::EDGetTokenT<edm::TriggerResults> trigTag_;
0045 edm::EDGetTokenT<edm::View<reco::GsfElectron> > elecTag_;
0046 edm::EDGetTokenT<edm::View<reco::MET> > metToken_;
0047 edm::EDGetTokenT<edm::View<reco::Jet> > jetToken_;
0048 edm::EDGetTokenT<edm::View<reco::Vertex> > vertexTag_;
0049 edm::EDGetTokenT<reco::BeamSpot> beamSpotTag_;
0050 bool metIncludesMuons_;
0051
0052
0053 const std::vector<std::string> elecTrig_;
0054 double ptCut_;
0055 double etaCut_;
0056
0057 double sieieCutBarrel_;
0058 double sieieCutEndcap_;
0059 double detainCutBarrel_;
0060 double detainCutEndcap_;
0061
0062
0063
0064
0065
0066 double ecalIsoCutBarrel_;
0067 double ecalIsoCutEndcap_;
0068 double hcalIsoCutBarrel_;
0069 double hcalIsoCutEndcap_;
0070 double trkIsoCutBarrel_;
0071 double trkIsoCutEndcap_;
0072 double mtMin_;
0073 double mtMax_;
0074 double metMin_;
0075 double metMax_;
0076
0077
0078
0079
0080
0081
0082
0083
0084
0085
0086 double eJetMin_;
0087 int nJetMax_;
0088
0089
0090 unsigned int PUMax_, PUBinCount_;
0091
0092 bool isValidHltConfig_;
0093 HLTPrescaleProvider hltPrescaleProvider_;
0094
0095 unsigned int nall;
0096 unsigned int nrec;
0097 unsigned int neid;
0098 unsigned int niso;
0099
0100
0101 unsigned int nsel;
0102
0103
0104 unsigned int nGoodElectrons;
0105
0106 MonitorElement* pt_before_;
0107 MonitorElement* pt_after_;
0108
0109 MonitorElement* eta_before_;
0110 MonitorElement* eta_after_;
0111
0112 MonitorElement* sieiebarrel_before_;
0113 MonitorElement* sieiebarrel_after_;
0114
0115 MonitorElement* sieieendcap_before_;
0116 MonitorElement* sieieendcap_after_;
0117
0118 MonitorElement* detainbarrel_before_;
0119 MonitorElement* detainbarrel_after_;
0120
0121 MonitorElement* detainendcap_before_;
0122 MonitorElement* detainendcap_after_;
0123
0124
0125
0126
0127
0128
0129
0130
0131
0132
0133
0134
0135
0136 MonitorElement* ecalisobarrel_before_;
0137 MonitorElement* ecalisobarrel_after_;
0138
0139 MonitorElement* ecalisoendcap_before_;
0140 MonitorElement* ecalisoendcap_after_;
0141
0142 MonitorElement* hcalisobarrel_before_;
0143 MonitorElement* hcalisobarrel_after_;
0144
0145 MonitorElement* hcalisoendcap_before_;
0146 MonitorElement* hcalisoendcap_after_;
0147
0148 MonitorElement* trkisobarrel_before_;
0149 MonitorElement* trkisobarrel_after_;
0150
0151 MonitorElement* trkisoendcap_before_;
0152 MonitorElement* trkisoendcap_after_;
0153
0154 MonitorElement* trig_before_;
0155 MonitorElement* trig_after_;
0156
0157 MonitorElement* invmass_before_;
0158 MonitorElement* invmass_after_;
0159 MonitorElement* invmassPU_before_;
0160 MonitorElement* invmassPU_afterZ_;
0161
0162 MonitorElement* npvs_before_;
0163
0164 MonitorElement* npvs_afterZ_;
0165
0166 MonitorElement* nelectrons_before_;
0167 MonitorElement* nelectrons_after_;
0168
0169 MonitorElement* mt_before_;
0170 MonitorElement* mt_after_;
0171
0172 MonitorElement* met_before_;
0173 MonitorElement* met_after_;
0174
0175
0176
0177
0178
0179
0180
0181
0182
0183
0184 MonitorElement* njets_before_;
0185 MonitorElement* njets_after_;
0186 MonitorElement* jet_et_before_;
0187 MonitorElement* jet_et_after_;
0188 MonitorElement* jet_eta_before_;
0189 MonitorElement* jet_eta_after_;
0190
0191
0192 };
0193
0194 #endif
0195
0196
0197
0198
0199