#include <RecoCandidate.h>
Public Types | |
enum | TrackType { noTrackType, recoTrackType, gsfTrackType } |
track type More... | |
Public Member Functions | |
virtual const Track * | bestTrack () const |
best track pointer | |
virtual TrackBaseRef | bestTrackRef () const |
best track RefToBase | |
virtual TrackType | bestTrackType () const |
track type | |
virtual CaloTowerRef | caloTower () const |
reference to a CaloTower | |
virtual RecoCandidate * | clone () const |
returns a clone of the Candidate object | |
virtual reco::TrackRef | combinedMuon () const |
reference to a stand-alone muon Track | |
virtual reco::GsfTrackRef | gsfTrack () const |
reference to a GsfTrack | |
virtual size_t | numberOfTracks () const |
number of multiple Tracks | |
virtual bool | overlap (const Candidate &) const =0 |
check overlap with another candidate | |
template<typename P4 > | |
RecoCandidate (Charge q, const P4 &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0) | |
constructor from values | |
RecoCandidate () | |
default constructor | |
virtual reco::TrackRef | standAloneMuon () const |
reference to a stand-alone muon Track | |
virtual reco::SuperClusterRef | superCluster () const |
reference to a SuperCluster | |
virtual reco::TrackRef | track (size_t) const |
reference to one of multiple Tracks | |
virtual reco::TrackRef | track () const |
reference to a Track | |
virtual | ~RecoCandidate () |
destructor | |
Protected Member Functions | |
template<typename R > | |
bool | checkOverlap (const R &r1, const R &r2) const |
check if two components overlap | |
Friends | |
struct | component |
base class for all Reco Candidates
Definition at line 21 of file RecoCandidate.h.
track type
Definition at line 58 of file RecoCandidate.h.
{ noTrackType, recoTrackType, gsfTrackType };
reco::RecoCandidate::RecoCandidate | ( | ) | [inline] |
reco::RecoCandidate::RecoCandidate | ( | Charge | q, |
const P4 & | p4, | ||
const Point & | vtx = Point( 0, 0, 0 ) , |
||
int | pdgId = 0 , |
||
int | status = 0 |
||
) | [inline] |
constructor from values
Definition at line 27 of file RecoCandidate.h.
: LeafCandidate( q, p4, vtx, pdgId, status ) { }
RecoCandidate::~RecoCandidate | ( | ) | [virtual] |
const Track * RecoCandidate::bestTrack | ( | ) | const [virtual] |
best track pointer
Reimplemented in reco::Muon.
Definition at line 46 of file RecoCandidate.cc.
References combinedMuon(), edm::Ref< C, T, F >::get(), gsfTrack(), edm::Ref< C, T, F >::isNonnull(), standAloneMuon(), and track().
Referenced by CandIsoDepositProducer::extractTrack().
{ TrackRef muRef = combinedMuon(); if( muRef.isNonnull() ) return muRef.get(); TrackRef trkRef = track(); if ( trkRef.isNonnull() ) return trkRef.get(); GsfTrackRef gsfTrkRef = gsfTrack(); if ( gsfTrkRef.isNonnull() ) return gsfTrkRef.get(); TrackRef staRef = standAloneMuon(); if ( staRef.isNonnull() ) return staRef.get(); return 0; }
TrackBaseRef RecoCandidate::bestTrackRef | ( | ) | const [virtual] |
best track RefToBase
Reimplemented in reco::Muon.
Definition at line 62 of file RecoCandidate.cc.
References combinedMuon(), gsfTrack(), edm::Ref< C, T, F >::isNonnull(), standAloneMuon(), and track().
Referenced by pat::helper::VertexingHelper::getTrack_().
{ TrackRef muRef = combinedMuon(); if( muRef.isNonnull() ) return TrackBaseRef(muRef); TrackRef trkRef = track(); if ( trkRef.isNonnull() ) return TrackBaseRef(trkRef); GsfTrackRef gsfTrkRef = gsfTrack(); if ( gsfTrkRef.isNonnull() ) return TrackBaseRef(gsfTrkRef); TrackRef staRef = standAloneMuon(); if ( staRef.isNonnull() ) return TrackBaseRef(staRef); return TrackBaseRef(); }
RecoCandidate::TrackType RecoCandidate::bestTrackType | ( | ) | const [virtual] |
track type
Definition at line 75 of file RecoCandidate.cc.
References combinedMuon(), gsfTrack(), gsfTrackType, noTrackType, recoTrackType, and track().
{ if( combinedMuon().isNonnull() ) return recoTrackType; if ( track().isNonnull() ) return recoTrackType; if ( gsfTrack().isNonnull() ) return gsfTrackType; return noTrackType; }
CaloTowerRef RecoCandidate::caloTower | ( | ) | const [virtual] |
reference to a CaloTower
Reimplemented in pat::GenericParticle, and reco::RecoCaloTowerCandidate.
Definition at line 42 of file RecoCandidate.cc.
Referenced by reco::CompositeRefCandidateT< GenParticleRefVector >::overlap(), and reco::RecoCaloTowerCandidate::overlap().
{ return CaloTowerRef(); }
bool reco::RecoCandidate::checkOverlap | ( | const R & | r1, |
const R & | r2 | ||
) | const [inline, protected] |
check if two components overlap
Definition at line 64 of file RecoCandidate.h.
References diffTwoXMLs::r2.
Referenced by reco::BaseTau::overlap(), reco::Photon::overlap(), reco::Muon::overlap(), reco::Electron::overlap(), reco::RecoStandAloneMuonCandidate::overlap(), reco::SiStripElectron::overlap(), reco::GsfElectron::overlap(), reco::RecoEcalCandidate::overlap(), reco::RecoChargedCandidate::overlap(), reco::IsolatedPixelTrackCandidate::overlap(), reco::PFTau::overlap(), reco::CaloTau::overlap(), and reco::RecoCaloTowerCandidate::overlap().
RecoCandidate * RecoCandidate::clone | ( | void | ) | const [virtual] |
returns a clone of the Candidate object
Reimplemented from reco::LeafCandidate.
Reimplemented in reco::Electron, reco::GsfElectron, reco::Photon, reco::SiStripElectron, reco::IsolatedPixelTrackCandidate, reco::MET, reco::Muon, pat::Electron, pat::GenericParticle, pat::MET, pat::Muon, pat::Photon, pat::Tau, reco::RecoCaloTowerCandidate, reco::RecoChargedCandidate, reco::RecoEcalCandidate, reco::RecoStandAloneMuonCandidate, reco::BaseTau, reco::CaloTau, reco::PFTau, pat::Lepton< reco::BaseTau >, pat::Lepton< reco::GsfElectron >, and pat::Lepton< reco::Muon >.
Definition at line 10 of file RecoCandidate.cc.
References Exception.
{ throw cms::Exception("LogicError", "reco::RecoCandidate is abstract, so it's clone() method can't be implemented.\n"); }
TrackRef RecoCandidate::combinedMuon | ( | ) | const [virtual] |
reference to a stand-alone muon Track
Reimplemented in reco::Muon, pat::GenericParticle, and pat::Muon.
Definition at line 34 of file RecoCandidate.cc.
Referenced by bestTrack(), bestTrackRef(), bestTrackType(), CandIsoDepositProducer::extractTrack(), MatcherUsingTracksAlgorithm::getTrack(), reco::Muon::overlap(), reco::RecoStandAloneMuonCandidate::overlap(), reco::CompositeRefCandidateT< GenParticleRefVector >::overlap(), reco::RecoChargedCandidate::overlap(), PropagateToMuon::startingState(), and MatcherByPullsAlgorithm::track().
{ return TrackRef(); }
GsfTrackRef RecoCandidate::gsfTrack | ( | ) | const [virtual] |
reference to a GsfTrack
Reimplemented in reco::Electron, reco::GsfElectron, pat::Electron, and pat::GenericParticle.
Definition at line 26 of file RecoCandidate.cc.
Referenced by bestTrack(), bestTrackRef(), bestTrackType(), CandIsoDepositProducer::extractTrack(), reco::GsfElectron::overlap(), and reco::CompositeRefCandidateT< GenParticleRefVector >::overlap().
{ return GsfTrackRef(); }
size_t RecoCandidate::numberOfTracks | ( | ) | const [virtual] |
number of multiple Tracks
Reimplemented in pat::GenericParticle.
Definition at line 22 of file RecoCandidate.cc.
{
return 0;
}
virtual bool reco::RecoCandidate::overlap | ( | const Candidate & | ) | const [pure virtual] |
check overlap with another candidate
Reimplemented from reco::LeafCandidate.
Implemented in reco::Electron, reco::GsfElectron, reco::Photon, reco::SiStripElectron, reco::IsolatedPixelTrackCandidate, reco::CaloMET, reco::GenMET, reco::MET, reco::Muon, reco::RecoCaloTowerCandidate, reco::RecoChargedCandidate, reco::RecoEcalCandidate, reco::RecoStandAloneMuonCandidate, reco::BaseTau, reco::CaloTau, and reco::PFTau.
TrackRef RecoCandidate::standAloneMuon | ( | ) | const [virtual] |
reference to a stand-alone muon Track
Reimplemented in reco::Muon, pat::GenericParticle, pat::Muon, and reco::RecoStandAloneMuonCandidate.
Definition at line 30 of file RecoCandidate.cc.
Referenced by bestTrack(), bestTrackRef(), CandIsoDepositProducer::extractTrack(), MatcherUsingTracksAlgorithm::getTrack(), reco::Muon::overlap(), reco::RecoStandAloneMuonCandidate::overlap(), reco::CompositeRefCandidateT< GenParticleRefVector >::overlap(), reco::RecoChargedCandidate::overlap(), PropagateToMuon::startingState(), and MatcherByPullsAlgorithm::track().
{ return TrackRef(); }
SuperClusterRef RecoCandidate::superCluster | ( | ) | const [virtual] |
reference to a SuperCluster
Reimplemented in reco::Electron, reco::GsfElectron, reco::Photon, reco::SiStripElectron, pat::Electron, pat::GenericParticle, pat::Photon, and reco::RecoEcalCandidate.
Definition at line 38 of file RecoCandidate.cc.
Referenced by PFCandIsolatorFromDeposits::SingleDeposit::compute(), pat::helper::OverlapBySuperClusterSeed::fillOverlapsForItem(), EgammaHLTHcalIsolationDoubleCone::isolPtSum(), EgammaHLTEcalIsolation::isolPtSum(), reco::Photon::overlap(), reco::Electron::overlap(), reco::SiStripElectron::overlap(), reco::GsfElectron::overlap(), reco::CompositeRefCandidateT< GenParticleRefVector >::overlap(), reco::RecoEcalCandidate::overlap(), and EgammaHLTTrackIsolation::photonIsolation().
{ return SuperClusterRef(); }
TrackRef RecoCandidate::track | ( | size_t | ) | const [virtual] |
reference to one of multiple Tracks
Reimplemented in pat::GenericParticle.
Definition at line 18 of file RecoCandidate.cc.
{ return TrackRef(); }
TrackRef RecoCandidate::track | ( | void | ) | const [virtual] |
reference to a Track
Reimplemented in reco::Electron, reco::IsolatedPixelTrackCandidate, reco::Muon, pat::Electron, pat::GenericParticle, pat::Muon, and reco::RecoChargedCandidate.
Definition at line 14 of file RecoCandidate.cc.
Referenced by bestTrack(), bestTrackRef(), bestTrackType(), CandIsoDepositProducer::extractTrack(), MatcherUsingTracksAlgorithm::getTrack(), reco::BaseTau::overlap(), reco::Muon::overlap(), reco::Electron::overlap(), reco::RecoStandAloneMuonCandidate::overlap(), reco::SiStripElectron::overlap(), reco::CompositeRefCandidateT< GenParticleRefVector >::overlap(), reco::RecoChargedCandidate::overlap(), reco::IsolatedPixelTrackCandidate::overlap(), reco::PFTau::overlap(), reco::CaloTau::overlap(), PropagateToMuon::startingState(), and MatcherByPullsAlgorithm::track().
{ return TrackRef(); }
friend struct component [friend] |
Reimplemented from reco::LeafCandidate.
Definition at line 69 of file RecoCandidate.h.