Main Page
Namespaces
Classes
Package Documentation
src
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
9
class
ThirdHitZPrediction
{
10
public
:
11
typedef
PixelRecoRange<float>
Range
;
12
ThirdHitZPrediction
(
const
GlobalPoint
&
p1
,
float
erroRPhi1,
float
errorZ1,
13
const
GlobalPoint
&
p2
,
float
erroRPhi2,
float
errorZ2,
14
double
curvature
,
double
nSigma
= 3.) :
15
thePoint2
(p2),
16
sqr_errorXY12
(erroRPhi1*erroRPhi1+erroRPhi2*erroRPhi2),
17
sqr_errorXY2
(erroRPhi2*erroRPhi2),
18
theErrorZ1
(errorZ1),
19
theErrorZ2
(errorZ2),
20
theCurvature
(curvature),
theNSigma
(
nSigma
){
21
auto
d
= p2-
p1
;
22
dR12
=
d
.perp();
if
(
dR12
< 1.
e
-5)
dR12
= 1.e-5;
23
dS12
=
std::abs
(0.5*
dR12
*
theCurvature
) <1 ? std::asin(0.5*
dR12
*theCurvature) : 1.;
24
dZ12
=
d
.z();
25
}
26
Range
operator()
(
const
GlobalPoint
&
p3
,
float
erroRPhi3)
const
;
27
private
:
28
GlobalPoint
thePoint2
;
29
double
dR12
,
dZ12
,
dS12
;
30
double
sqr_errorXY12
;
31
double
sqr_errorXY2
;
32
double
theErrorZ1
,
theErrorZ2
;
33
double
theCurvature
;
34
double
theNSigma
;
35
};
36
#endif
37
ThirdHitZPrediction::Range
PixelRecoRange< float > Range
Definition:
ThirdHitZPrediction.h:11
ThirdHitZPrediction::dZ12
double dZ12
Definition:
ThirdHitZPrediction.h:29
PixelRecoRange< float >
ThirdHitZPrediction::dR12
double dR12
Definition:
ThirdHitZPrediction.h:29
ThirdHitZPrediction::thePoint2
GlobalPoint thePoint2
Definition:
ThirdHitZPrediction.h:28
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
ThirdHitZPrediction::sqr_errorXY12
double sqr_errorXY12
Definition:
ThirdHitZPrediction.h:30
ThirdHitZPrediction::theNSigma
double theNSigma
Definition:
ThirdHitZPrediction.h:34
ThirdHitZPrediction::theCurvature
double theCurvature
Definition:
ThirdHitZPrediction.h:33
PixelRecoUtilities::curvature
T curvature(T InversePt, const edm::EventSetup &iSetup)
Definition:
PixelRecoUtilities.h:41
ThirdHitZPrediction::dS12
double dS12
Definition:
ThirdHitZPrediction.h:29
funct::abs
Abs< T >::type abs(const T &t)
Definition:
Abs.h:22
ThirdHitZPrediction::operator()
Range operator()(const GlobalPoint &p3, float erroRPhi3) const
Definition:
ThirdHitZPrediction.cc:8
ThirdHitZPrediction::theErrorZ1
double theErrorZ1
Definition:
ThirdHitZPrediction.h:32
p2
double p2[4]
Definition:
TauolaWrapper.h:90
edmIntegrityCheck.d
d
Definition:
edmIntegrityCheck.py:66
gsfElectronCkfTrackCandidateMaker_cff.nSigma
nSigma
Definition:
gsfElectronCkfTrackCandidateMaker_cff.py:45
PixelRecoRange.h
ThirdHitZPrediction::sqr_errorXY2
double sqr_errorXY2
Definition:
ThirdHitZPrediction.h:31
Point3DBase< float, GlobalTag >
p1
double p1[4]
Definition:
TauolaWrapper.h:89
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:12
ThirdHitZPrediction::theErrorZ2
double theErrorZ2
Definition:
ThirdHitZPrediction.h:32
ThirdHitZPrediction
Definition:
ThirdHitZPrediction.h:9
p3
double p3[4]
Definition:
TauolaWrapper.h:91
GlobalPoint.h
Generated for CMSSW Reference Manual by
1.8.11