#include <RecoCaloTowerCandidate.h>
Public Member Functions | |
virtual CaloTowerRef | caloTower () const |
reference to a CaloTower | |
virtual RecoCaloTowerCandidate * | clone () const |
returns a clone of the candidate | |
RecoCaloTowerCandidate () | |
default constructor | |
RecoCaloTowerCandidate (Charge q, const LorentzVector &p4, const Point &vtx=Point(0, 0, 0)) | |
constructor from values | |
RecoCaloTowerCandidate (Charge q, const PolarLorentzVector &p4, const Point &vtx=Point(0, 0, 0)) | |
constructor from values | |
void | setCaloTower (const CaloTowerRef &r) |
set CaloTower reference | |
virtual | ~RecoCaloTowerCandidate () |
destructor | |
Private Member Functions | |
virtual bool | overlap (const Candidate &) const |
check overlap with another candidate | |
Private Attributes | |
CaloTowerRef | caloTower_ |
reference to a CaloTower |
Reco Candidates with a CaloTower component
Definition at line 16 of file RecoCaloTowerCandidate.h.
reco::RecoCaloTowerCandidate::RecoCaloTowerCandidate | ( | ) | [inline] |
default constructor
Definition at line 19 of file RecoCaloTowerCandidate.h.
Referenced by clone().
: RecoCandidate() { }
reco::RecoCaloTowerCandidate::RecoCaloTowerCandidate | ( | Charge | q, |
const LorentzVector & | p4, | ||
const Point & | vtx = Point( 0, 0, 0 ) |
||
) | [inline] |
constructor from values
Definition at line 21 of file RecoCaloTowerCandidate.h.
: RecoCandidate( q, p4, vtx ) { }
reco::RecoCaloTowerCandidate::RecoCaloTowerCandidate | ( | Charge | q, |
const PolarLorentzVector & | p4, | ||
const Point & | vtx = Point( 0, 0, 0 ) |
||
) | [inline] |
constructor from values
Definition at line 24 of file RecoCaloTowerCandidate.h.
: RecoCandidate( q, p4, vtx ) { }
RecoCaloTowerCandidate::~RecoCaloTowerCandidate | ( | ) | [virtual] |
CaloTowerRef RecoCaloTowerCandidate::caloTower | ( | ) | const [virtual] |
reference to a CaloTower
Reimplemented from reco::RecoCandidate.
Definition at line 12 of file RecoCaloTowerCandidate.cc.
References caloTower_.
Referenced by overlap().
{ return caloTower_; }
RecoCaloTowerCandidate * RecoCaloTowerCandidate::clone | ( | void | ) | const [virtual] |
returns a clone of the candidate
Reimplemented from reco::RecoCandidate.
Definition at line 8 of file RecoCaloTowerCandidate.cc.
References RecoCaloTowerCandidate().
{ return new RecoCaloTowerCandidate( * this ); }
bool RecoCaloTowerCandidate::overlap | ( | const Candidate & | c | ) | const [private, virtual] |
check overlap with another candidate
Implements reco::RecoCandidate.
Definition at line 16 of file RecoCaloTowerCandidate.cc.
References trackerHits::c, caloTower(), reco::RecoCandidate::caloTower(), reco::RecoCandidate::checkOverlap(), and python::connectstrParser::o.
{ const RecoCandidate * o = dynamic_cast<const RecoCandidate *>( & c ); return ( o != 0 && checkOverlap( caloTower(), o->caloTower() ) ); }
void reco::RecoCaloTowerCandidate::setCaloTower | ( | const CaloTowerRef & | r | ) | [inline] |
set CaloTower reference
Definition at line 31 of file RecoCaloTowerCandidate.h.
References caloTower_, and alignCSCRings::r.
{ caloTower_ = r; }
reference to a CaloTower
Definition at line 39 of file RecoCaloTowerCandidate.h.
Referenced by caloTower(), and setCaloTower().