#include <DataFormats/RecoCandidate/interface/RecoEcalCandidate.h>
Public Member Functions | |
virtual RecoEcalCandidate * | clone () const |
returns a clone of the candidate | |
RecoEcalCandidate (Charge q, const PolarLorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0) | |
constructor from values | |
RecoEcalCandidate (Charge q, const LorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0) | |
constructor from values | |
RecoEcalCandidate () | |
default constructor | |
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 |
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().
00019 : 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.
00022 : 00023 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.
00026 : 00027 RecoCandidate( q, p4, vtx, pdgId, status ) { }
RecoEcalCandidate::~RecoEcalCandidate | ( | ) | [virtual] |
RecoEcalCandidate * RecoEcalCandidate::clone | ( | void | ) | const [virtual] |
returns a clone of the candidate
Reimplemented from reco::LeafCandidate.
Definition at line 8 of file RecoEcalCandidate.cc.
References RecoEcalCandidate().
00008 { 00009 return new RecoEcalCandidate( * this ); 00010 }
check overlap with another candidate
Implements reco::RecoCandidate.
Definition at line 16 of file RecoEcalCandidate.cc.
References reco::RecoCandidate::checkOverlap(), reco::RecoCandidate::superCluster(), and superCluster().
00016 { 00017 const RecoCandidate * o = dynamic_cast<const RecoCandidate *>( & c ); 00018 return ( o != 0 && 00019 checkOverlap( superCluster(), o->superCluster() ) 00020 ); 00021 }
void reco::RecoEcalCandidate::setSuperCluster | ( | const reco::SuperClusterRef & | r | ) | [inline] |
set reference to superCluster
Definition at line 33 of file RecoEcalCandidate.h.
References superCluster_.
Referenced by converter::SuperClusterToCandidate::convert().
00033 { 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 overlap().
00012 { 00013 return superCluster_; 00014 }
reference to a superCluster
Definition at line 41 of file RecoEcalCandidate.h.
Referenced by setSuperCluster(), and superCluster().