RecoTracker
PixelSeeding
plugins
ThirdHitZPrediction.h
Go to the documentation of this file.
1
#ifndef ThirdHitZPrediction_H
2
#define ThirdHitZPrediction_H
3
4
#include "
DataFormats/GeometryVector/interface/GlobalPoint.h
"
5
#include "
RecoTracker/TkMSParametrization/interface/PixelRecoRange.h
"
6
#include <cmath>
7
8
class
ThirdHitZPrediction
{
9
public
:
10
typedef
PixelRecoRange<float>
Range
;
11
ThirdHitZPrediction
(
const
GlobalPoint
&
p1
,
12
float
erroRPhi1,
13
float
errorZ1,
14
const
GlobalPoint
&
p2
,
15
float
erroRPhi2,
16
float
errorZ2,
17
double
curvature
,
18
double
nSigma
= 3.)
19
:
thePoint2
(
p2
),
20
sqr_errorXY12
(erroRPhi1 * erroRPhi1 + erroRPhi2 * erroRPhi2),
21
sqr_errorXY2
(erroRPhi2 * erroRPhi2),
22
theErrorZ1
(errorZ1),
23
theErrorZ2
(errorZ2),
24
theCurvature
(
curvature
),
25
theNSigma
(
nSigma
) {
26
auto
d
=
p2
-
p1
;
27
dR12
=
d
.perp();
28
if
(
dR12
< 1.
e
-5)
29
dR12
= 1.e-5;
30
dS12
=
std::abs
(0.5 *
dR12
*
theCurvature
) < 1 ? std::asin(0.5 *
dR12
*
theCurvature
) : 1.;
31
dZ12
=
d
.z();
32
}
33
Range
operator()
(
const
GlobalPoint
&
p3
,
float
erroRPhi3)
const
;
34
35
private
:
36
GlobalPoint
thePoint2
;
37
double
dR12
,
dZ12
,
dS12
;
38
double
sqr_errorXY12
;
39
double
sqr_errorXY2
;
40
double
theErrorZ1
,
theErrorZ2
;
41
double
theCurvature
;
42
double
theNSigma
;
43
};
44
#endif
HLTSiStripMonitoring_cff.nSigma
nSigma
Definition:
HLTSiStripMonitoring_cff.py:151
ThirdHitZPrediction::Range
PixelRecoRange< float > Range
Definition:
ThirdHitZPrediction.h:10
ThirdHitZPrediction::dZ12
double dZ12
Definition:
ThirdHitZPrediction.h:37
SiStripOfflineCRack_cfg.p2
p2
Definition:
SiStripOfflineCRack_cfg.py:140
PixelRecoRange< float >
ThirdHitZPrediction::dR12
double dR12
Definition:
ThirdHitZPrediction.h:37
ThirdHitZPrediction::thePoint2
GlobalPoint thePoint2
Definition:
ThirdHitZPrediction.h:36
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
ThirdHitZPrediction::sqr_errorXY12
double sqr_errorXY12
Definition:
ThirdHitZPrediction.h:38
ThirdHitZPrediction::theNSigma
double theNSigma
Definition:
ThirdHitZPrediction.h:42
PixelRecoUtilities::curvature
T curvature(T InversePt, const MagneticField &field)
Definition:
PixelRecoUtilities.h:23
LaserDQM_cfg.p1
p1
Definition:
LaserDQM_cfg.py:42
ThirdHitZPrediction::theCurvature
double theCurvature
Definition:
ThirdHitZPrediction.h:41
ThirdHitZPrediction::dS12
double dS12
Definition:
ThirdHitZPrediction.h:37
funct::abs
Abs< T >::type abs(const T &t)
Definition:
Abs.h:22
ThirdHitZPrediction::theErrorZ1
double theErrorZ1
Definition:
ThirdHitZPrediction.h:40
ztail.d
d
Definition:
ztail.py:151
chargedHadronTrackResolutionFilter_cfi.p3
p3
Definition:
chargedHadronTrackResolutionFilter_cfi.py:12
PixelRecoRange.h
ThirdHitZPrediction::sqr_errorXY2
double sqr_errorXY2
Definition:
ThirdHitZPrediction.h:39
Point3DBase< float, GlobalTag >
ThirdHitZPrediction::operator()
Range operator()(const GlobalPoint &p3, float erroRPhi3) const
Definition:
ThirdHitZPrediction.cc:10
ThirdHitZPrediction::ThirdHitZPrediction
ThirdHitZPrediction(const GlobalPoint &p1, float erroRPhi1, float errorZ1, const GlobalPoint &p2, float erroRPhi2, float errorZ2, double curvature, double nSigma=3.)
Definition:
ThirdHitZPrediction.h:11
ThirdHitZPrediction::theErrorZ2
double theErrorZ2
Definition:
ThirdHitZPrediction.h:40
ThirdHitZPrediction
Definition:
ThirdHitZPrediction.h:8
GlobalPoint.h
Generated for CMSSW Reference Manual by
1.8.14