CMS 3D CMS Logo

reco::CaloRecHitCandidate Class Reference

Reco Candidates with a CaloRecHit component. More...

#include <DataFormats/RecoCandidate/interface/CaloRecHitCandidate.h>

Inheritance diagram for reco::CaloRecHitCandidate:

reco::LeafCandidate reco::Candidate reco::Particle

List of all members.

Public Types

typedef edm::RefToBase
< CaloRecHit
CaloRecHitRef

Public Member Functions

CaloRecHitRef caloRecHit () const
 reference to a CaloRecHit
 CaloRecHitCandidate (const PolarLorentzVector &p4, Charge q=0, const Point &vtx=Point(0, 0, 0))
 constructor from values
 CaloRecHitCandidate (const LorentzVector &p4, Charge q=0, const Point &vtx=Point(0, 0, 0))
 constructor from values
 CaloRecHitCandidate ()
 default constructor
virtual CaloRecHitCandidateclone () const
 returns a clone of the candidate
void setCaloRecHit (const CaloRecHitRef &r)
 set CaloRecHit reference
virtual ~CaloRecHitCandidate ()
 destructor

Private Member Functions

virtual bool overlap (const Candidate &) const
 check overlap with another candidate

Private Attributes

CaloRecHitRef caloRecHit_
 reference to a CaloRecHit


Detailed Description

Reco Candidates with a CaloRecHit component.

Author:
Luca Lista, INFN
Version:
Id
CaloRecHitCandidate.h,v 1.3 2007/10/15 13:03:33 llista Exp

Definition at line 18 of file CaloRecHitCandidate.h.


Member Typedef Documentation

typedef edm::RefToBase<CaloRecHit> reco::CaloRecHitCandidate::CaloRecHitRef

Definition at line 20 of file CaloRecHitCandidate.h.


Constructor & Destructor Documentation

reco::CaloRecHitCandidate::CaloRecHitCandidate (  )  [inline]

default constructor

Definition at line 22 of file CaloRecHitCandidate.h.

Referenced by clone().

00022 : LeafCandidate() { }

reco::CaloRecHitCandidate::CaloRecHitCandidate ( const LorentzVector p4,
Charge  q = 0,
const Point vtx = Point( 0, 0, 0 ) 
) [inline]

constructor from values

Definition at line 24 of file CaloRecHitCandidate.h.

00024                                                                                                         :
00025       LeafCandidate( q, p4, vtx ) { }

reco::CaloRecHitCandidate::CaloRecHitCandidate ( const PolarLorentzVector p4,
Charge  q = 0,
const Point vtx = Point( 0, 0, 0 ) 
) [inline]

constructor from values

Definition at line 27 of file CaloRecHitCandidate.h.

00027                                                                                                              :
00028       LeafCandidate( q, p4, vtx ) { }

CaloRecHitCandidate::~CaloRecHitCandidate (  )  [virtual]

destructor

Definition at line 6 of file CaloRecHitCandidate.cc.

00006 { }


Member Function Documentation

CaloRecHitRef reco::CaloRecHitCandidate::caloRecHit (  )  const [inline]

reference to a CaloRecHit

Definition at line 36 of file CaloRecHitCandidate.h.

References caloRecHit_.

Referenced by overlap().

00036 { return caloRecHit_; }

CaloRecHitCandidate * CaloRecHitCandidate::clone ( void   )  const [virtual]

returns a clone of the candidate

Reimplemented from reco::LeafCandidate.

Definition at line 8 of file CaloRecHitCandidate.cc.

References CaloRecHitCandidate().

00008                                                        { 
00009   return new CaloRecHitCandidate( * this ); 
00010 }

bool CaloRecHitCandidate::overlap ( const Candidate c  )  const [private, virtual]

check overlap with another candidate

Reimplemented from reco::LeafCandidate.

Definition at line 12 of file CaloRecHitCandidate.cc.

References caloRecHit(), and edm::RefToBase< T >::isNull().

00012                                                              {
00013   const CaloRecHitCandidate * o = dynamic_cast<const CaloRecHitCandidate *>( & c );
00014   if ( o == 0 ) return false;
00015   if ( caloRecHit().isNull() ) return false;
00016   if ( o->caloRecHit().isNull() ) return false;
00017   return ( caloRecHit() != o->caloRecHit() );
00018 }

void reco::CaloRecHitCandidate::setCaloRecHit ( const CaloRecHitRef r  )  [inline]

set CaloRecHit reference

Definition at line 34 of file CaloRecHitCandidate.h.

References caloRecHit_.

Referenced by processHits(), and reco::modules::CaloRecHitCandidateProducer< HitCollection >::produce().

00034 { caloRecHit_ = r; }


Member Data Documentation

CaloRecHitRef reco::CaloRecHitCandidate::caloRecHit_ [private]

reference to a CaloRecHit

Definition at line 42 of file CaloRecHitCandidate.h.

Referenced by caloRecHit(), and setCaloRecHit().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:50:59 2009 for CMSSW by  doxygen 1.5.4