CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/CalibFormats/SiPixelObjects/src/PixelFEDParameters.cc

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