CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

reco::IsolatedPixelTrackCandidate Class Reference

#include <IsolatedPixelTrackCandidate.h>

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

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 LorentzVector &v)
 constructor from LorentzVector
 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)
void SetMaxPtPxl (double mptpxl)
void SetNHitIn (int a)
void SetNHitOut (int a)
void SetSumPtPxl (double sumptpxl)
void setTrack (const reco::TrackRef &tr)
double sumPtPxl () const
 Pt sum of other pixel tracks in the cone around the candidate.
std::pair< int, int > towerIndex () const
 get index of tower which track is hitting
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 21 of file IsolatedPixelTrackCandidate.h.


Constructor & Destructor Documentation

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

default constructor

Definition at line 26 of file IsolatedPixelTrackCandidate.h.

Referenced by clone().

: RecoCandidate() { }
reco::IsolatedPixelTrackCandidate::IsolatedPixelTrackCandidate ( const LorentzVector v) [inline]

constructor from LorentzVector

Definition at line 28 of file IsolatedPixelTrackCandidate.h.

References enIn_, enOut_, maxPtPxl_, nhitIn_, nhitOut_, and sumPtPxl_.

                                                         : RecoCandidate(0,v)
        {
          enIn_=-1;
          enOut_=-1;
          nhitIn_=-1;
          nhitOut_=-1;
          maxPtPxl_=-1;
          sumPtPxl_=-1;
        }
reco::IsolatedPixelTrackCandidate::IsolatedPixelTrackCandidate ( const reco::TrackRef tr,
const l1extra::L1JetParticleRef tauRef,
double  max,
double  sum 
) [inline]

constructor from a track

Definition at line 38 of file IsolatedPixelTrackCandidate.h.

References enIn_, enOut_, nhitIn_, and nhitOut_.

                                                                                                                          : 
        RecoCandidate( 0, LorentzVector((tr.get()->px()),(tr.get())->py(),(tr.get())->pz(),(tr.get())->p()) ),
        track_(tr), l1tauJet_(tauRef), maxPtPxl_(max), sumPtPxl_(sum) 
        {
          enIn_=-1;
          enOut_=-1;
          nhitIn_=-1;
          nhitOut_=-1;
        }
reco::IsolatedPixelTrackCandidate::IsolatedPixelTrackCandidate ( const l1extra::L1JetParticleRef tauRef,
double  enIn,
double  enOut,
int  nhitIn,
int  nhitOut 
) [inline]

constructor from tau jet

Definition at line 49 of file IsolatedPixelTrackCandidate.h.

References maxPtPxl_, and sumPtPxl_.

                                                                                                                               :
          RecoCandidate( 0, LorentzVector(tauRef->px(),tauRef->py(),tauRef->pz(),tauRef->p()) ), 
          l1tauJet_(tauRef), enIn_(enIn), enOut_(enOut), nhitIn_(nhitIn), nhitOut_(nhitOut) 
          {
            maxPtPxl_=-1;
            sumPtPxl_=-1;
          }
IsolatedPixelTrackCandidate::~IsolatedPixelTrackCandidate ( ) [virtual]

destructor

Definition at line 5 of file IsolatedPixelTrackCandidate.cc.

{ }

Member Function Documentation

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

returns a clone of the candidate

Reimplemented from reco::RecoCandidate.

Definition at line 7 of file IsolatedPixelTrackCandidate.cc.

References IsolatedPixelTrackCandidate().

                                                                       { 
  return new IsolatedPixelTrackCandidate( * this ); 
}
double reco::IsolatedPixelTrackCandidate::energyIn ( ) const [inline]

ECAL energy in the inner cone around tau jet.

Definition at line 83 of file IsolatedPixelTrackCandidate.h.

References enIn_.

{return enIn_; }
double reco::IsolatedPixelTrackCandidate::energyOut ( ) const [inline]

ECAL energy in the outer cone around tau jet.

Definition at line 87 of file IsolatedPixelTrackCandidate.h.

References enOut_.

{return enOut_;}
l1extra::L1JetParticleRef IsolatedPixelTrackCandidate::l1tau ( ) const [virtual]

get reference to L1 tau jet

Definition at line 15 of file IsolatedPixelTrackCandidate.cc.

References l1tauJet_.

                                                                 {
  return l1tauJet_;
}
double reco::IsolatedPixelTrackCandidate::maxPtPxl ( ) const [inline]

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

Definition at line 71 of file IsolatedPixelTrackCandidate.h.

References maxPtPxl_.

{return maxPtPxl_;}
int reco::IsolatedPixelTrackCandidate::nHitIn ( ) const [inline]

number of ECAL hits in the inner cone around tau jet

Definition at line 91 of file IsolatedPixelTrackCandidate.h.

References nhitIn_.

{return nhitIn_;}
int reco::IsolatedPixelTrackCandidate::nHitOut ( ) const [inline]

number of ECAL hits in the outer cone around tau jet

Definition at line 95 of file IsolatedPixelTrackCandidate.h.

References nhitOut_.

