CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

reco::RecoEcalCandidate Class Reference

#include <RecoEcalCandidate.h>

Inheritance diagram for reco::RecoEcalCandidate:
reco::RecoCandidate reco::LeafCandidate reco::Candidate

List of all members.

Public Member Functions

virtual RecoEcalCandidateclone () 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

Detailed Description

Reco Candidates with a Super Cluster component

Author:
Luca Lista, INFN
Version:
Id:
RecoEcalCandidate.h,v 1.7 2007/10/22 09:38:13 llista Exp

Definition at line 16 of file RecoEcalCandidate.h.


Constructor & Destructor Documentation

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]

destructor

Definition at line 6 of file RecoEcalCandidate.cc.

{ }

Member Function Documentation

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().

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().

                                                      {
  return superCluster_;
}

Member Data Documentation

reference to a superCluster

Definition at line 41 of file RecoEcalCandidate.h.

Referenced by setSuperCluster(), and superCluster().