#include "DQMServices/Core/interface/DQMOneEDAnalyzer.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/MessageLogger/interface/MessageLogger.h"
#include "FWCore/Utilities/interface/InputTag.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 371 of file EwkTauDQM.h.
double calcDeltaPhi | ( | double | , |
double | |||
) |
Definition at line 1026 of file EwkTauDQM.cc.
References SiPixelRawToDigiRegional_cfi::deltaPhi, and Pi.
Referenced by EwkDQM::analyze(), EwkElecTauHistManager::fillHistograms(), and EwkMuTauHistManager::fillHistograms().
double calcMt | ( | double | , |
double | , | ||
double | , | ||
double | |||
) |
Definition at line 1038 of file EwkTauDQM.cc.
References HLT_FULL_cff::pt1, and HLT_FULL_cff::pt2.
Referenced by EwkElecTauHistManager::fillHistograms(), and EwkMuTauHistManager::fillHistograms().
double calcPzeta | ( | const reco::Candidate::LorentzVector & | , |
const reco::Candidate::LorentzVector & | , | ||
double | , | ||
double | |||
) |
Definition at line 1048 of file EwkTauDQM.cc.
References funct::cos(), p1, p2, multPhiCorr_741_25nsDY_cfi::px, multPhiCorr_741_25nsDY_cfi::py, and funct::sin().
int getIsoMode | ( | const std::string & | , |
int & | |||
) |
Definition at line 1012 of file EwkTauDQM.cc.
References relativeConstraints::error, kAbsoluteIso, kRelativeIso, and kUndefinedIso.
Referenced by EwkElecTauHistManager::EwkElecTauHistManager(), and EwkMuTauHistManager::EwkMuTauHistManager().
const reco::GsfElectron* getTheElectron | ( | const reco::GsfElectronCollection & | , |
double | , | ||
double | |||
) |
Definition at line 1102 of file EwkTauDQM.cc.
References Abs(), metsig::electron, ewkTauDQM_cfi::electronEtaCut, ewkTauDQM_cfi::electronPtCut, pwdgSkimBPark_cfi::electrons, passesElectronPreId(), and reco::LeafCandidate::pt().
Referenced by EwkElecTauHistManager::fillHistograms().
const reco::Muon* getTheMuon | ( | const reco::MuonCollection & | , |
double | , | ||
double | |||
) |
Definition at line 1119 of file EwkTauDQM.cc.
References Abs(), HLT_FULL_cff::muon, ewkTauDQM_cfi::muonEtaCut, L1TObjectsTiming_cfi::muonPtCut, PDWG_BPHSkim_cff::muons, and reco::LeafCandidate::pt().
Referenced by EwkMuTauHistManager::fillHistograms().
const reco::PFTau* getTheTauJet | ( | const reco::PFTauCollection & | , |
double | , | ||
double | , | ||
int & | |||
) |
Definition at line 1132 of file EwkTauDQM.cc.
References reco::LeafCandidate::eta(), reco::LeafCandidate::pt(), reco::Candidate::size, ewkTauDQM_cfi::tauJetEtaCut, and ewkTauDQM_cfi::tauJetPtCut.
Referenced by EwkElecTauHistManager::fillHistograms(), and EwkMuTauHistManager::fillHistograms().
double getVertexD0 | ( | const reco::Vertex & | , |
const reco::BeamSpot & | |||
) |
Definition at line 1154 of file EwkTauDQM.cc.
References pwdgSkimBPark_cfi::beamSpot, and bphysicsOniaDQM_cfi::vertex.
bool passesElectronId | ( | const reco::GsfElectron & | ) |
Definition at line 1085 of file EwkTauDQM.cc.
References Abs(), metsig::electron, and passesElectronPreId().
Referenced by EwkElecTauHistManager::fillHistograms().
bool passesElectronPreId | ( | const reco::GsfElectron & | ) |
Definition at line 1075 of file EwkTauDQM.cc.
References Abs(), and metsig::electron.
Referenced by getTheElectron(), and passesElectronId().
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 374 of file EwkTauDQM.h.
References relativeConstraints::error, edm::Event::getByLabel(), patZpeak::handle, ewkTauDQM_cfi::maxNumWarnings, and TrackRefitter_38T_cff::src.
Referenced by EwkElecTauHistManager::fillHistograms(), and EwkMuTauHistManager::fillHistograms().