src
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
OuterHitPhiPrediction::sym
(
float
radius
)
const
{
5
auto
arc =
radius
*
theCurvature
.
max
() * 0.5f +
theOriginRBound
/
radius
;
6
7
auto
Phi_r = unsafe_asin07<5>(arc);
8
return
Range
(
thePhiAtVertex
.
min
() - Phi_r -
theTolerance
,
thePhiAtVertex
.
max
() + Phi_r +
theTolerance
);
9
}
10
11
// in case somebody comes with a RELEVANT use case...
12
OuterHitPhiPrediction::Range
OuterHitPhiPrediction::asym
(
float
radius
)
const
{
13
auto
invr = 1.f /
radius
;
14
if
(
std::max
(
std::abs
(
theCurvature
.
min
()),
std::abs
(
theCurvature
.
max
())) > invr)
15
return
Range
(-
M_PI
,
M_PI
);
16
17
float
Phi_r = std::asin(
radius
*
theCurvature
.
max
() * 0.5f +
theOriginRBound
* invr);
18
19
if
(
theCurvature
.
max
() == -
theCurvature
.
min
())
20
return
Range
(
thePhiAtVertex
.
min
() - Phi_r -
theTolerance
,
thePhiAtVertex
.
max
() + Phi_r +
theTolerance
);
21
22
float
curv0 =
theCurvature
.
mean
();
23
float
Phi_0 = std::asin(
radius
* curv0 * 0.5
f
);
24
float
Phi_m = std::asin(
radius
*
theCurvature
.
min
() * 0.5f -
theOriginRBound
* invr);
25
return
Range
(
thePhiAtVertex
.
min
() + Phi_0 + Phi_m -
theTolerance
,
26
thePhiAtVertex
.
max
() + Phi_0 + Phi_r +
theTolerance
);
27
}
OuterHitPhiPrediction::asym
Range asym(float radius) const
Definition:
OuterHitPhiPrediction.cc:12
PixelRecoRange::max
T max() const
Definition:
PixelRecoRange.h:26
OuterHitPhiPrediction::theCurvature
Range theCurvature
Definition:
OuterHitPhiPrediction.h:31
WZElectronSkims53X_cff.max
max
Definition:
WZElectronSkims53X_cff.py:197
PixelRecoRange< float >
OuterHitPhiPrediction::theTolerance
float theTolerance
Definition:
OuterHitPhiPrediction.h:33
OuterHitPhiPrediction.h
OuterHitPhiPrediction::theOriginRBound
float theOriginRBound
Definition:
OuterHitPhiPrediction.h:32
OuterHitPhiPrediction::thePhiAtVertex
Range thePhiAtVertex
Definition:
OuterHitPhiPrediction.h:30
CosmicsPD_Skims.radius
radius
Definition:
CosmicsPD_Skims.py:135
funct::abs
Abs< T >::type abs(const T &t)
Definition:
Abs.h:22
f
double f[11][100]
Definition:
MuScleFitUtils.cc:78
PixelRecoRange::min
T min() const
Definition:
PixelRecoRange.h:25
M_PI
#define M_PI
Definition:
BXVectorInputProducer.cc:50
approx_asin.h
OuterHitPhiPrediction::sym
Range sym(float radius) const
Definition:
OuterHitPhiPrediction.cc:4
OuterHitPhiPrediction::Range
PixelRecoRange< float > Range
Definition:
OuterHitPhiPrediction.h:14
PixelRecoRange::mean
T mean() const
Definition:
PixelRecoRange.h:27
Generated for CMSSW Reference Manual by
1.8.14