CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/CalibFormats/SiPixelObjects/src/PixelFECParameters.cc

Go to the documentation of this file.
00001 #include "CalibFormats/SiPixelObjects/interface/PixelFECParameters.h"
00002 #include <ostream>
00003 
00004 
00005 using namespace pos;
00006 
00007 PixelFECParameters::PixelFECParameters()
00008 {
00009 fecnumber_=0;
00010 crate_=0;
00011 vmebaseaddress_=0;
00012 
00013 }
00014 
00015 PixelFECParameters::~PixelFECParameters()
00016 {
00017 
00018 }
00019 
00020 
00021 unsigned int PixelFECParameters::getFECNumber() const{
00022 
00023   
00024     return fecnumber_;
00025 
00026 }
00027 
00028 
00029 unsigned int PixelFECParameters::getCrate() const{
00030 
00031     
00032     return crate_;
00033 
00034 }
00035 
00036 
00037 unsigned int PixelFECParameters::getVMEBaseAddress() const{
00038 
00039     
00040     return vmebaseaddress_;
00041 
00042 }
00043 
00044 void PixelFECParameters::setFECParameters( unsigned int fecnumber , unsigned int crate , unsigned int vmebaseaddress){
00045 
00046 fecnumber_ = fecnumber;
00047 crate_ = crate;
00048 vmebaseaddress_ =vmebaseaddress;
00049 
00050 }
00051 
00052 void PixelFECParameters::setFECNumber(unsigned int fecnumber) {
00053 
00054 fecnumber_ = fecnumber;
00055 
00056 }
00057 
00058 
00059 void PixelFECParameters::setCrate(unsigned int crate) {
00060 
00061 crate_=crate;
00062 
00063 }
00064 
00065 void PixelFECParameters::setVMEBaseAddress(unsigned int vmebaseaddress){
00066 
00067 vmebaseaddress_=vmebaseaddress;
00068 
00069 }
00070 
00071 std::ostream&  pos::operator <<(std::ostream& s ,const PixelFECParameters &pFECp){
00072 
00073 s <<"FEC Number:"<<pFECp.fecnumber_<<std::endl;
00074 s <<"Crate Number:"<<pFECp.crate_<<std::endl;
00075 s <<"VME Base Address:"<<pFECp.vmebaseaddress_<<std::endl;
00076 
00077 return s;
00078 
00079 }
00080 
00081 
00082