#include <CandViewExtractor.h>
Public Member Functions | |
CandViewExtractor () | |
CandViewExtractor (const edm::ParameterSet &par) | |
virtual reco::IsoDeposit | deposit (const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Track &muon) const |
virtual reco::IsoDeposit | deposit (const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Candidate &muon) const |
virtual void | fillVetos (const edm::Event &ev, const edm::EventSetup &evSetup, const reco::TrackCollection &cand) |
virtual | ~CandViewExtractor () |
Private Member Functions | |
template<typename T > | |
reco::IsoDeposit | depositFromObject (const edm::Event &ev, const edm::EventSetup &evSetup, const T &cand) const |
reco::IsoDeposit::Veto | veto (const reco::IsoDeposit::Direction &dir) const |
Private Attributes | |
edm::InputTag | theCandViewTag |
std::string | theDepositLabel |
double | theDiff_r |
double | theDiff_z |
double | theDR_Max |
double | theDR_Veto |
Definition at line 17 of file CandViewExtractor.h.
muonisolation::CandViewExtractor::CandViewExtractor | ( | ) | [inline] |
Definition at line 21 of file CandViewExtractor.h.
{};
CandViewExtractor::CandViewExtractor | ( | const edm::ParameterSet & | par | ) |
Definition at line 17 of file CandViewExtractor.cc.
: theCandViewTag(par.getParameter<edm::InputTag>("inputCandView")), theDepositLabel(par.getUntrackedParameter<std::string>("DepositLabel")), theDiff_r(par.getParameter<double>("Diff_r")), theDiff_z(par.getParameter<double>("Diff_z")), theDR_Max(par.getParameter<double>("DR_Max")), theDR_Veto(par.getParameter<double>("DR_Veto")) { }
virtual muonisolation::CandViewExtractor::~CandViewExtractor | ( | ) | [inline, virtual] |
Definition at line 24 of file CandViewExtractor.h.
{}
virtual reco::IsoDeposit muonisolation::CandViewExtractor::deposit | ( | const edm::Event & | ev, |
const edm::EventSetup & | evSetup, | ||
const reco::Track & | track | ||
) | const [inline, virtual] |
make single IsoDeposit based on track as input purely virtual: have to implement in concrete implementations
Implements reco::isodeposit::IsoDepositExtractor.
Definition at line 36 of file CandViewExtractor.h.
References depositFromObject().
{ return depositFromObject(ev, evSetup, muon); }
virtual reco::IsoDeposit muonisolation::CandViewExtractor::deposit | ( | const edm::Event & | ev, |
const edm::EventSetup & | evSetup, | ||
const reco::Candidate & | track | ||
) | const [inline, virtual] |
make single IsoDeposit based on a candidate as input purely virtual: have to implement in concrete implementations
Reimplemented from reco::isodeposit::IsoDepositExtractor.
Definition at line 41 of file CandViewExtractor.h.
References depositFromObject().
{ return depositFromObject(ev, evSetup, muon); }
reco::IsoDeposit muonisolation::CandViewExtractor::depositFromObject | ( | const edm::Event & | ev, |
const edm::EventSetup & | evSetup, | ||
const T & | cand | ||
) | const [private] |
Referenced by deposit().
virtual void muonisolation::CandViewExtractor::fillVetos | ( | const edm::Event & | ev, |
const edm::EventSetup & | evSetup, | ||
const reco::TrackCollection & | tracks | ||
) | [inline, virtual] |
fill vetoes: to exclude deposits at IsoDeposit creation stage check concrete extractors if it's no-op !
Implements reco::isodeposit::IsoDepositExtractor.
Definition at line 26 of file CandViewExtractor.h.
{ }
reco::IsoDeposit::Veto CandViewExtractor::veto | ( | const reco::IsoDeposit::Direction & | dir | ) | const [private] |
Definition at line 35 of file CandViewExtractor.cc.
References dir, reco::IsoDeposit::Veto::dR, query::result, theDR_Veto, and reco::IsoDeposit::Veto::vetoDir.
{ reco::IsoDeposit::Veto result; result.vetoDir = dir; result.dR = theDR_Veto; return result; }
Definition at line 54 of file CandViewExtractor.h.
std::string muonisolation::CandViewExtractor::theDepositLabel [private] |
Definition at line 55 of file CandViewExtractor.h.
double muonisolation::CandViewExtractor::theDiff_r [private] |
Definition at line 56 of file CandViewExtractor.h.
double muonisolation::CandViewExtractor::theDiff_z [private] |
Definition at line 57 of file CandViewExtractor.h.
double muonisolation::CandViewExtractor::theDR_Max [private] |
Definition at line 58 of file CandViewExtractor.h.
double muonisolation::CandViewExtractor::theDR_Veto [private] |
Definition at line 59 of file CandViewExtractor.h.
Referenced by veto().