DataFormats
HcalIsolatedTrack
src
IsolatedPixelTrackCandidate.cc
Go to the documentation of this file.
1
#include "
DataFormats/HcalIsolatedTrack/interface/IsolatedPixelTrackCandidate.h
"
2
3
using namespace
reco
;
4
5
IsolatedPixelTrackCandidate::IsolatedPixelTrackCandidate
(
const
IsolatedPixelTrackCandidate
& right)
6
:
RecoCandidate
(right), track_(right.track_), l1tauJet_(right.l1tauJet_) {
7
maxPtPxl_
= right.
maxPtPxl_
;
8
sumPtPxl_
= right.
sumPtPxl_
;
9
enIn_
= right.
enIn_
;
10
enOut_
= right.
enOut_
;
11
nhitIn_
= right.
nhitIn_
;
12
nhitOut_
= right.
nhitOut_
;
13
etaPhiEcal_
= right.
etaPhiEcal_
;
14
etaEcal_
= right.
etaEcal_
;
15
phiEcal_
= right.
phiEcal_
;
16
}
17
18
IsolatedPixelTrackCandidate::~IsolatedPixelTrackCandidate
() {}
19
20
IsolatedPixelTrackCandidate
*
IsolatedPixelTrackCandidate::clone
()
const
{
21
return
new
IsolatedPixelTrackCandidate
(*
this
);
22
}
23
24
TrackRef
IsolatedPixelTrackCandidate::track
()
const
{
return
track_
; }
25
26
l1extra::L1JetParticleRef
IsolatedPixelTrackCandidate::l1tau
()
const
{
return
l1tauJet_
; }
27
28
l1t::TauRef
IsolatedPixelTrackCandidate::l1ttau
()
const
{
return
l1ttauJet_
; }
29
30
bool
IsolatedPixelTrackCandidate::overlap
(
const
Candidate
&
c
)
const
{
31
const
RecoCandidate
*
o
= dynamic_cast<const RecoCandidate*>(&
c
);
32
return
(
o
!=
nullptr
&&
checkOverlap
(
track
(),
o
->track()));
33
}
34
35
std::pair<int, int>
IsolatedPixelTrackCandidate::towerIndex
()
const
{
36
int
ieta
(0),
iphi
(0),
nphi
(72), kphi(1);
37
double
etas
[24] = {0.000, 0.087, 0.174, 0.261, 0.348, 0.435, 0.522, 0.609, 0.696, 0.783, 0.870, 0.957,
38
1.044, 1.131, 1.218, 1.305, 1.392, 1.479, 1.566, 1.653, 1.740, 1.830, 1.930, 2.043};
39
for
(
int
i
= 1;
i
< 24;
i
++) {
40
if
(fabs(
track_
->eta()) <=
etas
[
i
]) {
41
ieta
= (
track_
->eta() > 0) ?
i
: -
i
;
42
if
(
i
> 20) {
43
kphi = 2;
44
nphi
= 36;
45
}
46
break
;
47
}
48
}
49
50
const
double
dphi =
M_PI
/ 36.;
//0.087266462;
51
double
phi
=
track_
->phi();
52
if
(
phi
< 0)
53
phi
+= (2 *
M_PI
);
54
double
delta
=
phi
+ (kphi * dphi);
55
for
(
int
i
= 0;
i
<
nphi
;
i
++) {
56
if
(
delta
<= (kphi * (
i
+ 1) * dphi)) {
57
iphi
= kphi *
i
+ 1;
58
break
;
59
}
60
}
61
62
return
std::pair<int, int>(
ieta
,
iphi
);
63
}
mps_fire.i
i
Definition:
mps_fire.py:428
reco::IsolatedPixelTrackCandidate::overlap
bool overlap(const Candidate &) const override
check overlap with another candidate
Definition:
IsolatedPixelTrackCandidate.cc:30
reco::RecoCandidate::checkOverlap
bool checkOverlap(const R &r1, const R &r2) const
check if two components overlap
Definition:
RecoCandidate.h:67
reco::IsolatedPixelTrackCandidate::l1tau
virtual l1extra::L1JetParticleRef l1tau() const
get reference to L1 tau jet
Definition:
IsolatedPixelTrackCandidate.cc:26
reco::IsolatedPixelTrackCandidate::l1ttauJet_
l1t::TauRef l1ttauJet_
reference to a S2 L1 tau jet
Definition:
IsolatedPixelTrackCandidate.h:179
reco::IsolatedPixelTrackCandidate
Definition:
IsolatedPixelTrackCandidate.h:23
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:45
IsolatedPixelTrackCandidate.h
EcalTangentSkim_cfg.o
o
Definition:
EcalTangentSkim_cfg.py:36
edm::Ref< TrackCollection >
LEDCalibrationChannels.iphi
iphi
Definition:
LEDCalibrationChannels.py:64
nphi
const int nphi
Definition:
CMTRawAnalyzer.h:424
reco::IsolatedPixelTrackCandidate::clone
IsolatedPixelTrackCandidate * clone() const override
returns a clone of the candidate
Definition:
IsolatedPixelTrackCandidate.cc:20
EnergyCorrector.etas
etas
Definition:
EnergyCorrector.py:45
reco::IsolatedPixelTrackCandidate::phiEcal_
double phiEcal_
Definition:
IsolatedPixelTrackCandidate.h:194
reco::IsolatedPixelTrackCandidate::sumPtPxl_
double sumPtPxl_
Pt sum of other pixel tracks in the cone around the candidate.
Definition:
IsolatedPixelTrackCandidate.h:183
reco::IsolatedPixelTrackCandidate::l1ttau
virtual l1t::TauRef l1ttau() const
get reference to L1 tau jet from lt1
Definition:
IsolatedPixelTrackCandidate.cc:28
reco::IsolatedPixelTrackCandidate::maxPtPxl_
double maxPtPxl_
highest Pt of other pixel tracks in the cone around the candidate
Definition:
IsolatedPixelTrackCandidate.h:181
LEDCalibrationChannels.ieta
ieta
Definition:
LEDCalibrationChannels.py:63
dumpMFGeometry_cfg.delta
delta
Definition:
dumpMFGeometry_cfg.py:25
reco::IsolatedPixelTrackCandidate::nhitIn_
int nhitIn_
number of hits in inner cone
Definition:
IsolatedPixelTrackCandidate.h:189
M_PI
#define M_PI
Definition:
BXVectorInputProducer.cc:49
reco::IsolatedPixelTrackCandidate::etaEcal_
double etaEcal_
Definition:
IsolatedPixelTrackCandidate.h:194
HltBtagPostValidation_cff.c
c
Definition:
HltBtagPostValidation_cff.py:31
reco::RecoCandidate
Definition:
RecoCandidate.h:20
reco::IsolatedPixelTrackCandidate::IsolatedPixelTrackCandidate
IsolatedPixelTrackCandidate()
Definition:
IsolatedPixelTrackCandidate.h:26
reco::Candidate
Definition:
Candidate.h:27
reco::IsolatedPixelTrackCandidate::nhitOut_
int nhitOut_
number of hits in inner cone
Definition:
IsolatedPixelTrackCandidate.h:191
reco::IsolatedPixelTrackCandidate::l1tauJet_
l1extra::L1JetParticleRef l1tauJet_
reference to a L1 tau jet
Definition:
IsolatedPixelTrackCandidate.h:177
reco::LeafCandidate::phi
double phi() const final
momentum azimuthal angle
Definition:
LeafCandidate.h:148
reco::IsolatedPixelTrackCandidate::~IsolatedPixelTrackCandidate
~IsolatedPixelTrackCandidate() override
destructor
Definition:
IsolatedPixelTrackCandidate.cc:18
reco::IsolatedPixelTrackCandidate::track
reco::TrackRef track() const override
refrence to a Track
Definition:
IsolatedPixelTrackCandidate.cc:24
reco::IsolatedPixelTrackCandidate::towerIndex
std::pair< int, int > towerIndex() const
get index of tower which track is hitting
Definition:
IsolatedPixelTrackCandidate.cc:35
reco::IsolatedPixelTrackCandidate::etaPhiEcal_
bool etaPhiEcal_
eta, phi at ECAL
Definition:
IsolatedPixelTrackCandidate.h:193
reco::IsolatedPixelTrackCandidate::enOut_
double enOut_
energy in outer cone around L1 tau jet
Definition:
IsolatedPixelTrackCandidate.h:187
reco::IsolatedPixelTrackCandidate::enIn_
double enIn_
energy in inner cone around L1 tau jet
Definition:
IsolatedPixelTrackCandidate.h:185
reco::IsolatedPixelTrackCandidate::track_
reco::TrackRef track_
reference to a Track
Definition:
IsolatedPixelTrackCandidate.h:175
Generated for CMSSW Reference Manual by
1.8.16