RecoPixelVertexing
PixelTriplets
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
ThirdHitZPrediction::Range
PixelRecoRange< float > Range
Definition:
ThirdHitZPrediction.h:10
ThirdHitZPrediction::theCurvature
double theCurvature
Definition:
ThirdHitZPrediction.h:41
ThirdHitZPrediction::sqr_errorXY2
double sqr_errorXY2
Definition:
ThirdHitZPrediction.h:39
ThirdHitZPrediction::sqr_errorXY12
double sqr_errorXY12
Definition:
ThirdHitZPrediction.h:38
ThirdHitZPrediction::dR12
double dR12
Definition:
ThirdHitZPrediction.h:37
PixelRecoUtilities::curvature
T curvature(T InversePt, const edm::EventSetup &iSetup)
Definition:
PixelRecoUtilities.h:42
ThirdHitZPrediction::theNSigma
double theNSigma
Definition:
ThirdHitZPrediction.h:42
p2
double p2[4]
Definition:
TauolaWrapper.h:90
Point3DBase< float, GlobalTag >
ThirdHitZPrediction::operator()
Range operator()(const GlobalPoint &p3, float erroRPhi3) const
Definition:
ThirdHitZPrediction.cc:10
PixelRecoRange< float >
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
p1
double p1[4]
Definition:
TauolaWrapper.h:89
ThirdHitZPrediction
Definition:
ThirdHitZPrediction.h:8
ThirdHitZPrediction::theErrorZ2
double theErrorZ2
Definition:
ThirdHitZPrediction.h:40
ThirdHitZPrediction::dS12
double dS12
Definition:
ThirdHitZPrediction.h:37
p3
double p3[4]
Definition:
TauolaWrapper.h:91
ThirdHitZPrediction::theErrorZ1
double theErrorZ1
Definition:
ThirdHitZPrediction.h:40
ztail.d
d
Definition:
ztail.py:151
funct::abs
Abs< T >::type abs(const T &t)
Definition:
Abs.h:22
GlobalPoint.h
HLTSiStripMonitoring_cff.nSigma
nSigma
Definition:
HLTSiStripMonitoring_cff.py:151
ThirdHitZPrediction::thePoint2
GlobalPoint thePoint2
Definition:
ThirdHitZPrediction.h:36
PixelRecoRange.h
ThirdHitZPrediction::dZ12
double dZ12
Definition:
ThirdHitZPrediction.h:37
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
Generated for CMSSW Reference Manual by
1.8.16