#include <DataFormats/RecoCandidate/interface/RecoCaloTowerCandidate.h>
Public Member Functions | |
virtual CaloTowerRef | caloTower () const |
reference to a CaloTower | |
virtual RecoCaloTowerCandidate * | clone () const |
returns a clone of the candidate | |
RecoCaloTowerCandidate (Charge q, const PolarLorentzVector &p4, const Point &vtx=Point(0, 0, 0)) | |
constructor from values | |
RecoCaloTowerCandidate (Charge q, const LorentzVector &p4, const Point &vtx=Point(0, 0, 0)) | |
constructor from values | |
RecoCaloTowerCandidate () | |
default constructor | |
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 |
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().
00019 : 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.
00021 : 00022 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.
00024 : 00025 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().
00012 { 00013 return caloTower_; 00014 }
RecoCaloTowerCandidate * RecoCaloTowerCandidate::clone | ( | void | ) | const [virtual] |
returns a clone of the candidate
Reimplemented from reco::LeafCandidate.
Definition at line 8 of file RecoCaloTowerCandidate.cc.
References RecoCaloTowerCandidate().
00008 { 00009 return new RecoCaloTowerCandidate( * this ); 00010 }
check overlap with another candidate
Implements reco::RecoCandidate.
Definition at line 16 of file RecoCaloTowerCandidate.cc.
References caloTower(), reco::RecoCandidate::caloTower(), and reco::RecoCandidate::checkOverlap().
00016 { 00017 const RecoCandidate * o = dynamic_cast<const RecoCandidate *>( & c ); 00018 return ( o != 0 && 00019 checkOverlap( caloTower(), o->caloTower() ) 00020 ); 00021 }
void reco::RecoCaloTowerCandidate::setCaloTower | ( | const CaloTowerRef & | r | ) | [inline] |
set CaloTower reference
Definition at line 31 of file RecoCaloTowerCandidate.h.
References caloTower_.
00031 { caloTower_ = r; }
reference to a CaloTower
Definition at line 39 of file RecoCaloTowerCandidate.h.
Referenced by caloTower(), and setCaloTower().