{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 trackerHits::c, reco::RecoCandidate::checkOverlap(), connectstrParser::o, track(), and reco::RecoCandidate::track().

                                                                     {
  const RecoCandidate * o = dynamic_cast<const RecoCandidate *>( & c );
  return ( o != 0 &&  checkOverlap( track(), o->track() ) );
}
void reco::IsolatedPixelTrackCandidate::SetEnergyIn ( double  a) [inline]

Definition at line 84 of file IsolatedPixelTrackCandidate.h.

References a, and enIn_.

Referenced by AlCaIsoTracksProducer::produce().

{enIn_=a;}
void reco::IsolatedPixelTrackCandidate::SetEnergyOut ( double  a) [inline]

Definition at line 88 of file IsolatedPixelTrackCandidate.h.

References a, and enOut_.

Referenced by AlCaIsoTracksProducer::produce().

{enOut_=a;}
void reco::IsolatedPixelTrackCandidate::setL1TauJet ( const l1extra::L1JetParticleRef tauRef) [inline]

Definition at line 80 of file IsolatedPixelTrackCandidate.h.

References l1tauJet_.

{ l1tauJet_ = tauRef; }
void reco::IsolatedPixelTrackCandidate::SetMaxPtPxl ( double  mptpxl) [inline]

Definition at line 72 of file IsolatedPixelTrackCandidate.h.

References maxPtPxl_.

Referenced by AlCaIsoTracksProducer::produce().

{maxPtPxl_=mptpxl;}
void reco::IsolatedPixelTrackCandidate::SetNHitIn ( int  a) [inline]

Definition at line 92 of file IsolatedPixelTrackCandidate.h.

References a, and nhitIn_.

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

Definition at line 96 of file IsolatedPixelTrackCandidate.h.

References a, and nhitOut_.

void reco::IsolatedPixelTrackCandidate::SetSumPtPxl ( double  sumptpxl) [inline]

Definition at line 76 of file IsolatedPixelTrackCandidate.h.

References sumPtPxl_.

Referenced by AlCaIsoTracksProducer::produce().

{sumPtPxl_=sumptpxl;}
void reco::IsolatedPixelTrackCandidate::setTrack ( const reco::TrackRef tr) [inline]

Definition at line 68 of file IsolatedPixelTrackCandidate.h.

References track_.

{ track_ = tr; }
double reco::IsolatedPixelTrackCandidate::sumPtPxl ( ) const [inline]

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

Definition at line 75 of file IsolatedPixelTrackCandidate.h.

References sumPtPxl_.

{return sumPtPxl_;}
std::pair< int, int > IsolatedPixelTrackCandidate::towerIndex ( ) const

get index of tower which track is hitting

Definition at line 24 of file IsolatedPixelTrackCandidate.cc.

References delta, i, and track_.

{
  int ieta=0, iphi=0;
  for (int i=1; i<21; i++)
    {
      if (fabs(track_->eta())<(i*0.087)&&fabs(track_->eta())>(i-1)*0.087) ieta=int(fabs(track_->eta())/track_->eta())*i;
    }
  if (fabs(track_->eta())>1.740&&fabs(track_->eta())<1.830) ieta=int(fabs(track_->eta())/track_->eta())*21;
  if (fabs(track_->eta())>1.830&&fabs(track_->eta())<1.930) ieta=int(fabs(track_->eta())/track_->eta())*22;
  if (fabs(track_->eta())>1.930&&fabs(track_->eta())<2.043) ieta=int(fabs(track_->eta())/track_->eta())*23;

  double delta=track_->phi()+0.174532925;
  if (delta<0) delta=delta+2*acos(-1);
  if (fabs(track_->eta())<1.740) 
    {
      for (int i=0; i<72; i++)
        {
          if (delta<(i+1)*0.087266462&&delta>i*0.087266462) iphi=i;
        }
    }
  else 
    {
      for (int i=0; i<36; i++)
        {
          if (delta<2*(i+1)*0.087266462&&delta>2*i*0.087266462) iphi=2*i;
        }
    }

  return std::pair<int,int>(ieta,iphi);

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

                                                  {
  return track_;
}

Member Data Documentation

energy in inner cone around L1 tau jet

Definition at line 113 of file IsolatedPixelTrackCandidate.h.

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

energy in outer cone around L1 tau jet

Definition at line 115 of file IsolatedPixelTrackCandidate.h.

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

reference to a L1 tau jet

Definition at line 107 of file IsolatedPixelTrackCandidate.h.

Referenced by l1tau(), and setL1TauJet().

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

Definition at line 109 of file IsolatedPixelTrackCandidate.h.

Referenced by IsolatedPixelTrackCandidate(), maxPtPxl(), and SetMaxPtPxl().

number of hits in inner cone

Definition at line 117 of file IsolatedPixelTrackCandidate.h.

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

number of hits in inner cone

Definition at line 119 of file IsolatedPixelTrackCandidate.h.

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

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

Definition at line 111 of file IsolatedPixelTrackCandidate.h.

Referenced by IsolatedPixelTrackCandidate(), SetSumPtPxl(), and sumPtPxl().

reference to a Track

Definition at line 105 of file IsolatedPixelTrackCandidate.h.

Referenced by setTrack(), towerIndex(), and track().