File indexing completed on 2024-04-06 11:58:17
0001 #include "CalibFormats/SiPixelObjects/interface/PixelTKFECParameters.h"
0002 #include <ostream>
0003
0004 using namespace pos;
0005
0006 PixelTKFECParameters::PixelTKFECParameters() {
0007 TKFECID_ = "";
0008 crate_ = 0;
0009 type_ = "";
0010 address_ = 0;
0011 }
0012
0013 PixelTKFECParameters::~PixelTKFECParameters() {}
0014
0015 std::string PixelTKFECParameters::getTKFECID() const { return TKFECID_; }
0016
0017 unsigned int PixelTKFECParameters::getCrate() const { return crate_; }
0018
0019 std::string PixelTKFECParameters::getType() const { return type_; }
0020
0021 unsigned int PixelTKFECParameters::getAddress() const { return address_; }
0022
0023 void PixelTKFECParameters::setTKFECParameters(std::string TKFECID,
0024 unsigned int crate,
0025 std::string type,
0026 unsigned int address) {
0027 TKFECID_ = TKFECID;
0028 crate_ = crate;
0029 type_ = type;
0030 address_ = address;
0031 }
0032
0033 void PixelTKFECParameters::setTKFECID(std::string TKFECID) { TKFECID_ = TKFECID; }
0034
0035 void PixelTKFECParameters::setCrate(unsigned int crate) { crate_ = crate; }
0036
0037 void PixelTKFECParameters::setType(std::string type) { type_ = type; }
0038
0039 void PixelTKFECParameters::setAddress(unsigned int address) { address_ = address; }
0040
0041 std::ostream& pos::operator<<(std::ostream& s, const PixelTKFECParameters& pTKFECp) {
0042 s << "TKFEC ID:" << pTKFECp.TKFECID_ << std::endl;
0043 s << "Crate Number:" << pTKFECp.crate_ << std::endl;
0044 s << pTKFECp.type_ << std::endl;
0045 s << "Address:" << pTKFECp.address_ << std::endl;
0046
0047 return s;
0048 }