#include "DQMServices/Core/interface/DQMEDAnalyzer.h"
#include "DQMServices/Core/interface/DQMStore.h"
#include <string>
#include <Math/VectorUtil.h>
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Utilities/interface/InputTag.h"
#include "DQMServices/Core/interface/MonitorElement.h"
#include "DataFormats/Candidate/interface/Candidate.h"
#include "DataFormats/EgammaCandidates/interface/GsfElectron.h"
#include "DataFormats/EgammaCandidates/interface/GsfElectronFwd.h"
#include "DataFormats/MuonReco/interface/Muon.h"
#include "DataFormats/MuonReco/interface/MuonFwd.h"
#include "DataFormats/TauReco/interface/PFTau.h"
#include "DataFormats/TauReco/interface/PFTauFwd.h"
#include "DataFormats/VertexReco/interface/Vertex.h"
#include "DataFormats/BeamSpot/interface/BeamSpot.h"
Go to the source code of this file.
Classes | |
class | EwkElecTauHistManager |
class | EwkMuTauHistManager |
class | EwkTauDQM |
Enumerations | |
enum | { kAbsoluteIso, kRelativeIso, kUndefinedIso } |
Functions | |
double | calcDeltaPhi (double, double) |
double | calcMt (double, double, double, double) |
double | calcPzeta (const reco::Candidate::LorentzVector &, const reco::Candidate::LorentzVector &, double, double) |
int | getIsoMode (const std::string &, int &) |
const reco::GsfElectron * | getTheElectron (const reco::GsfElectronCollection &, double, double) |
const reco::Muon * | getTheMuon (const reco::MuonCollection &, double, double) |
const reco::PFTau * | getTheTauJet (const reco::PFTauCollection &, double, double, int &) |
double | getVertexD0 (const reco::Vertex &, const reco::BeamSpot &) |
bool | passesElectronId (const reco::GsfElectron &) |
bool | passesElectronPreId (const reco::GsfElectron &) |
template<typename T > | |
void | readEventData (const edm::Event &evt, const edm::InputTag &src, edm::Handle< T > &handle, long &numWarnings, int maxNumWarnings, bool &error, const char *errorMessage) |
anonymous enum |
Auxiliary functions to compute quantities used by EWK Tau DQM (shared by different channels)
Enumerator | |
---|---|
kAbsoluteIso | |
kRelativeIso | |
kUndefinedIso |
Definition at line 369 of file EwkTauDQM.h.
double calcDeltaPhi | ( | double | , |
double | |||
) |
Definition at line 1028 of file EwkTauDQM.cc.
References hiPixelPairStep_cff::deltaPhi, and Pi.
Referenced by EwkDQM::analyze(), EwkElecTauHistManager::fillHistograms(), EwkMuTauHistManager::fillHistograms(), and readEventData().
double calcMt | ( | double | , |
double | , | ||
double | , | ||
double | |||
) |
Definition at line 1038 of file EwkTauDQM.cc.
References hiDetachedQuadStep_cff::pt1, and hiDetachedQuadStep_cff::pt2.
Referenced by EwkElecTauHistManager::fillHistograms(), EwkMuTauHistManager::fillHistograms(), and readEventData().
double calcPzeta | ( | const reco::Candidate::LorentzVector & | , |
const reco::Candidate::LorentzVector & | , | ||
double | , | ||
double | |||
) |
Definition at line 1048 of file EwkTauDQM.cc.
References funct::cos(), and funct::sin().
Referenced by readEventData().
int getIsoMode | ( | const std::string & | , |
int & | |||
) |
Definition at line 1013 of file EwkTauDQM.cc.
References kAbsoluteIso, kRelativeIso, and kUndefinedIso.
Referenced by EwkElecTauHistManager::EwkElecTauHistManager(), EwkMuTauHistManager::EwkMuTauHistManager(), and readEventData().
const reco::GsfElectron* getTheElectron | ( | const reco::GsfElectronCollection & | , |
double | , | ||
double | |||
) |
Definition at line 1104 of file EwkTauDQM.cc.
References Abs(), metsig::electron, passesElectronPreId(), and reco::LeafCandidate::pt().
Referenced by EwkElecTauHistManager::fillHistograms(), and readEventData().
const reco::Muon* getTheMuon | ( | const reco::MuonCollection & | , |
double | , | ||
double | |||
) |
Definition at line 1121 of file EwkTauDQM.cc.
References Abs(), metsig::muon, badGlobalMuonTaggersAOD_cff::muonPtCut, and reco::LeafCandidate::pt().
Referenced by EwkMuTauHistManager::fillHistograms(), and readEventData().
const reco::PFTau* getTheTauJet | ( | const reco::PFTauCollection & | , |
double | , | ||
double | , | ||
int & | |||
) |
Definition at line 1135 of file EwkTauDQM.cc.
References reco::LeafCandidate::eta(), reco::LeafCandidate::pt(), and reco::Candidate::size.
Referenced by EwkElecTauHistManager::fillHistograms(), EwkMuTauHistManager::fillHistograms(), and readEventData().
double getVertexD0 | ( | const reco::Vertex & | , |
const reco::BeamSpot & | |||
) |
Definition at line 1156 of file EwkTauDQM.cc.
References reco::Vertex::x(), reco::BeamSpot::x0(), reco::Vertex::y(), and reco::BeamSpot::y0().
Referenced by readEventData().
bool passesElectronId | ( | const reco::GsfElectron & | ) |
Definition at line 1086 of file EwkTauDQM.cc.
References Abs(), reco::GsfElectron::deltaEtaSuperClusterTrackAtVtx(), reco::GsfElectron::deltaPhiSuperClusterTrackAtVtx(), reco::LeafCandidate::eta(), reco::GsfElectron::hcalOverEcal(), passesElectronPreId(), and reco::GsfElectron::sigmaEtaEta().
Referenced by EwkElecTauHistManager::fillHistograms(), and readEventData().
bool passesElectronPreId | ( | const reco::GsfElectron & | ) |
Definition at line 1074 of file EwkTauDQM.cc.
References Abs(), reco::GsfElectron::deltaEtaSuperClusterTrackAtVtx(), reco::GsfElectron::deltaPhiSuperClusterTrackAtVtx(), reco::LeafCandidate::eta(), and reco::GsfElectron::sigmaIetaIeta().
Referenced by getTheElectron(), passesElectronId(), and readEventData().
void readEventData | ( | const edm::Event & | evt, |
const edm::InputTag & | src, | ||
edm::Handle< T > & | handle, | ||
long & | numWarnings, | ||
int | maxNumWarnings, | ||
bool & | error, | ||
const char * | errorMessage | ||
) |
Definition at line 372 of file EwkTauDQM.h.
References calcDeltaPhi(), calcMt(), calcPzeta(), edm::Event::getByLabel(), getIsoMode(), getTheElectron(), getTheMuon(), getTheTauJet(), getVertexD0(), passesElectronId(), passesElectronPreId(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by EwkElecTauHistManager::fillHistograms(), and EwkMuTauHistManager::fillHistograms().