Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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