CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PixelTBMChannel.cc
Go to the documentation of this file.
2 #include <cassert>
3 
4 using namespace pos;
5 
7  if (TBMChannel == "A")
8  isChannelB_ = false;
9  else if (TBMChannel == "B")
10  isChannelB_ = true;
11  else {
12  std::cout << "ERROR in PixelTBMChannel: TBM channel must be A or B, but input value was " << TBMChannel
13  << std::endl;
14  assert(0);
15  }
16 }
17 
19  if (isChannelB_)
20  return "B";
21  else
22  return "A";
23 }
24 
25 std::ostream& pos::operator<<(std::ostream& s, const PixelTBMChannel& TBMChannel) {
26  s << TBMChannel.string();
27  return s;
28 }
Simple class to hold either &quot;A&quot; or &quot;B&quot; for the TBM channel.
std::ostream & operator<<(std::ostream &s, const PixelCalibConfiguration &calib)
assert(be >=bs)
std::string string() const
Simple class to hold either &quot;A&quot; or &quot;B&quot; for the TBM channel.
tuple cout
Definition: gather_cfg.py:144