Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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::dZ12
double dZ12
Definition:
ThirdHitZPrediction.h:37
fireworks::p2
const TString p2
Definition:
fwPaths.cc:13
PixelRecoRange< float >
ThirdHitZPrediction::dR12
double dR12
Definition:
ThirdHitZPrediction.h:37
ThirdHitZPrediction::thePoint2
GlobalPoint thePoint2
Definition:
ThirdHitZPrediction.h:36
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
ztail.d
tuple d
Definition:
ztail.py:151
ThirdHitZPrediction::theCurvature
double theCurvature
Definition:
ThirdHitZPrediction.h:41
ThirdHitZPrediction::dS12
double dS12
Definition:
ThirdHitZPrediction.h:37
fireworks::p1
const TString p1
Definition:
fwPaths.cc:12
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:10
ThirdHitZPrediction::theErrorZ1
double theErrorZ1
Definition:
ThirdHitZPrediction.h:40
HLT_FULL_cff.nSigma
tuple nSigma
Definition:
HLT_FULL_cff.py:7097
PixelRecoRange.h
ThirdHitZPrediction::sqr_errorXY2
double sqr_errorXY2
Definition:
ThirdHitZPrediction.h:39
alignCSCRings.e
list e
Definition:
alignCSCRings.py:91
Point3DBase< float, GlobalTag >
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.5