#include <CandidateWithRef.h>
Public Types | |
typedef Ref | reference |
Public Member Functions | |
CandidateWithRef () | |
default constructor | |
CandidateWithRef (const LorentzVector &p4, Charge q=0, const Point &vtx=Point(0, 0, 0)) | |
constructor from values | |
virtual CandidateWithRef * | clone () const |
returns a clone of the candidate | |
reference | ref () const |
reference | |
void | setRef (const Ref &r) |
set reference | |
virtual | ~CandidateWithRef () |
destructor | |
Private Member Functions | |
virtual bool | overlap (const Candidate &) const |
check overlap with another candidate | |
Private Attributes | |
reference | ref_ |
reference to a CaloRecHit |
Reco Candidates with a generic reference as component
Definition at line 18 of file CandidateWithRef.h.
typedef Ref reco::CandidateWithRef< Ref >::reference |
Definition at line 20 of file CandidateWithRef.h.
reco::CandidateWithRef< Ref >::CandidateWithRef | ( | ) | [inline] |
reco::CandidateWithRef< Ref >::CandidateWithRef | ( | const LorentzVector & | p4, |
Charge | q = 0 , |
||
const Point & | vtx = Point( 0, 0, 0 ) |
||
) | [inline] |
constructor from values
Definition at line 24 of file CandidateWithRef.h.
: LeafCandidate( q, p4, vtx ) { }
reco::CandidateWithRef< Ref >::~CandidateWithRef | ( | ) | [virtual] |
CandidateWithRef< Ref > * reco::CandidateWithRef< Ref >::clone | ( | void | ) | const [virtual] |
returns a clone of the candidate
Reimplemented from reco::LeafCandidate.
Definition at line 50 of file CandidateWithRef.h.
{ return new CandidateWithRef<Ref>( * this ); }
bool reco::CandidateWithRef< Ref >::overlap | ( | const Candidate & | c | ) | const [private, virtual] |
check overlap with another candidate
Reimplemented from reco::LeafCandidate.
Definition at line 55 of file CandidateWithRef.h.
References trackerHits::c, connectstrParser::o, and reco::CandidateWithRef< Ref >::ref().
{ const CandidateWithRef * o = dynamic_cast<const CandidateWithRef *>( & c ); if ( o == 0 ) return false; if ( ref().isNull() ) return false; if ( o->ref().isNull() ) return false; return ( ref() != o->ref() ); }
reference reco::CandidateWithRef< Ref >::ref | ( | ) | const [inline] |
reference
Definition at line 33 of file CandidateWithRef.h.
References reco::CandidateWithRef< Ref >::ref_.
Referenced by reco::CandidateWithRef< Ref >::overlap().
{ return ref_; }
void reco::CandidateWithRef< Ref >::setRef | ( | const Ref & | r | ) | [inline] |
set reference
Definition at line 31 of file CandidateWithRef.h.
References csvReporter::r, and reco::CandidateWithRef< Ref >::ref_.
reference reco::CandidateWithRef< Ref >::ref_ [private] |
reference to a CaloRecHit
Definition at line 39 of file CandidateWithRef.h.
Referenced by reco::CandidateWithRef< Ref >::ref(), and reco::CandidateWithRef< Ref >::setRef().