Main Page
Namespaces
Classes
Package Documentation
RecoPixelVertexing
PixelTriplets
plugins
MatchedHitRZCorrectionFromBending.cc
Go to the documentation of this file.
1
#include "
TrackingTools/TransientTrackingRecHit/interface/TransientTrackingRecHit.h
"
2
#include "
Geometry/CommonDetUnit/interface/GeomDet.h
"
3
#include "
Geometry/CommonDetUnit/interface/GeomDetEnumerators.h
"
4
#include "
DataFormats/TrackerCommon/interface/TrackerTopology.h
"
5
#include "
Geometry/Records/interface/IdealGeometryRecord.h
"
6
#include "
RecoPixelVertexing/PixelTriplets/interface/ThirdHitPredictionFromCircle.h
"
7
#include "
TrackingTools/DetLayers/interface/DetLayer.h
"
8
#include "
MatchedHitRZCorrectionFromBending.h
"
9
10
// Note: only the TIB layers seem to cause a significant effect,
11
// so only z correction is implemented
12
13
MatchedHitRZCorrectionFromBending::
14
MatchedHitRZCorrectionFromBending
(
DetId
detId,
const
TrackerTopology
*tTopo)
15
: rFixup(
nullptr
), zFixup(
nullptr
)
16
{
17
if
(detId.
subdetId
() ==
SiStripDetId::TIB
&&
18
tTopo->
tibIsDoubleSide
(detId))
19
zFixup
=
tibMatchedHitZFixup
;
20
}
21
22
MatchedHitRZCorrectionFromBending::
23
MatchedHitRZCorrectionFromBending
(
const
DetLayer
*layer,
const
TrackerTopology
*tTopo)
24
:
rFixup
(
nullptr
),
zFixup
(
nullptr
)
25
{
26
if
(layer->
subDetector
() ==
GeomDetEnumerators::TIB
) {
27
const
GeometricSearchDet
*tibLayer = layer;
28
29
if
(tTopo->
tibIsDoubleSide
(tibLayer->
basicComponents
()[0]->geographicalId()))
30
zFixup
=
tibMatchedHitZFixup
;
31
}
32
}
33
34
double
MatchedHitRZCorrectionFromBending::
35
tibMatchedHitZFixup
(
const
ThirdHitPredictionFromCircle
&pred,
36
double
curvature
,
double
r
,
37
const
TrackingRecHit
&
hit
,
38
const
TrackerTopology
*tTopo)
39
{
40
// the factors for [ TIB1=0, TIB2=1 ] [ inner string=0, outer string=1 ]
41
static
const
double
factors[2][2] = { { -2.4, 2.4 }, { 2.4, -2.4 } };
42
43
44
unsigned
int
layer = tTopo->
tibLayer
(hit.
det
()->
geographicalId
()) - 1;
45
unsigned
int
string
= !tTopo->
tibIsInternalString
(hit.
det
()->
geographicalId
());
46
return
factors[layer][
string
] * pred.
angle
(curvature, r);
47
}
TrackerTopology::tibIsDoubleSide
bool tibIsDoubleSide(const DetId &id) const
Definition:
TrackerTopology.h:263
TrackerTopology::tibLayer
unsigned int tibLayer(const DetId &id) const
Definition:
TrackerTopology.h:150
GeomDet.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
ThirdHitPredictionFromCircle::angle
float angle(float curvature, float radius) const
Definition:
ThirdHitPredictionFromCircle.cc:69
DetLayer::subDetector
virtual SubDetector subDetector() const =0
The type of detector (PixelBarrel, PixelEndcap, TIB, TOB, TID, TEC, CSC, DT, RPCBarrel, RPCEndcap)
GeometricSearchDet::basicComponents
virtual const std::vector< const GeomDet * > & basicComponents() const =0
TrackerTopology
Definition:
TrackerTopology.h:18
nullptr
#define nullptr
Definition:
GCC11Compatibility.h:37
TrackingRecHit
Definition:
TrackingRecHit.h:23
GeomDetEnumerators::TIB
Definition:
GeomDetEnumerators.h:11
TransientTrackingRecHit.h
MatchedHitRZCorrectionFromBending.h
ThirdHitPredictionFromCircle
Definition:
ThirdHitPredictionFromCircle.h:11
PixelRecoUtilities::curvature
T curvature(T InversePt, const edm::EventSetup &iSetup)
Definition:
PixelRecoUtilities.h:41
TrackingRecHit::det
const GeomDet * det() const
Definition:
TrackingRecHit.h:118
ThirdHitPredictionFromCircle.h
MatchedHitRZCorrectionFromBending::MatchedHitRZCorrectionFromBending
MatchedHitRZCorrectionFromBending()
Definition:
MatchedHitRZCorrectionFromBending.h:13
DetId::subdetId
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
Definition:
DetId.h:41
GeomDet::geographicalId
DetId geographicalId() const
The label of this GeomDet.
Definition:
GeomDet.h:79
DetLayer
Definition:
DetLayer.h:21
MatchedHitRZCorrectionFromBending::zFixup
FixupFn zFixup
Definition:
MatchedHitRZCorrectionFromBending.h:37
alignCSCRings.r
r
Definition:
alignCSCRings.py:93
DetId
Definition:
DetId.h:18
MatchedHitRZCorrectionFromBending::rFixup
FixupFn rFixup
Definition:
MatchedHitRZCorrectionFromBending.h:37
SiStripDetId::TIB
Definition:
SiStripDetId.h:34
GeomDetEnumerators.h
MatchedHitRZCorrectionFromBending::tibMatchedHitZFixup
static double tibMatchedHitZFixup(const ThirdHitPredictionFromCircle &pred, double curvature, double rOrZ, const TrackingRecHit &hit, const TrackerTopology *tTopo)
Definition:
MatchedHitRZCorrectionFromBending.cc:35
hit
Definition:
SiStripHitEffFromCalibTree.cc:87
IdealGeometryRecord.h
DetLayer.h
TrackerTopology.h
TrackerTopology::tibIsInternalString
bool tibIsInternalString(const DetId &id) const
Definition:
TrackerTopology.h:431
GeometricSearchDet
Definition:
GeometricSearchDet.h:19
Generated for CMSSW Reference Manual by
1.8.11