CMS 3D CMS Logo

Public Types | Public Member Functions | Private Member Functions | Private Attributes

reco::CaloRecHitCandidate Class Reference

#include <CaloRecHitCandidate.h>

Inheritance diagram for reco::CaloRecHitCandidate:
reco::LeafCandidate reco::Candidate

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

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

: 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.

                                                                                                        :
      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.

                                                                                                             :
      LeafCandidate( q, p4, vtx ) { }
CaloRecHitCandidate::~CaloRecHitCandidate ( ) [virtual]

destructor

Definition at line 6 of file CaloRecHitCandidate.cc.

{ }

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

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

                                                       { 
  return new CaloRecHitCandidate( * this ); 
}
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 trackerHits::c, caloRecHit(), edm::RefToBase< T >::isNull(), and python::connectstrParser::o.

                                                             {
  const CaloRecHitCandidate * o = dynamic_cast<const CaloRecHitCandidate *>( & c );
  if ( o == 0 ) return false;
  if ( caloRecHit().isNull() ) return false;
  if ( o->caloRecHit().isNull() ) return false;
  return ( caloRecHit() != o->caloRecHit() );
}
void reco::CaloRecHitCandidate::setCaloRecHit ( const CaloRecHitRef r) [inline]

Member Data Documentation

reference to a CaloRecHit

Definition at line 42 of file CaloRecHitCandidate.h.

Referenced by caloRecHit(), and setCaloRecHit().