CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Phase2TrackerModule.cc
Go to the documentation of this file.
2 #include <iostream>
3 #include <sstream>
4 
6  std::stringstream ss;
7  if (compact) {
8  ss << "0x" << std::hex << getDetid() << " (" << (getModuleType() == Phase2TrackerModule::SS ? "2S" : "PS") << ") ";
9  ss << "GBT 0x" << std::hex << getGbtid() << " FED " << std::dec << getCh().first << "." << getCh().second;
10  ss << " C " << getCoolingLoop() << " P " << getPowerGroup() << std::endl;
11  } else {
12  ss << "Module of type " << (getModuleType() == Phase2TrackerModule::SS ? "2S" : "PS") << ":" << std::endl;
13  ss << " Detid: 0x" << std::hex << getDetid() << " GBTid: 0x" << getGbtid() << std::endl;
14  ss << " FED connection: " << std::dec << getCh().first << "." << getCh().second << std::endl;
15  ss << " Cooling loop: " << getCoolingLoop() << std::endl;
16  ss << " Power group: " << getPowerGroup() << std::endl;
17  }
18  return ss.str();
19 }
uint32_t getPowerGroup() const
uint32_t getCoolingLoop() const
uint32_t getDetid() const
std::string description(bool compact=false) const
std::pair< unsigned int, unsigned int > getCh() const
uint32_t getGbtid() const
ModuleTypes getModuleType() const