Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:47:26

0001 #include "CalibFormats/SiPixelObjects/interface/PixelFEDParameters.h"
0002 #include <ostream>
0003 
0004 using namespace pos;
0005 
0006 PixelFEDParameters::PixelFEDParameters() {
0007   fednumber_ = 0;
0008   crate_ = 0;
0009   vmebaseaddress_ = 0;
0010 }
0011 
0012 PixelFEDParameters::~PixelFEDParameters() {}
0013 
0014 unsigned int PixelFEDParameters::getFEDNumber() const { return fednumber_; }
0015 
0016 unsigned int PixelFEDParameters::getCrate() const { return crate_; }
0017 
0018 unsigned int PixelFEDParameters::getVMEBaseAddress() const { return vmebaseaddress_; }
0019 
0020 void PixelFEDParameters::setFEDParameters(unsigned int fednumber, unsigned int crate, unsigned int vmebaseaddress) {
0021   fednumber_ = fednumber;
0022   crate_ = crate;
0023   vmebaseaddress_ = vmebaseaddress;
0024 }
0025 
0026 void PixelFEDParameters::setFEDNumber(unsigned int fednumber) { fednumber_ = fednumber; }
0027 
0028 void PixelFEDParameters::setCrate(unsigned int crate) { crate_ = crate; }
0029 
0030 void PixelFEDParameters::setVMEBaseAddress(unsigned int vmebaseaddress) { vmebaseaddress_ = vmebaseaddress; }
0031 
0032 std::ostream& pos::operator<<(std::ostream& s, const PixelFEDParameters& pFEDp) {
0033   s << "FED Number:" << pFEDp.fednumber_ << std::endl;
0034   s << "Crate Number:" << pFEDp.crate_ << std::endl;
0035   s << "VME Base Address:" << pFEDp.vmebaseaddress_ << std::endl;
0036 
0037   return s;
0038 }