00001 #include "CalibFormats/SiPixelObjects/interface/PixelTKFECParameters.h" 00002 #include <ostream> 00003 00004 using namespace pos; 00005 00006 PixelTKFECParameters::PixelTKFECParameters() 00007 { 00008 TKFECID_=""; 00009 crate_=0; 00010 type_=""; 00011 address_=0; 00012 00013 } 00014 00015 PixelTKFECParameters::~PixelTKFECParameters() 00016 { 00017 00018 } 00019 00020 00021 std::string PixelTKFECParameters::getTKFECID() const{ 00022 return TKFECID_; 00023 } 00024 00025 unsigned int PixelTKFECParameters::getCrate() const{ 00026 return crate_; 00027 } 00028 00029 std::string PixelTKFECParameters::getType() const{ 00030 return type_; 00031 } 00032 00033 unsigned int PixelTKFECParameters::getAddress() const{ 00034 return address_; 00035 } 00036 00037 void PixelTKFECParameters::setTKFECParameters( std::string TKFECID , unsigned int crate , std::string type, unsigned int address){ 00038 00039 TKFECID_ = TKFECID; 00040 crate_ = crate; 00041 type_ = type; 00042 address_ =address; 00043 00044 } 00045 00046 void PixelTKFECParameters::setTKFECID(std::string TKFECID) { 00047 00048 TKFECID_ = TKFECID; 00049 00050 } 00051 00052 void PixelTKFECParameters::setCrate(unsigned int crate) { 00053 00054 crate_=crate; 00055 00056 } 00057 00058 void PixelTKFECParameters::setType(std::string type) { 00059 00060 type_ = type; 00061 00062 } 00063 00064 void PixelTKFECParameters::setAddress(unsigned int address){ 00065 00066 address_=address; 00067 00068 } 00069 00070 std::ostream& pos::operator <<(std::ostream& s ,const PixelTKFECParameters &pTKFECp){ 00071 00072 s <<"TKFEC ID:"<<pTKFECp.TKFECID_<<std::endl; 00073 s <<"Crate Number:"<<pTKFECp.crate_<<std::endl; 00074 s <<pTKFECp.type_<<std::endl; 00075 s <<"Address:"<<pTKFECp.address_<<std::endl; 00076 00077 return s; 00078 00079 } 00080 00081 00082