#include <RecoEcalCandidate.h>
Public Member Functions | |
virtual RecoEcalCandidate * | clone () const |
returns a clone of the candidate | |
RecoEcalCandidate () | |
default constructor | |
RecoEcalCandidate (Charge q, const LorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0) | |
constructor from values | |
RecoEcalCandidate (Charge q, const PolarLorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0) | |
constructor from values | |
void | setSuperCluster (const reco::SuperClusterRef &r) |
set reference to superCluster | |
virtual reco::SuperClusterRef | superCluster () const |
reference to a superCluster | |
virtual | ~RecoEcalCandidate () |
destructor | |
Private Member Functions | |
virtual bool | overlap (const Candidate &) const |
check overlap with another candidate | |
Private Attributes | |
reco::SuperClusterRef | superCluster_ |
reference to a superCluster |
Reco Candidates with a Super Cluster component
Definition at line 16 of file RecoEcalCandidate.h.
reco::RecoEcalCandidate::RecoEcalCandidate | ( | ) | [inline] |
default constructor
Definition at line 19 of file RecoEcalCandidate.h.
Referenced by clone().
: RecoCandidate() { }
reco::RecoEcalCandidate::RecoEcalCandidate | ( | Charge | q, |
const LorentzVector & | p4, | ||
const Point & | vtx = Point( 0, 0, 0 ) , |
||
int | pdgId = 0 , |
||
int | status = 0 |
||
) | [inline] |
constructor from values
Definition at line 21 of file RecoEcalCandidate.h.
: RecoCandidate( q, p4, vtx, pdgId, status ) { }
reco::RecoEcalCandidate::RecoEcalCandidate | ( | Charge | q, |
const PolarLorentzVector & | p4, | ||
const Point & | vtx = Point( 0, 0, 0 ) , |
||
int | pdgId = 0 , |
||
int | status = 0 |
||
) | [inline] |
constructor from values
Definition at line 25 of file RecoEcalCandidate.h.
: RecoCandidate( q, p4, vtx, pdgId, status ) { }
RecoEcalCandidate::~RecoEcalCandidate | ( | ) | [virtual] |
RecoEcalCandidate * RecoEcalCandidate::clone | ( | void | ) | const [virtual] |
returns a clone of the candidate
Reimplemented from reco::RecoCandidate.
Definition at line 8 of file RecoEcalCandidate.cc.
References RecoEcalCandidate().
{ return new RecoEcalCandidate( * this ); }
bool RecoEcalCandidate::overlap | ( | const Candidate & | c | ) | const [private, virtual] |
check overlap with another candidate
Implements reco::RecoCandidate.
Definition at line 16 of file RecoEcalCandidate.cc.
References trackerHits::c, reco::RecoCandidate::checkOverlap(), connectstrParser::o, reco::RecoCandidate::superCluster(), and superCluster().
{ const RecoCandidate * o = dynamic_cast<const RecoCandidate *>( & c ); return ( o != 0 && checkOverlap( superCluster(), o->superCluster() ) ); }
void reco::RecoEcalCandidate::setSuperCluster | ( | const reco::SuperClusterRef & | r | ) | [inline] |
set reference to superCluster
Definition at line 33 of file RecoEcalCandidate.h.
References csvReporter::r, and superCluster_.
Referenced by converter::SuperClusterToCandidate::convert().
{ superCluster_ = r; }
SuperClusterRef RecoEcalCandidate::superCluster | ( | ) | const [virtual] |
reference to a superCluster
Reimplemented from reco::RecoCandidate.
Definition at line 12 of file RecoEcalCandidate.cc.
References superCluster_.
Referenced by HLTEgamma::analyze(), and overlap().
{ return superCluster_; }
reference to a superCluster
Definition at line 41 of file RecoEcalCandidate.h.
Referenced by setSuperCluster(), and superCluster().