test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalIsolatedTrackCandidate.cc
Go to the documentation of this file.
2 
3 using namespace reco;
4 
5 HcalIsolatedTrackCandidate::HcalIsolatedTrackCandidate(const HcalIsolatedTrackCandidate& right) : RecoCandidate(right), track_(right.track_), l1Jet_(right.l1Jet_) {
6  maxP_ = right.maxP_;
7  enEcal_ = right.enEcal_;
8  ptL1_ = right.ptL1_;
9  etaL1_ = right.etaL1_;
10  phiL1_ = right.phiL1_;
11  etaPhiEcal_= right.etaPhiEcal_;
12  etaEcal_ = right.etaEcal_;
13  phiEcal_ = right.phiEcal_;
14  etaPhiHcal_= right.etaPhiHcal_;
15  etaHcal_ = right.etaHcal_;
16  phiHcal_ = right.phiHcal_;
17  ietaHcal_ = right.ietaHcal_;
18  iphiHcal_ = right.iphiHcal_;
19 }
20 
22 
24  return new HcalIsolatedTrackCandidate( * this );
25 }
26 
28  return track_;
29 }
30 
32  return l1Jet_;
33 }
34 
36  double pL1_ = ptL1_*cosh(etaL1_);
38  pL1_*tanh(etaL1_), pL1_);
39  return pL1;
40 }
41 
43  const RecoCandidate * o = dynamic_cast<const RecoCandidate *>( & c );
44  return ( o != 0 && checkOverlap( track(), o->track() ) );
45 }
bool checkOverlap(const R &r1, const R &r2) const
check if two components overlap
Definition: RecoCandidate.h:69
math::XYZTLorentzVector l1jetp() const
reco::TrackRef track_
reference to a Track
virtual HcalIsolatedTrackCandidate * clone() const
returns a clone of the candidate
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
virtual reco::TrackRef track() const
reference to a 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 bool overlap(const Candidate &) const
check overlap with another candidate
virtual l1extra::L1JetParticleRef l1jet() const
get reference to L1 jet
virtual reco::TrackRef track() const
refrence to a Track