CMS 3D CMS Logo

muonisolation::CandViewExtractor Class Reference

#include <PhysicsTools/IsolationAlgos/plugins/CandViewExtractor.h>

Inheritance diagram for muonisolation::CandViewExtractor:

reco::isodeposit::IsoDepositExtractor

List of all members.

Public Member Functions

 CandViewExtractor (const edm::ParameterSet &par)
 CandViewExtractor ()
virtual reco::IsoDeposit deposit (const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Candidate &muon) const
 make single IsoDeposit based on a candidate as input purely virtual: have to implement in concrete implementations
virtual reco::IsoDeposit deposit (const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Track &muon) const
 make single IsoDeposit based on track as input purely virtual: have to implement in concrete implementations
virtual void fillVetos (const edm::Event &ev, const edm::EventSetup &evSetup, const reco::TrackCollection &cand)
 fill vetoes: to exclude deposits at IsoDeposit creation stage check concrete extractors if it's no-op !
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.

00021 {};

CandViewExtractor::CandViewExtractor ( const edm::ParameterSet par  ) 

Definition at line 18 of file CandViewExtractor.cc.

00018                                                               :
00019   theCandViewTag(par.getParameter<edm::InputTag>("inputCandView")),
00020   theDepositLabel(par.getUntrackedParameter<string>("DepositLabel")),
00021   theDiff_r(par.getParameter<double>("Diff_r")),
00022   theDiff_z(par.getParameter<double>("Diff_z")),
00023   theDR_Max(par.getParameter<double>("DR_Max")),
00024   theDR_Veto(par.getParameter<double>("DR_Veto"))
00025 {
00026 }
/*

virtual muonisolation::CandViewExtractor::~CandViewExtractor (  )  [inline, virtual]

Definition at line 24 of file CandViewExtractor.h.

00024 {}


Member Function Documentation

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().

00042                                                                        { 
00043         return depositFromObject(ev, evSetup, muon);
00044   }

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().

00037                                                                    { 
00038         return depositFromObject(ev, evSetup, muon);
00039   }

template<typename T>
reco::IsoDeposit muonisolation::CandViewExtractor::depositFromObject ( const edm::Event ev,
const edm::EventSetup evSetup,
const T &  cand 
) const [inline, 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.

00027                                                                        { }

reco::IsoDeposit::Veto CandViewExtractor::veto ( const reco::IsoDeposit::Direction dir  )  const [private]

Definition at line 36 of file CandViewExtractor.cc.

References reco::IsoDeposit::Veto::dR, HLT_VtxMuL3::result, theDR_Veto, and reco::IsoDeposit::Veto::vetoDir.

00037 {
00038   reco::IsoDeposit::Veto result;
00039   result.vetoDir = dir;
00040   result.dR = theDR_Veto;
00041   return result;
00042 }


Member Data Documentation

edm::InputTag muonisolation::CandViewExtractor::theCandViewTag [private]

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().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:49:13 2009 for CMSSW by  doxygen 1.5.4