#include <IsolatedPixelTrackCandidate.h>
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 |
Definition at line 21 of file IsolatedPixelTrackCandidate.h.
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] |
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.
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] |
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(), python::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.
Referenced by AlCaIsoTracksProducer::produce().
void reco::IsolatedPixelTrackCandidate::SetEnergyOut | ( | double | a | ) | [inline] |
Definition at line 88 of file IsolatedPixelTrackCandidate.h.
Referenced by AlCaIsoTracksProducer::produce().
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] |
void reco::IsolatedPixelTrackCandidate::SetNHitOut | ( | int | a | ) | [inline] |
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] |
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_; }
double reco::IsolatedPixelTrackCandidate::enIn_ [private] |
energy in inner cone around L1 tau jet
Definition at line 113 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 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().
double reco::IsolatedPixelTrackCandidate::maxPtPxl_ [private] |
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().
int reco::IsolatedPixelTrackCandidate::nhitIn_ [private] |
number of hits in inner cone
Definition at line 117 of file IsolatedPixelTrackCandidate.h.
Referenced by IsolatedPixelTrackCandidate(), nHitIn(), and SetNHitIn().
int reco::IsolatedPixelTrackCandidate::nhitOut_ [private] |
number of hits in inner cone
Definition at line 119 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 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().