CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

reco::RecoCaloTowerCandidate Class Reference

#include <RecoCaloTowerCandidate.h>

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

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 ()
 default constructor
 RecoCaloTowerCandidate (Charge q, const LorentzVector &p4, const Point &vtx=Point(0, 0, 0))
 constructor from values
 RecoCaloTowerCandidate (Charge q, const PolarLorentzVector &p4, const Point &vtx=Point(0, 0, 0))
 constructor from values
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().

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

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

                                                                                                             :
      RecoCandidate( q, p4, vtx ) { }
RecoCaloTowerCandidate::~RecoCaloTowerCandidate ( ) [virtual]

destructor

Definition at line 6 of file RecoCaloTowerCandidate.cc.

{ }

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

                                                     {
  return caloTower_;
}
RecoCaloTowerCandidate * RecoCaloTowerCandidate::clone ( void  ) const [virtual]

returns a clone of the candidate

Reimplemented from reco::RecoCandidate.

Definition at line 8 of file RecoCaloTowerCandidate.cc.

References RecoCaloTowerCandidate().

                                                             { 
  return new RecoCaloTowerCandidate( * this ); 
}
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 trackerHits::c, caloTower(), reco::RecoCandidate::caloTower(), reco::RecoCandidate::checkOverlap(), and python::connectstrParser::o.

                                                                {
  const RecoCandidate * o = dynamic_cast<const RecoCandidate *>( & c );
  return ( o != 0 &&  
           checkOverlap( caloTower(), o->caloTower() ) 
           );
}
void reco::RecoCaloTowerCandidate::setCaloTower ( const CaloTowerRef r) [inline]

set CaloTower reference

Definition at line 31 of file RecoCaloTowerCandidate.h.

References caloTower_, and alignCSCRings::r.

{ caloTower_ = r; }

Member Data Documentation

reference to a CaloTower

Definition at line 39 of file RecoCaloTowerCandidate.h.

Referenced by caloTower(), and setCaloTower().