CMS 3D CMS Logo

reco::IsolatedPixelTrackCandidate Class Reference

#include <DataFormats/HcalIsolatedTrack/interface/IsolatedPixelTrackCandidate.h>

Inheritance diagram for reco::IsolatedPixelTrackCandidate:

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

List of all members.

Public Member Functions

virtual
IsolatedPixelTrackCandidate
clone () const
 returns a clone of the candidate
double energyIn () const
 ECAL energy in the inner cone around tau jet.
double energyOut () const
 ECAL energy in the outer cone around tau jet.
 IsolatedPixelTrackCandidate (const l1extra::L1JetParticleRef &tauRef, double enIn, double enOut, int nhitIn, int nhitOut)
 constructor from tau jet
 IsolatedPixelTrackCandidate (const reco::TrackRef &tr, const l1extra::L1JetParticleRef &tauRef, double max, double sum)
 constructor from a track
 IsolatedPixelTrackCandidate ()
 default constructor
virtual l1extra::L1JetParticleRef l1tau () const
 get reference to L1 tau jet
double maxPtPxl () const
 highest Pt of other pixel tracks in the cone around the candidate
int nHitIn () const
 number of ECAL hits in the inner cone around tau jet
int nHitOut () const
 number of ECAL hits in the outer cone around tau jet
void SetEnergyIn (double a)
void SetEnergyOut (double a)
void setL1TauJet (const l1extra::L1JetParticleRef &tauRef)
 set reference to l1 tau jet
void SetNHitIn (int a)
void SetNHitOut (int a)
void setTrack (const reco::TrackRef &tr)
 set reference to a Track
double sumPtPxl () const
 Pt sum of other pixel tracks in the cone around the candidate.
virtual reco::TrackRef track () const
 refrence to a Track
virtual ~IsolatedPixelTrackCandidate ()
 destructor

Private Member Functions

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

Private Attributes

double enIn_
 energy in inner cone around L1 tau jet
double enOut_
 energy in outer cone around L1 tau jet
l1extra::L1JetParticleRef l1tauJet_
 reference to a L1 tau jet
double maxPtPxl_
 highest Pt of other pixel tracks in the cone around the candidate
int nhitIn_
 number of hits in inner cone
int nhitOut_
 number of hits in inner cone
double sumPtPxl_
 Pt sum of other pixel tracks in the cone around the candidate.
reco::TrackRef track_
 reference to a Track


Detailed Description

Definition at line 17 of file IsolatedPixelTrackCandidate.h.


Constructor & Destructor Documentation

reco::IsolatedPixelTrackCandidate::IsolatedPixelTrackCandidate (  )  [inline]

default constructor

Definition at line 22 of file IsolatedPixelTrackCandidate.h.

Referenced by clone().

00022 : RecoCandidate() { }

reco::IsolatedPixelTrackCandidate::IsolatedPixelTrackCandidate ( const reco::TrackRef tr,
const l1extra::L1JetParticleRef tauRef,
double  max,
double  sum 
) [inline]

constructor from a track

Definition at line 24 of file IsolatedPixelTrackCandidate.h.

References enIn_, enOut_, nhitIn_, and nhitOut_.

00024                                                                                                                       : 
00025     RecoCandidate( 0, LorentzVector(tr->px(),tr->py(),tr->pz(),tr->p()) ),
00026       track_(tr), l1tauJet_(tauRef), maxPtPxl_(max), sumPtPxl_(sum) 
00027     {
00028       enIn_=-1;
00029       enOut_=-1;
00030       nhitIn_=-1;
00031       nhitOut_=-1;
00032     }

reco::IsolatedPixelTrackCandidate::IsolatedPixelTrackCandidate ( const l1extra::L1JetParticleRef tauRef,
double  enIn,
double  enOut,
int  nhitIn,
int  nhitOut 
) [inline]

constructor from tau jet

Definition at line 35 of file IsolatedPixelTrackCandidate.h.

References maxPtPxl_, and sumPtPxl_.

00035                                                                                                                          :
00036     RecoCandidate( 0, LorentzVector(tauRef->px(),tauRef->py(),tauRef->pz(),tauRef->p()) ), 
00037       l1tauJet_(tauRef), enIn_(enIn), enOut_(enOut), nhitIn_(nhitIn), nhitOut_(nhitOut) 
00038     {
00039       maxPtPxl_=-1;
00040       sumPtPxl_=-1;
00041     }
    

IsolatedPixelTrackCandidate::~IsolatedPixelTrackCandidate (  )  [virtual]

destructor

Definition at line 5 of file IsolatedPixelTrackCandidate.cc.

00005 { }


Member Function Documentation

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

returns a clone of the candidate

Reimplemented from reco::LeafCandidate.

Definition at line 7 of file IsolatedPixelTrackCandidate.cc.

References IsolatedPixelTrackCandidate().

00007                                                                        { 
00008   return new IsolatedPixelTrackCandidate( * this ); 
00009 }

double reco::IsolatedPixelTrackCandidate::energyIn (  )  const [inline]

ECAL energy in the inner cone around tau jet.

Definition at line 61 of file IsolatedPixelTrackCandidate.h.

References enIn_.

00061 {return enIn_; }

double reco::IsolatedPixelTrackCandidate::energyOut (  )  const [inline]

ECAL energy in the outer cone around tau jet.

Definition at line 65 of file IsolatedPixelTrackCandidate.h.

References enOut_.

00065 {return enOut_;}

l1extra::L1JetParticleRef IsolatedPixelTrackCandidate::l1tau (  )  const [virtual]

get reference to L1 tau jet

