CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
CTPPSBeamParameters Class Reference

#include <CondFormats/CTPPSRedoutObjects/src/CTPPSBeamParameters.cc>

Public Member Functions

 CTPPSBeamParameters ()
 
double getBeamDivergenceX45 () const
 
double getBeamDivergenceX56 () const
 
double getBeamDivergenceY45 () const
 
double getBeamDivergenceY56 () const
 
double getBeamMom45 () const
 
double getBeamMom56 () const
 
double getBetaStarX45 () const
 
double getBetaStarX56 () const
 
double getBetaStarY45 () const
 
double getBetaStarY56 () const
 
double getHalfXangleX45 () const
 
double getHalfXangleX56 () const
 
double getHalfXangleY45 () const
 
double getHalfXangleY56 () const
 
double getVtxOffsetX45 () const
 
double getVtxOffsetX56 () const
 
double getVtxOffsetY45 () const
 
double getVtxOffsetY56 () const
 
double getVtxOffsetZ45 () const
 
double getVtxOffsetZ56 () const
 
double getVtxStddevX () const
 
double getVtxStddevY () const
 
double getVtxStddevZ () const
 
void printInfo (std::stringstream &s)
 
void setBeamDivergenceX45 (double div)
 
void setBeamDivergenceX56 (double div)
 
void setBeamDivergenceY45 (double div)
 
void setBeamDivergenceY56 (double div)
 
void setBeamMom45 (double mom)
 
void setBeamMom56 (double mom)
 
void setBetaStarX45 (double beta)
 
void setBetaStarX56 (double beta)
 
void setBetaStarY45 (double beta)
 
void setBetaStarY56 (double beta)
 
void setHalfXangleX45 (double angle)
 
void setHalfXangleX56 (double angle)
 
void setHalfXangleY45 (double angle)
 
void setHalfXangleY56 (double angle)
 
void setVtxOffsetX45 (double offset)
 
void setVtxOffsetX56 (double offset)
 
void setVtxOffsetY45 (double offset)
 
void setVtxOffsetY56 (double offset)
 
void setVtxOffsetZ45 (double offset)
 
void setVtxOffsetZ56 (double offset)
 
void setVtxStddevX (double stddev)
 
void setVtxStddevY (double stddev)
 
void setVtxStddevZ (double stddev)
 
 ~CTPPSBeamParameters ()
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

double beam_divergence_x_45_
 
double beam_divergence_x_56_
 
double beam_divergence_y_45_
 
double beam_divergence_y_56_
 
double beam_momentum_45_
 
double beam_momentum_56_
 
double beta_star_x_45_
 
double beta_star_x_56_
 
double beta_star_y_45_
 
double beta_star_y_56_
 
double half_crossing_angle_x_45_
 
double half_crossing_angle_x_56_
 
double half_crossing_angle_y_45_
 
double half_crossing_angle_y_56_
 
double vtx_offset_x_45_
 
double vtx_offset_x_56_
 
double vtx_offset_y_45_
 
double vtx_offset_y_56_
 
double vtx_offset_z_45_
 
double vtx_offset_z_56_
 
double vtx_stddev_x_
 
double vtx_stddev_y_
 
double vtx_stddev_z_
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Description: Beam parameters for proton reconstruction

Implementation: <Notes on="" implementation>="">

Definition at line 22 of file CTPPSBeamParameters.h.

Constructor & Destructor Documentation

CTPPSBeamParameters::CTPPSBeamParameters ( )

Definition at line 22 of file CTPPSBeamParameters.cc.

22  :
24  beta_star_x_45_ (0.) , beta_star_x_56_ (0.) ,
25  beta_star_y_45_ (0.) , beta_star_y_56_ (0.) ,
30  vtx_offset_x_45_ (0.) , vtx_offset_x_56_ (0.) ,
31  vtx_offset_y_45_ (0.) , vtx_offset_y_56_ (0.) ,
32  vtx_offset_z_45_ (0.) , vtx_offset_z_56_ (0.) ,
33  vtx_stddev_x_ (0.) , vtx_stddev_y_ (0.) , vtx_stddev_z_ (0.)
34  {}
CTPPSBeamParameters::~CTPPSBeamParameters ( )

