Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
DataFormats
ProtonReco
src
ForwardProton.cc
Go to the documentation of this file.
1
/****************************************************************************
2
* Authors:
3
* Jan Kašpar
4
* Laurent Forthomme
5
****************************************************************************/
6
7
#include "
DataFormats/ProtonReco/interface/ForwardProton.h
"
8
9
#include <set>
10
11
using namespace
reco
;
12
13
ForwardProton::ForwardProton
()
14
: time_(0.),
15
time_err_(0.),
16
xi_(0.),
17
chi2_(0.),
18
ndof_(0),
19
valid_fit_(
false
),
20
method_(
ReconstructionMethod
::
invalid
) {}
21
22
ForwardProton::ForwardProton
(
double
chi2
,
23
double
ndof
,
24
const
Point
& vtx,
25
const
Vector
& momentum,
26
float
xi,
27
const
CovarianceMatrix
& cov,
28
ReconstructionMethod
method,
29
const
CTPPSLocalTrackLiteRefVector
& local_tracks,
30
bool
valid,
31
const
float
time,
32
const
float
time_err)
33
: vertex_(vtx),
34
momentum_(momentum),
35
time_(time),
36
time_err_(time_err),
37
xi_(xi),
38
covariance_(cov),
39
chi2_(chi2),
40
ndof_(ndof),
41
valid_fit_(valid),
42
method_(method),
43
contributing_local_tracks_(local_tracks) {}
44
45
float
ForwardProton::calculateT
(
double
beam_mom,
double
proton_mom,
double
theta
) {
46
const
double
t0
= 2. * (
massSquared_
+ beam_mom * proton_mom -
47
sqrt
((
massSquared_
+ beam_mom * beam_mom) * (
massSquared_
+ proton_mom * proton_mom)));
48
const
double
S
=
sin
(theta / 2.);
49
return
t0 - 4. * beam_mom * proton_mom * S *
S
;
50
}
51
52
float
ForwardProton::t
()
const
{
53
const
double
beam_mom =
p
() / (1. -
xi
());
54
const
double
theta
= std::hypot(
thetaX
(),
thetaY
());
55
return
calculateT
(beam_mom,
p
(), theta);
56
}
reco::ForwardProton::calculateT
static float calculateT(double beam_mom, double proton_mom, double theta)
compute the squared four-momentum transfer from incident and scattered momenta, and angular informati...
Definition:
ForwardProton.cc:45
funct::false
false
Definition:
Factorize.h:29
funct::sin
Sin< T >::type sin(const T &t)
Definition:
Sin.h:22
CTPPSpixelLocalTrackReconstructionInfo::invalid
reco::ForwardProton::t
float t() const
four-momentum transfer squared, in GeV^2
Definition:
ForwardProton.cc:52
theta
Geom::Theta< T > theta() const
Definition:
Basic3DVectorLD.h:150
reco::ForwardProton::p
float p() const
scalar norm of fitted track momentum
Definition:
ForwardProton.h:61
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:111
reco::ForwardProton::thetaX
float thetaX() const
vertical scattering angle, in rad
Definition:
ForwardProton.h:81
reco::ForwardProton::ForwardProton
ForwardProton()
default constructor
Definition:
ForwardProton.cc:13
HLT_FULL_cff.chi2
tuple chi2
Definition:
HLT_FULL_cff.py:10024
mathSSE::sqrt
T sqrt(T t)
Definition:
SSEVec.h:19
ForwardProton.h
S
Definition:
CSCDBL1TPParametersExtended.h:16
reco::ForwardProton::xi
float xi() const
longitudinal fractional momentum loss
Definition:
ForwardProton.h:79
CovarianceMatrix
Definition:
CovarianceMatrix.h:28
reco::ForwardProton::massSquared_
static constexpr float massSquared_
proton mass squared, GeV^2
Definition:
ForwardProton.h:145
ndof
Definition:
HIMultiTrackSelector.h:49
FrontierCondition_GT_autoExpress_cfi.t0
tuple t0
Definition:
FrontierCondition_GT_autoExpress_cfi.py:149
edm::RefVector< CTPPSLocalTrackLiteCollection >
S
double S(const TLorentzVector &, const TLorentzVector &)
Definition:
Particle.cc:97
Point
Structure Point Contains parameters of Gaussian fits to DMRs.
Definition:
DMRtrends.cc:57
reco::ForwardProton::Vector
math::XYZVectorF Vector
spatial vector
Definition:
ForwardProton.h:28
reco::ForwardProton::thetaY
float thetaY() const
horizontal scattering angle, in rad
Definition:
ForwardProton.h:83
reco::ForwardProton::ReconstructionMethod
ReconstructionMethod
type of reconstruction applied for this track
Definition:
ForwardProton.h:32
Generated for CMSSW Reference Manual by
1.8.5