1 #ifndef DQM_Physics_EwkTauDQM_h 2 #define DQM_Physics_EwkTauDQM_h 22 #include <Math/VectorUtil.h> 76 void finalizeHistograms();
156 kPassedPreselection = 1,
158 kPassedElectronId = 3,
159 kPassedElectronTrackIso = 4,
160 kPassedElectronEcalIso = 5,
161 kPassedTauLeadTrack = 6,
162 kPassedTauLeadTrackPt = 7,
163 kPassedTauDiscrAgainstElectrons = 8,
164 kPassedTauDiscrAgainstMuons = 9,
165 kPassedTauTrackIso = 10,
166 kPassedTauEcalIso = 11
224 void finalizeHistograms();
306 kPassedPreselection = 1,
309 kPassedTauLeadTrack = 4,
310 kPassedTauLeadTrackPt = 5,
311 kPassedTauDiscrAgainstMuons = 6,
313 kPassedMuonTrackIso = 8,
314 kPassedMuonEcalIso = 9,
315 kPassedTauTrackIso = 10,
316 kPassedTauEcalIso = 11
371 template <
typename T>
374 int maxNumWarnings,
bool&
error,
const char* errorMessage) {
376 if (numWarnings < maxNumWarnings || maxNumWarnings == -1)
386 double calcMt(
double,
double,
double,
double);
MonitorElement * hCutFlowSummary_
edm::InputTag tauDiscrByEcalIso_
long numWarningsTauDiscrByEcalIso_
edm::InputTag beamSpotSource_
MonitorElement * hPFMEtPt_
edm::InputTag tauDiscrByLeadTrackFinding_
MonitorElement * hTauJetPhi_
edm::InputTag pfMEtSource_
edm::InputTag beamSpotSource_
std::vector< PFTau > PFTauCollection
collection of PFTau objects
bool passesElectronPreId(const reco::GsfElectron &)
edm::InputTag tauDiscrByLeadTrackPtCut_
MonitorElement * hElecTauAcoplanarity_
edm::InputTag electronSource_
edm::InputTag tauDiscrByTrackIso_
long numWarningsTauDiscrAgainstMuons_
MonitorElement * hVisMass_
void analyze(const edm::Event &, const edm::EventSetup &) override
edm::InputTag tauDiscrByLeadTrackFinding_
long numWarningsTauDiscrByEcalIso_
long numWarningsTauDiscrByTrackIso_
MonitorElement * hMuonPhi_
std::vector< std::string > vstring
MonitorElement * hElectronEcalIsoPt_
MonitorElement * hTauEcalIsoPt_
std::string dqmDirectory_
long numWarningsTauDiscrByLeadTrackFinding_
double electronEcalIsoCut_
unsigned numEventsSelected_
MonitorElement * hPFMEtPt_
unsigned numEventsSelected_
std::string dqmDirectory_
edm::InputTag tauDiscrByLeadTrackPtCut_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * hCutFlowSummary_
long numWarningsTauDiscrByLeadTrackPtCut_
edm::InputTag caloMEtSource_
double electronTrackIsoCut_
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
edm::InputTag tauDiscrAgainstMuons_
MonitorElement * hVertexZ_
MonitorElement * hTauDiscrAgainstMuons_
long numWarningsBeamSpot_
std::vector< Muon > MuonCollection
collection of Muon objects
MonitorElement * hMuonEcalIsoPt_
long numWarningsTauDiscrByTrackIso_
MonitorElement * hElecTauCharge_
edm::InputTag vertexSource_
MonitorElement * hElectronTrackIsoPt_
MonitorElement * hTauJetNumSignalTracks_
edm::InputTag tauJetSource_
MonitorElement * hMuonEta_
const reco::GsfElectron * getTheElectron(const reco::GsfElectronCollection &, double, double)
double calcPzeta(const reco::Candidate::LorentzVector &, const reco::Candidate::LorentzVector &, double, double)
int getIsoMode(const std::string &, int &)
MonitorElement * hVisMassFinal_
MonitorElement * hTauLeadTrackPt_
EwkElecTauHistManager * elecTauHistManager_
MonitorElement * hElectronEta_
double calcMt(double, double, double, double)
edm::InputTag caloMEtSource_
long numWarningsTriggerResults_
std::string dqmDirectory_
long numWarningsTauDiscrAgainstMuons_
MonitorElement * hMtMuPFMEt_
MonitorElement * hCaloMEtPt_
MonitorElement * hTauJetPt_
edm::InputTag tauDiscrByEcalIso_
MonitorElement * hVertexZ_
MonitorElement * hTauJetCharge_
MonitorElement * hTauJetPt_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
MonitorElement * hTauTrackIsoPt_
MonitorElement * hElectronPhi_
const reco::PFTau * getTheTauJet(const reco::PFTauCollection &, double, double, int &)
edm::InputTag tauDiscrAgainstElectrons_
MonitorElement * hCaloMEtPt_
long numWarningsTauDiscrByLeadTrackFinding_
MonitorElement * hMuonPt_
long numWarningsElectron_
bool passesElectronId(const reco::GsfElectron &)
edm::InputTag tauDiscrByTrackIso_
double calcDeltaPhi(double, double)
MonitorElement * hMuTauDeltaR_
long numWarningsTriggerResults_
double getVertexD0(const reco::Vertex &, const reco::BeamSpot &)
edm::InputTag muonSource_
MonitorElement * hMuTauAcoplanarity_
MonitorElement * hTauJetNumIsoTracks_
MonitorElement * hMuonCombIsoPt_
math::XYZTLorentzVector LorentzVector
Lorentz vector.
edm::InputTag vertexSource_
edm::InputTag pfMEtSource_
long numWarningsBeamSpot_
EwkMuTauHistManager * muTauHistManager_
const reco::Muon * getTheMuon(const reco::MuonCollection &, double, double)
std::vector< std::string > vstring
void readEventData(const edm::Event &evt, const edm::InputTag &src, edm::Handle< T > &handle, long &numWarnings, int maxNumWarnings, bool &error, const char *errorMessage)
MonitorElement * hTauJetEta_
edm::InputTag tauJetSource_
edm::InputTag triggerResultsSource_
unsigned numEventsAnalyzed_
void endRun(const edm::Run &, const edm::EventSetup &) override
edm::InputTag triggerResultsSource_
MonitorElement * hTauJetEta_
edm::InputTag tauDiscrAgainstMuons_
MonitorElement * hVisMass_
MonitorElement * hMuonTrackIsoPt_
unsigned numEventsAnalyzed_
long numWarningsTauDiscrAgainstElectrons_
EwkTauDQM(const edm::ParameterSet &)
MonitorElement * hElectronPt_
MonitorElement * hMtElecPFMEt_
long numWarningsTauDiscrByLeadTrackPtCut_