Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
RecoTracker
TkTrackingRegions
src
OuterHitPhiPrediction.cc
Go to the documentation of this file.
1
#include <cmath>
2
#include "
OuterHitPhiPrediction.h
"
3
4
OuterHitPhiPrediction::Range
5
OuterHitPhiPrediction::operator()
(
float
radius
)
const
6
{
7
8
auto
invr = 1.f/
radius
;
9
if
(
std::max
(
std::abs
(
theCurvature
.
min
()),
std::abs
(
theCurvature
.
max
())) > invr)
10
return
Range
(-
M_PI
,
M_PI
);
11
12
float
Phi_r = std::asin(radius*
theCurvature
.
max
()*0.5f +
theOriginRBound
*invr);
13
14
if
(
theCurvature
.
max
() == -
theCurvature
.
min
())
15
return
Range
(
thePhiAtVertex
.
min
() - Phi_r -
theTolerance
.
left
(),
16
thePhiAtVertex
.
max
() + Phi_r +
theTolerance
.
right
());
17
18
float
curv0 =
theCurvature
.
mean
();
19
float
Phi_0 = std::asin(radius*curv0*0.5
f
);
20
float
Phi_m = std::asin(radius*
theCurvature
.
min
()*0.5f-
theOriginRBound
*invr);
21
return
Range
(
thePhiAtVertex
.
min
() + Phi_0 + Phi_m -
theTolerance
.
left
(),
22
thePhiAtVertex
.
max
() + Phi_0 + Phi_r +
theTolerance
.
right
());
23
24
}
OuterHitPhiPrediction::theCurvature
Range theCurvature
Definition:
OuterHitPhiPrediction.h:30
PixelRecoRange::max
T max() const
Definition:
PixelRecoRange.h:31
PixelRecoRange< float >
OuterHitPhiPrediction.h
OuterHitPhiPrediction::theOriginRBound
float theOriginRBound
Definition:
OuterHitPhiPrediction.h:31
PixelRecoRange::min
T min() const
Definition:
PixelRecoRange.h:30
OuterHitPhiPrediction::thePhiAtVertex
Range thePhiAtVertex
Definition:
OuterHitPhiPrediction.h:29
TkTrackingRegionsMargin::left
const T & left() const
Definition:
TkTrackingRegionsMargin.h:20
funct::abs
Abs< T >::type abs(const T &t)
Definition:
Abs.h:22
f
double f[11][100]
Definition:
MuScleFitUtils.cc:78
OuterHitPhiPrediction::Range
PixelRecoRange< float > Range
Definition:
OuterHitPhiPrediction.h:14
M_PI
#define M_PI
Definition:
readTestVector.cc:25
PixelRecoRange::mean
T mean() const
Definition:
PixelRecoRange.h:32
TkTrackingRegionsMargin::right
const T & right() const
Definition:
TkTrackingRegionsMargin.h:21
bookConverter.max
max
Definition:
bookConverter.py:166
CosmicsPD_Skims.radius
tuple radius
Definition:
CosmicsPD_Skims.py:135
OuterHitPhiPrediction::operator()
Range operator()(float radius) const
Definition:
OuterHitPhiPrediction.cc:5
OuterHitPhiPrediction::theTolerance
Margin theTolerance
Definition:
OuterHitPhiPrediction.h:32
Generated for CMSSW Reference Manual by
1.8.5