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