CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

muonisolation::CandViewExtractor Class Reference

#include <CandViewExtractor.h>

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

List of all members.

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

Detailed Description

Definition at line 17 of file CandViewExtractor.h.


Constructor & Destructor Documentation

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.

{}

Member Function Documentation

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);
  }
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 
) [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]

Member Data Documentation

Definition at line 54 of file CandViewExtractor.h.

Definition at line 55 of file CandViewExtractor.h.

Definition at line 56 of file CandViewExtractor.h.

Definition at line 57 of file CandViewExtractor.h.

Definition at line 58 of file CandViewExtractor.h.

Definition at line 59 of file CandViewExtractor.h.

Referenced by veto().