CMS 3D CMS Logo

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 
28 {
29  return modulename() + "_ch" + TBMChannelString();
30 }
static const char module_[]
PixelModuleName module_
Definition: PixelChannel.h:47
std::string modulename() const
Definition: PixelChannel.h:31
Simple class to hold either "A" or "B" 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
const PixelTBMChannel & TBMChannel() const
Definition: PixelChannel.h:32
PixelTBMChannel TBMChannel_
Definition: PixelChannel.h:48
This class implements..
Definition: vlib.h:208