CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PixelChannel.cc
Go to the documentation of this file.
2 
3 using namespace pos;
4 
6  module_(module), TBMChannel_(TBMChannel)
7 {}
8 
10  module_(module), TBMChannel_(TBMChannel)
11 {}
12 
14 {
15  module_ = PixelModuleName(name);
16  char TBMChannelString[2] = {0,0};
17  TBMChannelString[0] = name[name.size()-1]; // take the last character of name
18  TBMChannel_ = PixelTBMChannel(TBMChannelString);
19 }
20 
21 std::ostream& pos::operator<<(std::ostream& s, const PixelChannel& channel)
22 {
23  s << channel.channelname();
24  return s;
25 }
26 
27 std::string PixelChannel::channelname() const
28 {
29  return modulename() + "_ch" + TBMChannelString();
30 }
static const char module_[]
PixelModuleName module_
Definition: PixelChannel.h:49
std::string modulename() const
Definition: PixelChannel.h:31
Simple class to hold either &quot;A&quot; or &quot;B&quot; for the TBM channel.
std::string TBMChannelString() const
Definition: PixelChannel.h:33
This class implements...
std::ostream & operator<<(std::ostream &s, const PixelCalibConfiguration &calib)
std::string channelname() const
Definition: PixelChannel.cc:27
PixelTBMChannel TBMChannel_
Definition: PixelChannel.h:50
This class implements..
Definition: vlib.h:209