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
PFCandWithSuperClusterExtractor Class Reference

#include <PFCandWithSuperClusterExtractor.h>

Inheritance diagram for PFCandWithSuperClusterExtractor:
reco::isodeposit::IsoDepositExtractor

Public Member Functions

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 &cand) const
 
virtual void fillVetos (const edm::Event &ev, const edm::EventSetup &evSetup, const reco::TrackCollection &cand)
 
 PFCandWithSuperClusterExtractor ()
 
 PFCandWithSuperClusterExtractor (const edm::ParameterSet &par, edm::ConsumesCollector &&iC)
 
virtual ~PFCandWithSuperClusterExtractor ()
 
- 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 void initEvent (const edm::Event &, const edm::EventSetup &)
 perform some constly initialization More...
 
virtual ~IsoDepositExtractor ()
 Destructor. More...
 

Private Member Functions

reco::IsoDeposit depositFromObject (const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Photon &cand) const
 
reco::IsoDeposit depositFromObject (const edm::Event &ev, const edm::EventSetup &evSetup, const reco::GsfElectron &cand) const
 
reco::IsoDeposit depositFromObject (const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Track &cand) const
 
reco::IsoDeposit depositFromObject (const edm::Event &ev, const edm::EventSetup &evSetup, const reco::PFCandidate &cand) const
 
reco::IsoDeposit::Veto veto (const reco::IsoDeposit::Direction &dir) const
 

Private Attributes

std::string theDepositLabel
 
double theDiff_r
 
double theDiff_z
 
double theDR_Max
 
double theDR_Veto
 
bool theMissHitVetoSuperClusterMatch
 
edm::EDGetTokenT
< reco::PFCandidateCollection
thePFCandToken
 
bool theVetoSuperClusterMatch
 

Detailed Description

Definition at line 22 of file PFCandWithSuperClusterExtractor.h.

Constructor & Destructor Documentation

PFCandWithSuperClusterExtractor::PFCandWithSuperClusterExtractor ( )
inline

Definition at line 26 of file PFCandWithSuperClusterExtractor.h.

26 {};
PFCandWithSuperClusterExtractor::PFCandWithSuperClusterExtractor ( const edm::ParameterSet par,
edm::ConsumesCollector &&  iC 
)

Definition at line 13 of file PFCandWithSuperClusterExtractor.cc.

virtual PFCandWithSuperClusterExtractor::~PFCandWithSuperClusterExtractor ( )
inlinevirtual

Definition at line 29 of file PFCandWithSuperClusterExtractor.h.

29 {}

Member Function Documentation

virtual reco::IsoDeposit PFCandWithSuperClusterExtractor::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 35 of file PFCandWithSuperClusterExtractor.h.

References depositFromObject().

36  {
37  return depositFromObject(ev, evSetup, muon);
38  }
reco::IsoDeposit depositFromObject(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Photon &cand) const
virtual reco::IsoDeposit PFCandWithSuperClusterExtractor::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 40 of file PFCandWithSuperClusterExtractor.h.

References depositFromObject().

41  {
42 
43  const reco::Photon * myPhoton= dynamic_cast<const reco::Photon*>(&cand);
44  if(myPhoton)
45  return depositFromObject(ev, evSetup,*myPhoton);
46 
47  const reco::GsfElectron * myElectron = dynamic_cast<const reco::GsfElectron*>(&cand);
48  if(myElectron)
49  return depositFromObject(ev,evSetup,*myElectron);
50 
51  const reco::PFCandidate * myPFCand = dynamic_cast<const reco::PFCandidate*>(&cand);
52  return depositFromObject(ev, evSetup,*myPFCand);
53  }
reco::IsoDeposit depositFromObject(const edm::Event &ev, const edm::EventSetup &evSetup, const reco::Photon &cand) const
Particle reconstructed by the particle flow algorithm.
Definition: PFCandidate.h:39
IsoDeposit PFCandWithSuperClusterExtractor::depositFromObject ( const edm::Event ev,
const edm::EventSetup evSetup,
const reco::Photon cand 
) const
private

Definition at line 43 of file PFCandWithSuperClusterExtractor.cc.

Referenced by deposit().

IsoDeposit PFCandWithSuperClusterExtractor::depositFromObject ( const edm::Event ev,
const edm::EventSetup evSetup,
const reco::GsfElectron cand 
) const
private

Definition at line 72 of file PFCandWithSuperClusterExtractor.cc.

IsoDeposit PFCandWithSuperClusterExtractor::depositFromObject ( const edm::Event ev,
const edm::EventSetup evSetup,
const reco::Track cand 
) const
private

Definition at line 107 of file PFCandWithSuperClusterExtractor.cc.

IsoDeposit PFCandWithSuperClusterExtractor::depositFromObject ( const edm::Event ev,
const edm::EventSetup evSetup,
const reco::PFCandidate cand 
) const
private

Definition at line 134 of file PFCandWithSuperClusterExtractor.cc.

virtual void PFCandWithSuperClusterExtractor::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 31 of file PFCandWithSuperClusterExtractor.h.

32  { }
reco::IsoDeposit::Veto PFCandWithSuperClusterExtractor::veto ( const reco::IsoDeposit::Direction dir) const
private

Definition at line 34 of file PFCandWithSuperClusterExtractor.cc.

Member Data Documentation

std::string PFCandWithSuperClusterExtractor::theDepositLabel
private

Definition at line 72 of file PFCandWithSuperClusterExtractor.h.

double PFCandWithSuperClusterExtractor::theDiff_r
private

Definition at line 75 of file PFCandWithSuperClusterExtractor.h.

double PFCandWithSuperClusterExtractor::theDiff_z
private

Definition at line 76 of file PFCandWithSuperClusterExtractor.h.

double PFCandWithSuperClusterExtractor::theDR_Max
private

Definition at line 77 of file PFCandWithSuperClusterExtractor.h.

double PFCandWithSuperClusterExtractor::theDR_Veto
private

Definition at line 78 of file PFCandWithSuperClusterExtractor.h.

bool PFCandWithSuperClusterExtractor::theMissHitVetoSuperClusterMatch
private

Definition at line 74 of file PFCandWithSuperClusterExtractor.h.

edm::EDGetTokenT<reco::PFCandidateCollection> PFCandWithSuperClusterExtractor::thePFCandToken
private

Definition at line 71 of file PFCandWithSuperClusterExtractor.h.

bool PFCandWithSuperClusterExtractor::theVetoSuperClusterMatch
private

Definition at line 73 of file PFCandWithSuperClusterExtractor.h.