CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
muonisolation::CandViewExtractor Class Reference

#include <CandViewExtractor.h>

Inheritance diagram for muonisolation::CandViewExtractor:
reco::isodeposit::IsoDepositExtractor

Public Member Functions

 CandViewExtractor ()
 
 CandViewExtractor (const edm::ParameterSet &par, edm::ConsumesCollector &&iC)
 
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 ()
 
- Public Member Functions inherited from reco::isodeposit::IsoDepositExtractor
virtual reco::IsoDeposit deposit (const edm::Event &ev, const edm::EventSetup &evSetup, const reco::TrackBaseRef &track) const
 make single IsoDeposit based on trackRef as input More...
 
virtual reco::IsoDeposit deposit (const edm::Event &ev, const edm::EventSetup &evSetup, const reco::CandidateBaseRef &track) const
 make single IsoDeposit based on a CandidateBaseRef as input More...
 
virtual std::vector
< reco::IsoDeposit
deposits (const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Track &track) const
 
virtual std::vector
< reco::IsoDeposit
deposits (const edm::Event &ev, const edm::EventSetup &evSetup, const reco::TrackBaseRef &track) const
 
virtual std::vector
< reco::IsoDeposit
deposits (const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Candidate &track) const
 
virtual std::vector
< reco::IsoDeposit
deposits (const edm::Event &ev, const edm::EventSetup &evSetup, const reco::CandidateBaseRef &track) const
 
virtual ~IsoDepositExtractor ()
 Destructor. More...
 

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::EDGetTokenT< edm::View
< reco::Candidate > > 
theCandViewToken
 
std::string theDepositLabel
 
double theDiff_r
 
double theDiff_z
 
double theDR_Max
 
double theDR_Veto
 

Detailed Description

Definition at line 19 of file CandViewExtractor.h.

Constructor & Destructor Documentation

muonisolation::CandViewExtractor::CandViewExtractor ( )
inline

Definition at line 23 of file CandViewExtractor.h.

23 {};
CandViewExtractor::CandViewExtractor ( const edm::ParameterSet par,
edm::ConsumesCollector &&  iC 
)

Definition at line 17 of file CandViewExtractor.cc.

17  :
20  theDiff_r(par.getParameter<double>("Diff_r")),
21  theDiff_z(par.getParameter<double>("Diff_z")),
22  theDR_Max(par.getParameter<double>("DR_Max")),
23  theDR_Veto(par.getParameter<double>("DR_Veto"))
24 {
25 }
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< edm::View< reco::Candidate > > theCandViewToken
virtual muonisolation::CandViewExtractor::~CandViewExtractor ( )
inlinevirtual

Definition at line 26 of file CandViewExtractor.h.

26 {}

Member Function Documentation

virtual reco::IsoDeposit muonisolation::CandViewExtractor::deposit ( const edm::Event ev,
const edm::EventSetup evSetup,
const reco::Track track 
) const
inlinevirtual

make single IsoDeposit based on track as input purely virtual: have to implement in concrete implementations

Implements reco::isodeposit::IsoDepositExtractor.

Definition at line 38 of file CandViewExtractor.h.

References depositFromObject().

39  {
40  return depositFromObject(ev, evSetup, muon);
41  }
reco::IsoDeposit depositFromObject(const edm::Event &ev, const edm::EventSetup &evSetup, const T &cand) const
virtual reco::IsoDeposit muonisolation::CandViewExtractor::deposit ( const edm::Event ev,
const edm::EventSetup evSetup,
const reco::Candidate track 
) const
inlinevirtual

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 43 of file CandViewExtractor.h.

References depositFromObject().

44  {
45  return depositFromObject(ev, evSetup, muon);
46  }
reco::IsoDeposit depositFromObject(const edm::Event &ev, const edm::EventSetup &evSetup, const T &cand) const
template<typename T >
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 
)
inlinevirtual

fill vetoes: to exclude deposits at IsoDeposit creation stage check concrete extractors if it's no-op !

Implements reco::isodeposit::IsoDepositExtractor.

Definition at line 28 of file CandViewExtractor.h.

29  { }
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.

36 {
38  result.vetoDir = dir;
39  result.dR = theDR_Veto;
40  return result;
41 }
tuple result
Definition: query.py:137
dbl *** dir
Definition: mlp_gen.cc:35

Member Data Documentation

edm::EDGetTokenT< edm::View<reco::Candidate> > muonisolation::CandViewExtractor::theCandViewToken
private

Definition at line 56 of file CandViewExtractor.h.

std::string muonisolation::CandViewExtractor::theDepositLabel
private

Definition at line 57 of file CandViewExtractor.h.

double muonisolation::CandViewExtractor::theDiff_r
private

Definition at line 58 of file CandViewExtractor.h.

double muonisolation::CandViewExtractor::theDiff_z
private

Definition at line 59 of file CandViewExtractor.h.

double muonisolation::CandViewExtractor::theDR_Max
private

Definition at line 60 of file CandViewExtractor.h.

double muonisolation::CandViewExtractor::theDR_Veto
private

Definition at line 61 of file CandViewExtractor.h.

Referenced by veto().