Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:58:32

0001 /****************************************************************************
0002 * Authors:
0003 *   Jan Kašpar (jan.kaspar@gmail.com)
0004 ****************************************************************************/
0005 
0006 #ifndef CalibPPS_AlignmentRelative_AlignmentResult_h
0007 #define CalibPPS_AlignmentRelative_AlignmentResult_h
0008 
0009 /// \brief Result of CTPPS track-based alignment
0010 class AlignmentResult {
0011 protected:
0012   /// shift in read-out directions and along beam, mm
0013   /// "_unc" denotes the shift uncertainties
0014   double sh_r1, sh_r1_unc;
0015   double sh_r2, sh_r2_unc;
0016   double sh_z, sh_z_unc;
0017 
0018   /// rotation about beam axis, rad
0019   double rot_z;
0020   double rot_z_unc;
0021 
0022 public:
0023   AlignmentResult(double _sh_r1 = 0.,
0024                   double _sh_r1_e = 0.,
0025                   double _sh_r2 = 0.,
0026                   double _sh_r2_e = 0.,
0027                   double _sh_z = 0.,
0028                   double _sh_z_e = 0.,
0029                   double _rot_z = 0.,
0030                   double _rot_z_e = 0.)
0031       : sh_r1(_sh_r1),
0032         sh_r1_unc(_sh_r1_e),
0033         sh_r2(_sh_r2),
0034         sh_r2_unc(_sh_r2_e),
0035         sh_z(_sh_z),
0036         sh_z_unc(_sh_z_e),
0037         rot_z(_rot_z),
0038         rot_z_unc(_rot_z_e) {}
0039 
0040   inline double getShR1() const { return sh_r1; }
0041   inline void setShR1(const double &v) { sh_r1 = v; }
0042 
0043   inline double getShR1Unc() const { return sh_r1_unc; }
0044   inline void setShR1Unc(const double &v) { sh_r1_unc = v; }
0045 
0046   inline double getShR2() const { return sh_r2; }
0047   inline void setShR2(const double &v) { sh_r2 = v; }
0048 
0049   inline double getShR2Unc() const { return sh_r2_unc; }
0050   inline void setShR2Unc(const double &v) { sh_r2_unc = v; }
0051 
0052   inline double getShZ() const { return sh_z; }
0053   inline void setShZ(const double &v) { sh_z = v; }
0054 
0055   inline double getShZUnc() const { return sh_z_unc; }
0056   inline void setShZUnc(const double &v) { sh_z_unc = v; }
0057 
0058   inline double getRotZ() const { return rot_z; }
0059   inline void setRotZ(const double &v) { rot_z = v; }
0060 
0061   inline double getRotZUnc() const { return rot_z_unc; }
0062   inline void setRotZUnc(const double &v) { rot_z_unc = v; }
0063 };
0064 
0065 #endif