Definition at line 37 of file CTPPSBeamParameters.cc.

37 {}

Member Function Documentation

double CTPPSBeamParameters::getBeamDivergenceX45 ( ) const

Definition at line 49 of file CTPPSBeamParameters.cc.

References beam_divergence_x_45_.

Referenced by BeamDivergenceVtxGenerator::produce().

double CTPPSBeamParameters::getBeamDivergenceX56 ( ) const

Definition at line 51 of file CTPPSBeamParameters.cc.

References beam_divergence_x_56_.

Referenced by BeamDivergenceVtxGenerator::produce().

double CTPPSBeamParameters::getBeamDivergenceY45 ( ) const

Definition at line 50 of file CTPPSBeamParameters.cc.

References beam_divergence_y_45_.

Referenced by BeamDivergenceVtxGenerator::produce().

double CTPPSBeamParameters::getBeamDivergenceY56 ( ) const

Definition at line 52 of file CTPPSBeamParameters.cc.

References beam_divergence_y_56_.

Referenced by BeamDivergenceVtxGenerator::produce().

double CTPPSBeamParameters::getBeamMom45 ( ) const

Definition at line 41 of file CTPPSBeamParameters.cc.

References beam_momentum_45_.

Referenced by CTPPSDirectProtonSimulation::processProton().

double CTPPSBeamParameters::getBeamMom56 ( ) const

Definition at line 42 of file CTPPSBeamParameters.cc.

References beam_momentum_56_.

Referenced by CTPPSDirectProtonSimulation::processProton().

double CTPPSBeamParameters::getBetaStarX45 ( ) const

Definition at line 44 of file CTPPSBeamParameters.cc.

References beta_star_x_45_.

double CTPPSBeamParameters::getBetaStarX56 ( ) const

Definition at line 46 of file CTPPSBeamParameters.cc.

References beta_star_x_56_.

double CTPPSBeamParameters::getBetaStarY45 ( ) const

Definition at line 45 of file CTPPSBeamParameters.cc.

References beta_star_y_45_.

double CTPPSBeamParameters::getBetaStarY56 ( ) const

Definition at line 47 of file CTPPSBeamParameters.cc.

References beta_star_y_56_.

double CTPPSBeamParameters::getHalfXangleX45 ( ) const
double CTPPSBeamParameters::getHalfXangleX56 ( ) const
double CTPPSBeamParameters::getHalfXangleY45 ( ) const

Definition at line 55 of file CTPPSBeamParameters.cc.

References half_crossing_angle_y_45_.

double CTPPSBeamParameters::getHalfXangleY56 ( ) const

Definition at line 57 of file CTPPSBeamParameters.cc.

References half_crossing_angle_y_56_.

double CTPPSBeamParameters::getVtxOffsetX45 ( ) const

Definition at line 59 of file CTPPSBeamParameters.cc.

References vtx_offset_x_45_.

Referenced by BeamDivergenceVtxGenerator::produce().

double CTPPSBeamParameters::getVtxOffsetX56 ( ) const

Definition at line 62 of file CTPPSBeamParameters.cc.

References vtx_offset_x_56_.

double CTPPSBeamParameters::getVtxOffsetY45 ( ) const

Definition at line 60 of file CTPPSBeamParameters.cc.

References vtx_offset_y_45_.

Referenced by BeamDivergenceVtxGenerator::produce().

double CTPPSBeamParameters::getVtxOffsetY56 ( ) const

Definition at line 63 of file CTPPSBeamParameters.cc.

References vtx_offset_y_56_.

double CTPPSBeamParameters::getVtxOffsetZ45 ( ) const

Definition at line 61 of file CTPPSBeamParameters.cc.

References vtx_offset_z_45_.

