Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef PixelFEDParameters_h
0002 #define PixelFEDParameters_h
0003 /**
0004 *   \file CalibFormats/SiPixelObjects/interface/PixelFEDParameters.h
0005 *   \brief This class implements..
0006 *
0007 *   This class specifies which FED boards
0008 *   are used and how they are addressed
0009 */
0010 
0011 #include <iosfwd>
0012 
0013 namespace pos {
0014   /*! \class PixelFEDParameters PixelFEDParameters.h "interface/PixelFEDParameters.h"
0015 *   \brief This class implements..
0016 *
0017 *   A longer explanation will be placed here later
0018 */
0019   class PixelFEDParameters;
0020   std::ostream& operator<<(std::ostream& s, const PixelFEDParameters& pFEDp);
0021 
0022   class PixelFEDParameters {
0023   public:
0024     PixelFEDParameters();
0025     ~PixelFEDParameters();
0026 
0027     unsigned int getFEDNumber() const;
0028     unsigned int getCrate() const;
0029     unsigned int getVMEBaseAddress() const;
0030     void setFEDParameters(unsigned int fednumber, unsigned int crate, unsigned int vmebaseaddress);
0031     void setFEDNumber(unsigned int fednumber);
0032     void setCrate(unsigned int crate);
0033     void setVMEBaseAddress(unsigned int vmebaseaddress);
0034     friend std::ostream& pos::operator<<(std::ostream& s, const PixelFEDParameters& pFEDp);
0035 
0036   private:
0037     unsigned int fednumber_;
0038     unsigned int crate_;
0039     unsigned int vmebaseaddress_;
0040   };
0041 }  // namespace pos
0042 #endif