pdscalibdata/include/CalibParsRotationV1.h

Go to the documentation of this file.
00001 #ifndef PDSCALIBDATA_CALIBPARSROTATIONV1_H
00002 #define PDSCALIBDATA_CALIBPARSROTATIONV1_H
00003 
00004 //--------------------------------------------------------------------------
00005 // File and Version Information:
00006 //      $Id: CalibParsRotationV1.h 8034 2014-04-19 00:51:18Z dubrovin@SLAC.STANFORD.EDU $
00007 //
00008 // Description:
00009 //      Class CalibParsRotationV1.
00010 //
00011 //------------------------------------------------------------------------
00012 
00013 //-----------------
00014 // C/C++ Headers --
00015 //-----------------
00016 #include <vector>
00017 
00018 //----------------------
00019 // Base Class Headers --
00020 //----------------------
00021 
00022 //-------------------------------
00023 // Collaborating Class Headers --
00024 //-------------------------------
00025 #include "psddl_psana/cspad.ddl.h"
00026 
00027 //------------------------------------
00028 // Collaborating Class Declarations --
00029 //------------------------------------
00030 
00031 //              ---------------------
00032 //              -- Class Interface --
00033 //              ---------------------
00034 
00035 namespace pdscalibdata {
00036 
00037 /**
00038  *  Gets, holds, and provides an access to the 32 (4 quad x 8 2x1-sectors) 
00039  *  rotation angles (degree) of the CSPad
00040  *
00041  *  This software was developed for the LCLS project.  If you use all or 
00042  *  part of it, please give an appropriate acknowledgment.
00043  *
00044  *  @see AdditionalClass
00045  *
00046  *  @version $Id: CalibParsRotationV1.h 8034 2014-04-19 00:51:18Z dubrovin@SLAC.STANFORD.EDU $
00047  *
00048  *  @author Mikhail S. Dubrovin
00049  */
00050 
00051 class CalibParsRotationV1  {
00052 public:
00053 
00054   enum { NQuad = Psana::CsPad::MaxQuadsPerSensor};
00055   enum { NSect = Psana::CsPad::SectorsPerQuad};
00056   enum { NUMBER_OF_PARAMETERS = 32 };
00057 
00058   CalibParsRotationV1( const std::vector<double> v_parameters );
00059   double getRotation(size_t quad, size_t sect){ return m_rotation[quad][sect]; };
00060   void  print();
00061 
00062   // Default constructor
00063   CalibParsRotationV1 () ;
00064 
00065   // Destructor
00066   virtual ~CalibParsRotationV1 () ;
00067 
00068 protected:
00069 
00070 private:
00071 
00072   // Data members
00073   // Segment (2x1) nominal rotation angles (0,90,180,270)
00074   double m_rotation[NQuad][NSect];  
00075 
00076   // Copy constructor and assignment are disabled by default
00077   CalibParsRotationV1 ( const CalibParsRotationV1& ) ;
00078   CalibParsRotationV1& operator = ( const CalibParsRotationV1& ) ;
00079 
00080 };
00081 
00082 } // namespace pdscalibdata
00083 
00084 #endif // PDSCALIBDATA_CALIBPARSROTATIONV1_H

Generated on 19 Dec 2016 for PSANAmodules by  doxygen 1.4.7