#include <DataFormats/RecoCandidate/interface/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 |
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().
00022 : 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.
00024 : 00025 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.
00027 : 00028 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().
00036 { 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().
00008 { 00009 return new CaloRecHitCandidate( * this ); 00010 }
check overlap with another candidate
Reimplemented from reco::LeafCandidate.
Definition at line 12 of file CaloRecHitCandidate.cc.
References caloRecHit(), and edm::RefToBase< T >::isNull().
00012 { 00013 const CaloRecHitCandidate * o = dynamic_cast<const CaloRecHitCandidate *>( & c ); 00014 if ( o == 0 ) return false; 00015 if ( caloRecHit().isNull() ) return false; 00016 if ( o->caloRecHit().isNull() ) return false; 00017 return ( caloRecHit() != o->caloRecHit() ); 00018 }
void reco::CaloRecHitCandidate::setCaloRecHit | ( | const CaloRecHitRef & | r | ) | [inline] |
set CaloRecHit reference
Definition at line 34 of file CaloRecHitCandidate.h.
References caloRecHit_.
Referenced by processHits(), and reco::modules::CaloRecHitCandidateProducer< HitCollection >::produce().
00034 { caloRecHit_ = r; }
reference to a CaloRecHit
Definition at line 42 of file CaloRecHitCandidate.h.
Referenced by caloRecHit(), and setCaloRecHit().