Referenced by BeamDivergenceVtxGenerator::produce().

double CTPPSBeamParameters::getVtxOffsetZ56 ( ) const

Definition at line 64 of file CTPPSBeamParameters.cc.

References vtx_offset_z_56_.

double CTPPSBeamParameters::getVtxStddevX ( ) const

Definition at line 66 of file CTPPSBeamParameters.cc.

References vtx_stddev_x_.

Referenced by BeamDivergenceVtxGenerator::produce().

66 {return vtx_stddev_x_;}
double CTPPSBeamParameters::getVtxStddevY ( ) const

Definition at line 67 of file CTPPSBeamParameters.cc.

References vtx_stddev_y_.

Referenced by BeamDivergenceVtxGenerator::produce().

67 {return vtx_stddev_y_;}
double CTPPSBeamParameters::getVtxStddevZ ( ) const

Definition at line 68 of file CTPPSBeamParameters.cc.

References vtx_stddev_z_.

Referenced by BeamDivergenceVtxGenerator::produce().

68 {return vtx_stddev_z_;}
void CTPPSBeamParameters::printInfo ( std::stringstream &  s)

Definition at line 102 of file CTPPSBeamParameters.cc.

References beam_divergence_x_45_, beam_divergence_x_56_, beam_divergence_y_45_, beam_divergence_y_56_, beam_momentum_45_, beam_momentum_56_, beta_star_x_45_, beta_star_x_56_, beta_star_y_45_, beta_star_y_56_, half_crossing_angle_x_45_, half_crossing_angle_x_56_, half_crossing_angle_y_45_, half_crossing_angle_y_56_, vtx_offset_x_45_, vtx_offset_x_56_, vtx_offset_y_45_, vtx_offset_y_56_, vtx_offset_z_45_, vtx_offset_z_56_, vtx_stddev_x_, vtx_stddev_y_, and vtx_stddev_z_.

Referenced by operator<<().

103  {
104  s << "\n Beam parameters : \n"
105  << "\n beam_momentum_45 = " << beam_momentum_45_ << " GeV"
106  << "\n beam_momentum_56 = " << beam_momentum_56_ << " GeV"
107  << "\n beta_star_x_45 = " << beta_star_x_45_ << " cm"
108  << "\n beta_star_y_45 = " << beta_star_y_45_ << " cm"
109  << "\n beta_star_x_56 = " << beta_star_x_56_ << " cm"
110  << "\n beta_star_y_56 = " << beta_star_y_56_ << " cm"
111  << "\n beam_divergence_x_45 = " << beam_divergence_x_45_ << " rad"
112  << "\n beam_divergence_y_45 = " << beam_divergence_y_45_ << " rad"
113  << "\n beam_divergence_x_56 = " << beam_divergence_x_56_ << " rad"
114  << "\n beam_divergence_y_56 = " << beam_divergence_y_56_ << " rad"
115  << "\n half_crossing_angle_x_45 = " << half_crossing_angle_x_45_ << " rad"
116  << "\n half_crossing_angle_y_45 = " << half_crossing_angle_y_45_ << " rad"
117  << "\n half_crossing_angle_x_56 = " << half_crossing_angle_x_56_ << " rad"
118  << "\n half_crossing_angle_y_56 = " << half_crossing_angle_y_56_ << " rad"
119  << "\n vtx_offset_x_45 = " << vtx_offset_x_45_ << " cm"
120  << "\n vtx_offset_y_45 = " << vtx_offset_y_45_ << " cm"
121  << "\n vtx_offset_z_45 = " << vtx_offset_z_45_ << " cm"
122  << "\n vtx_offset_x_56 = " << vtx_offset_x_56_ << " cm"
123  << "\n vtx_offset_y_56 = " << vtx_offset_y_56_ << " cm"
124  << "\n vtx_offset_z_56 = " << vtx_offset_z_56_ << " cm"
125  << "\n vtx_stddev_x = " << vtx_stddev_x_ << " cm"
126  << "\n vtx_stddev_y = " << vtx_stddev_y_ << " cm"
127  << "\n vtx_stddev_z = " << vtx_stddev_z_ << " cm"
128  << std::endl ;
129 
130  }
template<class Archive >
void CTPPSBeamParameters::serialize ( Archive &  ar,
const unsigned int  version 
)
private
void CTPPSBeamParameters::setBeamDivergenceX45 ( double  div)
void CTPPSBeamParameters::setBeamDivergenceX56 ( double  div)
void CTPPSBeamParameters::setBeamDivergenceY45 ( double  div)
void CTPPSBeamParameters::setBeamDivergenceY56 ( double  div)
void CTPPSBeamParameters::setBeamMom45 ( double  mom)

