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::HcalIsolatedTrackCandidate::l1jet
virtual l1extra::L1JetParticleRef l1jet() const
get reference to L1 jet
Definition: HcalIsolatedTrackCandidate.cc:28
reco::HcalIsolatedTrackCandidate::etaHcal_
double etaHcal_
Definition: HcalIsolatedTrackCandidate.h:129
reco::RecoCandidate::checkOverlap
bool checkOverlap(const R &r1, const R &r2) const
check if two components overlap
Definition: RecoCandidate.h:67
HcalIsolatedTrackCandidate.h
reco::HcalIsolatedTrackCandidate::etaL1_
double etaL1_
Definition: HcalIsolatedTrackCandidate.h:123
reco::HcalIsolatedTrackCandidate::phiEcal_
double phiEcal_
Definition: HcalIsolatedTrackCandidate.h:126
reco::HcalIsolatedTrackCandidate
Definition: HcalIsolatedTrackCandidate.h:21
reco::HcalIsolatedTrackCandidate::iphiHcal_
int iphiHcal_
Definition: HcalIsolatedTrackCandidate.h:130
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
reco::HcalIsolatedTrackCandidate::l1jetp
math::XYZTLorentzVector l1jetp() const
Definition: HcalIsolatedTrackCandidate.cc:30
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:36
edm::Ref< TrackCollection >
funct::sin
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
reco::HcalIsolatedTrackCandidate::etaEcal_
double etaEcal_
Definition: HcalIsolatedTrackCandidate.h:126
funct::cos
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
reco::HcalIsolatedTrackCandidate::etaPhiHcal_
bool etaPhiHcal_
eta, phi at HCAL
Definition: HcalIsolatedTrackCandidate.h:128
reco::HcalIsolatedTrackCandidate::~HcalIsolatedTrackCandidate
~HcalIsolatedTrackCandidate() override
destructor
Definition: HcalIsolatedTrackCandidate.cc:22
reco::HcalIsolatedTrackCandidate::clone
HcalIsolatedTrackCandidate * clone() const override
returns a clone of the candidate
Definition: HcalIsolatedTrackCandidate.cc:24
reco::HcalIsolatedTrackCandidate::overlap
bool overlap(const Candidate &) const override
check overlap with another candidate
Definition: HcalIsolatedTrackCandidate.cc:36
reco::HcalIsolatedTrackCandidate::HcalIsolatedTrackCandidate
HcalIsolatedTrackCandidate()
Definition: HcalIsolatedTrackCandidate.h:24
reco::HcalIsolatedTrackCandidate::track_
reco::TrackRef track_
reference to a Track
Definition: HcalIsolatedTrackCandidate.h:115
reco::HcalIsolatedTrackCandidate::track
reco::TrackRef track() const override
refrence to a Track
Definition: HcalIsolatedTrackCandidate.cc:26
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
reco::RecoCandidate
Definition: RecoCandidate.h:20
reco::HcalIsolatedTrackCandidate::phiL1_
double phiL1_
Definition: HcalIsolatedTrackCandidate.h:123
reco::Candidate
Definition: Candidate.h:27
reco::HcalIsolatedTrackCandidate::ptL1_
double ptL1_
pt, eta, phi of L1 object
Definition: HcalIsolatedTrackCandidate.h:123
reco::HcalIsolatedTrackCandidate::enEcal_
double enEcal_
energy in ECAL around a cone around the track
Definition: HcalIsolatedTrackCandidate.h:121
reco::HcalIsolatedTrackCandidate::ietaHcal_
int ietaHcal_
Definition: HcalIsolatedTrackCandidate.h:130
math::XYZTLorentzVector
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
reco::HcalIsolatedTrackCandidate::etaPhiEcal_
bool etaPhiEcal_
eta, phi at ECAL
Definition: HcalIsolatedTrackCandidate.h:125
reco::HcalIsolatedTrackCandidate::l1Jet_
l1extra::L1JetParticleRef l1Jet_
reference to a L1 tau jet
Definition: HcalIsolatedTrackCandidate.h:117
reco::HcalIsolatedTrackCandidate::phiHcal_
double phiHcal_
Definition: HcalIsolatedTrackCandidate.h:129
reco::HcalIsolatedTrackCandidate::maxP_
double maxP_
highest P of other tracks in the cone around the candidate
Definition: HcalIsolatedTrackCandidate.h:119