CMS 3D CMS Logo

HcalIsolatedTrackCandidate.cc
Go to the documentation of this file.
2 
3 using namespace reco;
4 
6  : RecoCandidate(right), track_(right.track_), l1Jet_(right.l1Jet_) {
7  maxP_ = right.maxP_;
8  enEcal_ = right.enEcal_;
9  ptL1_ = right.ptL1_;
10  etaL1_ = right.etaL1_;
11  phiL1_ = right.phiL1_;
12  etaPhiEcal_ = right.etaPhiEcal_;
13  etaEcal_ = right.etaEcal_;
14  phiEcal_ = right.phiEcal_;
15  etaPhiHcal_ = right.etaPhiHcal_;
16  etaHcal_ = right.etaHcal_;
17  phiHcal_ = right.phiHcal_;
18  ietaHcal_ = right.ietaHcal_;
19  iphiHcal_ = right.iphiHcal_;
20 }
21 
23 
25 
27 
29 
31  double pL1_ = ptL1_ * cosh(etaL1_);
32  math::XYZTLorentzVector pL1(ptL1_ * cos(phiL1_), ptL1_ * sin(phiL1_), pL1_ * tanh(etaL1_), pL1_);
33  return pL1;
34 }
35 
37  const RecoCandidate* o = dynamic_cast<const RecoCandidate*>(&c);
38  return (o != nullptr && checkOverlap(track(), o->track()));
39 }
reco::TrackRef track() const override
refrence to a Track
bool overlap(const Candidate &) const override
check overlap with another candidate
reco::TrackRef track_
reference to a Track
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
double ptL1_
pt, eta, phi of L1 object
double enEcal_
energy in ECAL around a cone around the track
l1extra::L1JetParticleRef l1Jet_
reference to a L1 tau jet
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
double maxP_
highest P of other tracks in the cone around the candidate
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
virtual l1extra::L1JetParticleRef l1jet() const
get reference to L1 jet
bool checkOverlap(const R &r1, const R &r2) const
check if two components overlap
Definition: RecoCandidate.h:67
math::XYZTLorentzVector l1jetp() const
fixed size matrix
HcalIsolatedTrackCandidate * clone() const override
returns a clone of the candidate