CMS 3D CMS Logo

reco::RecoCaloTowerCandidate Class Reference

Reco Candidates with a CaloTower component. More...

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

Inheritance diagram for reco::RecoCaloTowerCandidate:

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

List of all members.

Public Member Functions

virtual CaloTowerRef caloTower () const
 reference to a CaloTower
virtual RecoCaloTowerCandidateclone () const
 returns a clone of the candidate
 RecoCaloTowerCandidate (Charge q, const PolarLorentzVector &p4, const Point &vtx=Point(0, 0, 0))
 constructor from values
 RecoCaloTowerCandidate (Charge q, const LorentzVector &p4, const Point &vtx=Point(0, 0, 0))
 constructor from values
 RecoCaloTowerCandidate ()
 default constructor
void setCaloTower (const CaloTowerRef &r)
 set CaloTower reference
virtual ~RecoCaloTowerCandidate ()
 destructor

Private Member Functions

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

Private Attributes

CaloTowerRef caloTower_
 reference to a CaloTower


Detailed Description

Reco Candidates with a CaloTower component.

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

Definition at line 16 of file RecoCaloTowerCandidate.h.


Constructor & Destructor Documentation

reco::RecoCaloTowerCandidate::RecoCaloTowerCandidate (  )  [inline]

default constructor

Definition at line 19 of file RecoCaloTowerCandidate.h.

Referenced by clone().

00019 : RecoCandidate() { }

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

constructor from values

Definition at line 21 of file RecoCaloTowerCandidate.h.

00021                                                                                                         :
00022       RecoCandidate( q, p4, vtx ) { }

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

constructor from values

Definition at line 24 of file RecoCaloTowerCandidate.h.

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

RecoCaloTowerCandidate::~RecoCaloTowerCandidate (  )  [virtual]

destructor

Definition at line 6 of file RecoCaloTowerCandidate.cc.

00006 { }


Member Function Documentation

CaloTowerRef RecoCaloTowerCandidate::caloTower (  )  const [virtual]

reference to a CaloTower

Reimplemented from reco::RecoCandidate.

Definition at line 12 of file RecoCaloTowerCandidate.cc.

References caloTower_.

Referenced by overlap().

00012                                                      {
00013   return caloTower_;
00014 }

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

returns a clone of the candidate

Reimplemented from reco::LeafCandidate.

Definition at line 8 of file RecoCaloTowerCandidate.cc.

References RecoCaloTowerCandidate().

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

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

check overlap with another candidate

Implements reco::RecoCandidate.

Definition at line 16 of file RecoCaloTowerCandidate.cc.

References caloTower(), reco::RecoCandidate::caloTower(), and reco::RecoCandidate::checkOverlap().

00016                                                                 {
00017   const RecoCandidate * o = dynamic_cast<const RecoCandidate *>( & c );
00018   return ( o != 0 &&  
00019            checkOverlap( caloTower(), o->caloTower() ) 
00020            );
00021 }

void reco::RecoCaloTowerCandidate::setCaloTower ( const CaloTowerRef r  )  [inline]

set CaloTower reference

Definition at line 31 of file RecoCaloTowerCandidate.h.

References caloTower_.

00031 { caloTower_ = r; }


Member Data Documentation

CaloTowerRef reco::RecoCaloTowerCandidate::caloTower_ [private]

reference to a CaloTower

Definition at line 39 of file RecoCaloTowerCandidate.h.

Referenced by caloTower(), and setCaloTower().


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