#include <CaloRecHitCandidate.h>
Public Types | |
typedef edm::RefToBase < CaloRecHit > | CaloRecHitRef |
Public Member Functions | |
CaloRecHitRef | caloRecHit () const |
reference to a CaloRecHit | |
CaloRecHitCandidate (const PolarLorentzVector &p4, Charge q=0, const Point &vtx=Point(0, 0, 0)) | |
constructor from values | |
CaloRecHitCandidate (const LorentzVector &p4, Charge q=0, const Point &vtx=Point(0, 0, 0)) | |
constructor from values | |
CaloRecHitCandidate () | |
default constructor | |
virtual CaloRecHitCandidate * | clone () const |
returns a clone of the candidate | |
void | setCaloRecHit (const CaloRecHitRef &r) |
set CaloRecHit reference | |
virtual | ~CaloRecHitCandidate () |
destructor | |
Private Member Functions | |
virtual bool | overlap (const Candidate &) const |
check overlap with another candidate | |
Private Attributes | |
CaloRecHitRef | caloRecHit_ |
reference to a CaloRecHit |
Reco Candidates with a CaloRecHit component
Definition at line 18 of file CaloRecHitCandidate.h.
Definition at line 20 of file CaloRecHitCandidate.h.
reco::CaloRecHitCandidate::CaloRecHitCandidate | ( | ) | [inline] |
default constructor
Definition at line 22 of file CaloRecHitCandidate.h.
Referenced by clone().
: LeafCandidate() { }
reco::CaloRecHitCandidate::CaloRecHitCandidate | ( | const LorentzVector & | p4, |
Charge | q = 0 , |
||
const Point & | vtx = Point( 0, 0, 0 ) |
||
) | [inline] |
constructor from values
Definition at line 24 of file CaloRecHitCandidate.h.
: LeafCandidate( q, p4, vtx ) { }
reco::CaloRecHitCandidate::CaloRecHitCandidate | ( | const PolarLorentzVector & | p4, |
Charge | q = 0 , |
||
const Point & | vtx = Point( 0, 0, 0 ) |
||
) | [inline] |
constructor from values
Definition at line 27 of file CaloRecHitCandidate.h.
: LeafCandidate( q, p4, vtx ) { }
CaloRecHitCandidate::~CaloRecHitCandidate | ( | ) | [virtual] |
CaloRecHitRef reco::CaloRecHitCandidate::caloRecHit | ( | ) | const [inline] |
reference to a CaloRecHit
Definition at line 36 of file CaloRecHitCandidate.h.
References caloRecHit_.
Referenced by overlap().
{ return caloRecHit_; }
CaloRecHitCandidate * CaloRecHitCandidate::clone | ( | void | ) | const [virtual] |
returns a clone of the candidate
Reimplemented from reco::LeafCandidate.
Definition at line 8 of file CaloRecHitCandidate.cc.
References CaloRecHitCandidate().
{ return new CaloRecHitCandidate( * this ); }
bool CaloRecHitCandidate::overlap | ( | const Candidate & | c | ) | const [private, virtual] |
check overlap with another candidate
Reimplemented from reco::LeafCandidate.
Definition at line 12 of file CaloRecHitCandidate.cc.
References trackerHits::c, caloRecHit(), edm::RefToBase< T >::isNull(), and python::connectstrParser::o.
{ const CaloRecHitCandidate * o = dynamic_cast<const CaloRecHitCandidate *>( & c ); if ( o == 0 ) return false; if ( caloRecHit().isNull() ) return false; if ( o->caloRecHit().isNull() ) return false; return ( caloRecHit() != o->caloRecHit() ); }
void reco::CaloRecHitCandidate::setCaloRecHit | ( | const CaloRecHitRef & | r | ) | [inline] |
set CaloRecHit reference
Definition at line 34 of file CaloRecHitCandidate.h.
References caloRecHit_, and alignCSCRings::r.
Referenced by reco::modules::CaloRecHitCandidateProducer< HitCollection >::produce().
{ caloRecHit_ = r; }
reference to a CaloRecHit
Definition at line 42 of file CaloRecHitCandidate.h.
Referenced by caloRecHit(), and setCaloRecHit().