CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PixelTKFECParameters.cc
Go to the documentation of this file.
2 #include <ostream>
3 
4 using namespace pos;
5 
7  TKFECID_ = "";
8  crate_ = 0;
9  type_ = "";
10  address_ = 0;
11 }
12 
14 
16 
17 unsigned int PixelTKFECParameters::getCrate() const { return crate_; }
18 
20 
21 unsigned int PixelTKFECParameters::getAddress() const { return address_; }
22 
24  unsigned int crate,
26  unsigned int address) {
27  TKFECID_ = TKFECID;
28  crate_ = crate;
29  type_ = type;
30  address_ = address;
31 }
32 
34 
35 void PixelTKFECParameters::setCrate(unsigned int crate) { crate_ = crate; }
36 
38 
39 void PixelTKFECParameters::setAddress(unsigned int address) { address_ = address; }
40 
41 std::ostream& pos::operator<<(std::ostream& s, const PixelTKFECParameters& pTKFECp) {
42  s << "TKFEC ID:" << pTKFECp.TKFECID_ << std::endl;
43  s << "Crate Number:" << pTKFECp.crate_ << std::endl;
44  s << pTKFECp.type_ << std::endl;
45  s << "Address:" << pTKFECp.address_ << std::endl;
46 
47  return s;
48 }
void setCrate(unsigned int crate)
void setTKFECID(std::string TKFECID)
void setTKFECParameters(std::string TKFECID, unsigned int crate, std::string type, unsigned int address)
std::string getType() const
std::ostream & operator<<(std::ostream &s, const PixelCalibConfiguration &calib)
std::string getTKFECID() const
unsigned int getCrate() const
unsigned int getAddress() const
This class implements..
void setType(std::string type)
void setAddress(unsigned int address)