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 "
RecoTracker/TkTrackingRegions/interface/OuterHitPhiPrediction.h
"
3
4
OuterHitPhiPrediction::Range
5
OuterHitPhiPrediction::operator()
(
float
radius
)
const
6
{
7
8
if
(
std::max
(fabs(
theCurvature
.
min
()), fabs(
theCurvature
.
max
())) > 1./
radius
)
9
return
Range
(-
M_PI
,
M_PI
);
10
11
float
Phi_r = asin(radius*
theCurvature
.
max
()/2 +
theOriginRBound
/
radius
);
12
float
curv0 =
theCurvature
.
mean
();
13
14
if
(curv0 == 0.) {
15
return
Range
(
thePhiAtVertex
.
min
() - Phi_r -
theTolerance
.
left
(),
16
thePhiAtVertex
.
max
() + Phi_r +
theTolerance
.
right
());
17
}
18
else
{
19
float
Phi_0 = asin(radius*curv0/2);
20
float
Phi_m = asin(radius*
theCurvature
.
min
()/2-
theOriginRBound
/
radius
);
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:29
PixelRecoRange::max
T max() const
Definition:
PixelRecoRange.h:25
PixelRecoRange< float >
OuterHitPhiPrediction.h
OuterHitPhiPrediction::theOriginRBound
float theOriginRBound
Definition:
OuterHitPhiPrediction.h:30
PixelRecoRange::min
T min() const
Definition:
PixelRecoRange.h:24
OuterHitPhiPrediction::thePhiAtVertex
Range thePhiAtVertex
Definition:
OuterHitPhiPrediction.h:28
TkTrackingRegionsMargin::left
const T & left() const
Definition:
TkTrackingRegionsMargin.h:20
max
const T & max(const T &a, const T &b)
Definition:
MaterialBudgetTrackerHistos.cc:4
OuterHitPhiPrediction::Range
PixelRecoRange< float > Range
Definition:
OuterHitPhiPrediction.h:13
M_PI
#define M_PI
Definition:
BFit3D.cc:3
PixelRecoRange::mean
T mean() const
Definition:
PixelRecoRange.h:26
TkTrackingRegionsMargin::right
const T & right() const
Definition:
TkTrackingRegionsMargin.h:21
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:31
Generated for CMSSW Reference Manual by
1.8.5