CMS 3D CMS Logo

LHCInterpolatedOpticalFunctionsSet.h
Go to the documentation of this file.
1 // Original Author: Jan Kašpar
2 
3 #ifndef CondFormats_PPSObjects_LHCInterpolatedOpticalFunctionsSet_h
4 #define CondFormats_PPSObjects_LHCInterpolatedOpticalFunctionsSet_h
5 
7 
8 #include "TSpline.h"
9 
12 
15 public:
17 
19 
21 
22  const std::vector<std::shared_ptr<const TSpline3>> &splines() const { return m_splines; }
23 
25  void initializeSplines();
26 
28  struct Kinematics {
29  double x; // physics vertex position (beam offset subtracted), cm
30  double th_x; // physics scattering angle (crossing angle subtracted), rad
31  double y; // physics vertex position, cm
32  double th_y; // physics scattering angle, rad
33  double xi; // relative momentum loss (positive for diffractive protons)
34  };
35 
37  void transport(const Kinematics &input, Kinematics &output, bool calculateAngles = false) const;
38 
39 protected:
42 
43  std::vector<std::shared_ptr<const TSpline3>> m_splines;
44 };
45 
46 #endif
input
static const std::string input
Definition: EdmProvDump.cc:48
LHCInterpolatedOpticalFunctionsSet::Kinematics
proton kinematics description
Definition: LHCInterpolatedOpticalFunctionsSet.h:28
convertSQLitetoXML_cfg.output
output
Definition: convertSQLitetoXML_cfg.py:32
LHCInterpolatedOpticalFunctionsSet::~LHCInterpolatedOpticalFunctionsSet
~LHCInterpolatedOpticalFunctionsSet()=default
LHCInterpolatedOpticalFunctionsSet::Kinematics::xi
double xi
Definition: LHCInterpolatedOpticalFunctionsSet.h:33
LHCInterpolatedOpticalFunctionsSet::Kinematics::y
double y
Definition: LHCInterpolatedOpticalFunctionsSet.h:31
LHCOpticalFunctionsSet
Set of optical functions corresponding to one scoring plane along LHC.
Definition: LHCOpticalFunctionsSet.h:13
LHCInterpolatedOpticalFunctionsSet::LHCInterpolatedOpticalFunctionsSet
LHCInterpolatedOpticalFunctionsSet()=default
CTPPSModifiedOpticalFunctionsESSource
Definition: CTPPSModifiedOpticalFunctionsESSource.cc:16
LHCInterpolatedOpticalFunctionsSet::Kinematics::x
double x
Definition: LHCInterpolatedOpticalFunctionsSet.h:29
LHCOpticalFunctionsSet.h
LHCInterpolatedOpticalFunctionsSet
Set of optical functions corresponding to one scoring plane along LHC, including splines for interpol...
Definition: LHCInterpolatedOpticalFunctionsSet.h:14
LHCInterpolatedOpticalFunctionsSet::Kinematics::th_y
double th_y
Definition: LHCInterpolatedOpticalFunctionsSet.h:32
TrackRefitter_38T_cff.src
src
Definition: TrackRefitter_38T_cff.py:24
CTPPSInterpolatedOpticalFunctionsESSource
Definition: CTPPSInterpolatedOpticalFunctionsESSource.cc:19
LHCInterpolatedOpticalFunctionsSet::initializeSplines
void initializeSplines()
builds splines from m_*_values fields
Definition: LHCInterpolatedOpticalFunctionsSet.cc:7
LHCInterpolatedOpticalFunctionsSet::LHCInterpolatedOpticalFunctionsSet
LHCInterpolatedOpticalFunctionsSet(const LHCOpticalFunctionsSet &src)
Definition: LHCInterpolatedOpticalFunctionsSet.h:18
LHCInterpolatedOpticalFunctionsSet::Kinematics::th_x
double th_x
Definition: LHCInterpolatedOpticalFunctionsSet.h:30
LHCInterpolatedOpticalFunctionsSet::m_splines
std::vector< std::shared_ptr< const TSpline3 > > m_splines
Definition: LHCInterpolatedOpticalFunctionsSet.h:43
LHCInterpolatedOpticalFunctionsSet::transport
void transport(const Kinematics &input, Kinematics &output, bool calculateAngles=false) const
transports proton according to the splines
Definition: LHCInterpolatedOpticalFunctionsSet.cc:17
LHCInterpolatedOpticalFunctionsSet::CTPPSInterpolatedOpticalFunctionsESSource
friend CTPPSInterpolatedOpticalFunctionsESSource
Definition: LHCInterpolatedOpticalFunctionsSet.h:40
LHCInterpolatedOpticalFunctionsSet::CTPPSModifiedOpticalFunctionsESSource
friend CTPPSModifiedOpticalFunctionsESSource
Definition: LHCInterpolatedOpticalFunctionsSet.h:41
LHCInterpolatedOpticalFunctionsSet::splines
const std::vector< std::shared_ptr< const TSpline3 > > & splines() const
Definition: LHCInterpolatedOpticalFunctionsSet.h:22