Definition at line 15 of file IsolatedPixelTrackCandidate.cc.

References l1tauJet_.

00015                                                                  {
00016   return l1tauJet_;
00017 }

double reco::IsolatedPixelTrackCandidate::maxPtPxl (  )  const [inline]

highest Pt of other pixel tracks in the cone around the candidate

Definition at line 50 of file IsolatedPixelTrackCandidate.h.

References maxPtPxl_.

00050 {return maxPtPxl_;}

int reco::IsolatedPixelTrackCandidate::nHitIn (  )  const [inline]

number of ECAL hits in the inner cone around tau jet

Definition at line 69 of file IsolatedPixelTrackCandidate.h.

References nhitIn_.

00069 {return nhitIn_;}

int reco::IsolatedPixelTrackCandidate::nHitOut (  )  const [inline]

number of ECAL hits in the outer cone around tau jet

Definition at line 73 of file IsolatedPixelTrackCandidate.h.

References nhitOut_.

00073 {return nhitOut_;}

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

check overlap with another candidate

Implements reco::RecoCandidate.

Definition at line 19 of file IsolatedPixelTrackCandidate.cc.

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

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

void reco::IsolatedPixelTrackCandidate::SetEnergyIn ( double  a  )  [inline]

Definition at line 62 of file IsolatedPixelTrackCandidate.h.

References enIn_.

Referenced by AlCaIsoTracksProducer::produce().

00062 {enIn_=a;}

void reco::IsolatedPixelTrackCandidate::SetEnergyOut ( double  a  )  [inline]

Definition at line 66 of file IsolatedPixelTrackCandidate.h.

References enOut_.

Referenced by AlCaIsoTracksProducer::produce().

00066 {enOut_=a;}

void reco::IsolatedPixelTrackCandidate::setL1TauJet ( const l1extra::L1JetParticleRef tauRef  )  [inline]

set reference to l1 tau jet

Definition at line 77 of file IsolatedPixelTrackCandidate.h.

References l1tauJet_.

00077 { l1tauJet_ = tauRef; }

void reco::IsolatedPixelTrackCandidate::SetNHitIn ( int  a  )  [inline]

Definition at line 70 of file IsolatedPixelTrackCandidate.h.

References nhitIn_.

00070 {nhitIn_=a;}

void reco::IsolatedPixelTrackCandidate::SetNHitOut ( int  a  )  [inline]

Definition at line 74 of file IsolatedPixelTrackCandidate.h.

References nhitOut_.

00074 {nhitOut_=a;}

void reco::IsolatedPixelTrackCandidate::setTrack ( const reco::TrackRef tr  )  [inline]

set reference to a Track

Definition at line 55 of file IsolatedPixelTrackCandidate.h.

References track_.

00055 { track_ = tr; }

double reco::IsolatedPixelTrackCandidate::sumPtPxl (  )  const [inline]

Pt sum of other pixel tracks in the cone around the candidate.

Definition at line 52 of file IsolatedPixelTrackCandidate.h.

References sumPtPxl_.

00052 {return sumPtPxl_;}

TrackRef IsolatedPixelTrackCandidate::track ( void   )  const [virtual]

refrence to a Track

Reimplemented from reco::RecoCandidate.

Definition at line 11 of file IsolatedPixelTrackCandidate.cc.

References track_.

Referenced by overlap().

00011                                                   {
00012   return track_;
00013 }


Member Data Documentation

double reco::IsolatedPixelTrackCandidate::enIn_ [private]

energy in inner cone around L1 tau jet

Definition at line 91 of file IsolatedPixelTrackCandidate.h.

Referenced by energyIn(), IsolatedPixelTrackCandidate(), and SetEnergyIn().

double reco::IsolatedPixelTrackCandidate::enOut_ [private]

energy in outer cone around L1 tau jet

Definition at line 93 of file IsolatedPixelTrackCandidate.h.

Referenced by energyOut(), IsolatedPixelTrackCandidate(), and SetEnergyOut().

l1extra::L1JetParticleRef reco::IsolatedPixelTrackCandidate::l1tauJet_ [private]

reference to a L1 tau jet

Definition at line 85 of file IsolatedPixelTrackCandidate.h.

Referenced by l1tau(), and setL1TauJet().

double reco::IsolatedPixelTrackCandidate::maxPtPxl_ [private]

highest Pt of other pixel tracks in the cone around the candidate

Definition at line 87 of file IsolatedPixelTrackCandidate.h.

Referenced by IsolatedPixelTrackCandidate(), and maxPtPxl().

int reco::IsolatedPixelTrackCandidate::nhitIn_ [private]

number of hits in inner cone

Definition at line 95 of file IsolatedPixelTrackCandidate.h.

Referenced by IsolatedPixelTrackCandidate(), nHitIn(), and SetNHitIn().

int reco::IsolatedPixelTrackCandidate::nhitOut_ [private]

number of hits in inner cone

Definition at line 97 of file IsolatedPixelTrackCandidate.h.

Referenced by IsolatedPixelTrackCandidate(), nHitOut(), and SetNHitOut().

double reco::IsolatedPixelTrackCandidate::sumPtPxl_ [private]

Pt sum of other pixel tracks in the cone around the candidate.

Definition at line 89 of file IsolatedPixelTrackCandidate.h.

Referenced by IsolatedPixelTrackCandidate(), and sumPtPxl().

reco::TrackRef reco::IsolatedPixelTrackCandidate::track_ [private]

reference to a Track

Definition at line 83 of file IsolatedPixelTrackCandidate.h.

Referenced by setTrack(), and track().


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