Definition at line 72 of file CTPPSBeamParameters.cc.

References beam_momentum_45_.

void CTPPSBeamParameters::setBeamMom56 ( double  mom)

Definition at line 73 of file CTPPSBeamParameters.cc.

References beam_momentum_56_.

void CTPPSBeamParameters::setBetaStarX45 ( double  beta)
void CTPPSBeamParameters::setBetaStarX56 ( double  beta)
void CTPPSBeamParameters::setBetaStarY45 ( double  beta)
void CTPPSBeamParameters::setBetaStarY56 ( double  beta)
void CTPPSBeamParameters::setHalfXangleX45 ( double  angle)

Definition at line 85 of file CTPPSBeamParameters.cc.

References angle(), and half_crossing_angle_x_45_.

T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11
void CTPPSBeamParameters::setHalfXangleX56 ( double  angle)

Definition at line 87 of file CTPPSBeamParameters.cc.

References angle(), and half_crossing_angle_x_56_.

T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11
void CTPPSBeamParameters::setHalfXangleY45 ( double  angle)

Definition at line 86 of file CTPPSBeamParameters.cc.

References angle(), and half_crossing_angle_y_45_.

T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11
void CTPPSBeamParameters::setHalfXangleY56 ( double  angle)

Definition at line 88 of file CTPPSBeamParameters.cc.

References angle(), and half_crossing_angle_y_56_.

T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11
void CTPPSBeamParameters::setVtxOffsetX45 ( double  offset)
void CTPPSBeamParameters::setVtxOffsetX56 ( double  offset)
void CTPPSBeamParameters::setVtxOffsetY45 ( double  offset)
void CTPPSBeamParameters::setVtxOffsetY56 ( double  offset)
void CTPPSBeamParameters::setVtxOffsetZ45 ( double  offset)
void CTPPSBeamParameters::setVtxOffsetZ56 ( double  offset)
void CTPPSBeamParameters::setVtxStddevX ( double  stddev)
void CTPPSBeamParameters::setVtxStddevY ( double  stddev)
void CTPPSBeamParameters::setVtxStddevZ ( double  stddev)

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 123 of file CTPPSBeamParameters.h.

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 123 of file CTPPSBeamParameters.h.

Member Data Documentation

double CTPPSBeamParameters::beam_divergence_x_45_
private

Definition at line 105 of file CTPPSBeamParameters.h.

Referenced by getBeamDivergenceX45(), printInfo(), and setBeamDivergenceX45().

double CTPPSBeamParameters::beam_divergence_x_56_
private

Definition at line 105 of file CTPPSBeamParameters.h.

Referenced by getBeamDivergenceX56(), printInfo(), and setBeamDivergenceX56().

double CTPPSBeamParameters::beam_divergence_y_45_
private

Definition at line 106 of file CTPPSBeamParameters.h.

Referenced by getBeamDivergenceY45(), printInfo(), and setBeamDivergenceY45().

double CTPPSBeamParameters::beam_divergence_y_56_
private

Definition at line 106 of file CTPPSBeamParameters.h.

Referenced by getBeamDivergenceY56(), printInfo(), and setBeamDivergenceY56().

double CTPPSBeamParameters::beam_momentum_45_
private

Definition at line 99 of file CTPPSBeamParameters.h.

