Main Page
Namespaces
Classes
Package Documentation
RecoTracker
TkTrackingRegions
src
OuterHitPhiPrediction.cc
Go to the documentation of this file.
1
#include "
OuterHitPhiPrediction.h
"
2
#include "
DataFormats/Math/interface/approx_asin.h
"
3
4
OuterHitPhiPrediction::Range
5
OuterHitPhiPrediction::sym
(
float
radius
)
const
6
{
7
auto
arc = radius*
theCurvature
.
max
()*0.5f +
theOriginRBound
/
radius
;
8
9
auto
Phi_r = unsafe_asin07<5>(arc);
10
return
Range
(
thePhiAtVertex
.
min
() - Phi_r -
theTolerance
,
11
thePhiAtVertex
.
max
() + Phi_r +
theTolerance
);
12
}
13
14
15
// in case somebody comes with a RELEVANT use case...
16
OuterHitPhiPrediction::Range
17
OuterHitPhiPrediction::asym
(
float
radius
)
const
18
{
19
20
auto
invr = 1.f/
radius
;
21
if
(
std::max
(
std::abs
(
theCurvature
.
min
()),
std::abs
(
theCurvature
.
max
())) > invr)
22
return
Range
(-
M_PI
,
M_PI
);
23
24
float
Phi_r = std::asin(radius*
theCurvature
.
max
()*0.5f +
theOriginRBound
*invr);
25
26
if
(
theCurvature
.
max
() == -
theCurvature
.
min
())
27
return
Range
(
thePhiAtVertex
.
min
() - Phi_r -
theTolerance
,
28
thePhiAtVertex
.
max
() + Phi_r +
theTolerance
);
29
30
float
curv0 =
theCurvature
.
mean
();
31
float
Phi_0 = std::asin(radius*curv0*0.5
f
);
32
float
Phi_m = std::asin(radius*
theCurvature
.
min
()*0.5f-
theOriginRBound
*invr);
33
return
Range
(
thePhiAtVertex
.
min
() + Phi_0 + Phi_m -
theTolerance
,
34
thePhiAtVertex
.
max
() + Phi_0 + Phi_r +
theTolerance
);
35
36
}
37
OuterHitPhiPrediction::theCurvature
Range theCurvature
Definition:
OuterHitPhiPrediction.h:38
OuterHitPhiPrediction::sym
Range sym(float radius) const
Definition:
OuterHitPhiPrediction.cc:5
PixelRecoRange::max
T max() const
Definition:
PixelRecoRange.h:31
hpstanc_transforms.max
max
Definition:
hpstanc_transforms.py:5
PixelRecoRange< float >
OuterHitPhiPrediction::theTolerance
float theTolerance
Definition:
OuterHitPhiPrediction.h:40
OuterHitPhiPrediction.h
OuterHitPhiPrediction::theOriginRBound
float theOriginRBound
Definition:
OuterHitPhiPrediction.h:39
PixelRecoRange::min
T min() const
Definition:
PixelRecoRange.h:30
OuterHitPhiPrediction::thePhiAtVertex
Range thePhiAtVertex
Definition:
OuterHitPhiPrediction.h:37
OuterHitPhiPrediction::asym
Range asym(float radius) const
Definition:
OuterHitPhiPrediction.cc:17
funct::abs
Abs< T >::type abs(const T &t)
Definition:
Abs.h:22
f
double f[11][100]
Definition:
MuScleFitUtils.cc:78
M_PI
#define M_PI
Definition:
BXVectorInputProducer.cc:51
approx_asin.h
TCMET_cfi.radius
radius
Definition:
TCMET_cfi.py:32
PixelRecoRange::mean
T mean() const
Definition:
PixelRecoRange.h:32
OuterHitPhiPrediction::Range
PixelRecoRange< float > Range
Definition:
OuterHitPhiPrediction.h:15
Generated for CMSSW Reference Manual by
1.8.11