CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

reco::RecoChargedCandidate Class Reference

#include <RecoChargedCandidate.h>

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

List of all members.

Public Member Functions

virtual RecoChargedCandidateclone () const
 returns a clone of the candidate
 RecoChargedCandidate ()
 default constructor
 RecoChargedCandidate (Charge q, const LorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0)
 constructor from values
 RecoChargedCandidate (Charge q, const PolarLorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0)
 constructor from values
void setTrack (const reco::TrackRef &r)
 set reference to track
virtual reco::TrackRef track () const
 reference to a track
virtual ~RecoChargedCandidate ()
 destructor

Private Member Functions

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

Private Attributes

reco::TrackRef track_
 reference to a track

Detailed Description

Reco Candidates with a Track component

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

Definition at line 16 of file RecoChargedCandidate.h.


Constructor & Destructor Documentation

reco::RecoChargedCandidate::RecoChargedCandidate ( ) [inline]

default constructor

Definition at line 19 of file RecoChargedCandidate.h.

Referenced by clone().

: RecoCandidate() { }
reco::RecoChargedCandidate::RecoChargedCandidate ( 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 RecoChargedCandidate.h.

                                                          :
      RecoCandidate( q, p4, vtx, pdgId, status ) { }
reco::RecoChargedCandidate::RecoChargedCandidate ( 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 RecoChargedCandidate.h.

                                                          :
      RecoCandidate( q, p4, vtx, pdgId, status ) { }
RecoChargedCandidate::~RecoChargedCandidate ( ) [virtual]

destructor

Definition at line 6 of file RecoChargedCandidate.cc.

{ }

Member Function Documentation

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

returns a clone of the candidate

Reimplemented from reco::RecoCandidate.

Definition at line 8 of file RecoChargedCandidate.cc.

References RecoChargedCandidate().

                                                         { 
  return new RecoChargedCandidate( * this ); 
}
bool RecoChargedCandidate::overlap ( const Candidate c) const [private, virtual]
void reco::RecoChargedCandidate::setTrack ( const reco::TrackRef r) [inline]
TrackRef RecoChargedCandidate::track ( void  ) const [virtual]

reference to a track

Reimplemented from reco::RecoCandidate.

Definition at line 12 of file RecoChargedCandidate.cc.

References track_.

Referenced by PF_PU_AssoMapAlgos::ComesFromV0Decay(), HLTMuonTrackMassFilter::hltFilter(), and overlap().

                                           {
  return track_;
}

Member Data Documentation

reference to a track

Definition at line 41 of file RecoChargedCandidate.h.

Referenced by setTrack(), and track().