Referenced by getBeamMom45(), printInfo(), and setBeamMom45().

double CTPPSBeamParameters::beam_momentum_56_
private

Definition at line 100 of file CTPPSBeamParameters.h.

Referenced by getBeamMom56(), printInfo(), and setBeamMom56().

double CTPPSBeamParameters::beta_star_x_45_
private

Definition at line 102 of file CTPPSBeamParameters.h.

Referenced by getBetaStarX45(), printInfo(), and setBetaStarX45().

double CTPPSBeamParameters::beta_star_x_56_
private

Definition at line 102 of file CTPPSBeamParameters.h.

Referenced by getBetaStarX56(), printInfo(), and setBetaStarX56().

double CTPPSBeamParameters::beta_star_y_45_
private

Definition at line 103 of file CTPPSBeamParameters.h.

Referenced by getBetaStarY45(), printInfo(), and setBetaStarY45().

double CTPPSBeamParameters::beta_star_y_56_
private

Definition at line 103 of file CTPPSBeamParameters.h.

Referenced by getBetaStarY56(), printInfo(), and setBetaStarY56().

double CTPPSBeamParameters::half_crossing_angle_x_45_
private

Definition at line 108 of file CTPPSBeamParameters.h.

Referenced by getHalfXangleX45(), printInfo(), and setHalfXangleX45().

double CTPPSBeamParameters::half_crossing_angle_x_56_
private

Definition at line 108 of file CTPPSBeamParameters.h.

Referenced by getHalfXangleX56(), printInfo(), and setHalfXangleX56().

double CTPPSBeamParameters::half_crossing_angle_y_45_
private

Definition at line 109 of file CTPPSBeamParameters.h.

Referenced by getHalfXangleY45(), printInfo(), and setHalfXangleY45().

double CTPPSBeamParameters::half_crossing_angle_y_56_
private

Definition at line 109 of file CTPPSBeamParameters.h.

Referenced by getHalfXangleY56(), printInfo(), and setHalfXangleY56().

double CTPPSBeamParameters::vtx_offset_x_45_
private

Definition at line 112 of file CTPPSBeamParameters.h.

Referenced by getVtxOffsetX45(), printInfo(), and setVtxOffsetX45().

double CTPPSBeamParameters::vtx_offset_x_56_
private

Definition at line 112 of file CTPPSBeamParameters.h.

Referenced by getVtxOffsetX56(), printInfo(), and setVtxOffsetX56().

double CTPPSBeamParameters::vtx_offset_y_45_
private

Definition at line 113 of file CTPPSBeamParameters.h.

Referenced by getVtxOffsetY45(), printInfo(), and setVtxOffsetY45().

double CTPPSBeamParameters::vtx_offset_y_56_
private

Definition at line 113 of file CTPPSBeamParameters.h.

Referenced by getVtxOffsetY56(), printInfo(), and setVtxOffsetY56().

double CTPPSBeamParameters::vtx_offset_z_45_
private

Definition at line 114 of file CTPPSBeamParameters.h.

Referenced by getVtxOffsetZ45(), printInfo(), and setVtxOffsetZ45().

double CTPPSBeamParameters::vtx_offset_z_56_
private

Definition at line 114 of file CTPPSBeamParameters.h.

Referenced by getVtxOffsetZ56(), printInfo(), and setVtxOffsetZ56().

double CTPPSBeamParameters::vtx_stddev_x_
private

Definition at line 118 of file CTPPSBeamParameters.h.

Referenced by getVtxStddevX(), printInfo(), and setVtxStddevX().

double CTPPSBeamParameters::vtx_stddev_y_
private

Definition at line 119 of file CTPPSBeamParameters.h.

Referenced by getVtxStddevY(), printInfo(), and setVtxStddevY().

double CTPPSBeamParameters::vtx_stddev_z_
private

Definition at line 120 of file CTPPSBeamParameters.h.

Referenced by getVtxStddevZ(), printInfo(), and setVtxStddevZ().