CMS 3D CMS Logo

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 }
Phase2TrackerModule::description
std::string description(bool compact=false) const
Definition: Phase2TrackerModule.cc:5
Phase2TrackerModule::getCh
std::pair< unsigned int, unsigned int > getCh() const
Definition: Phase2TrackerModule.h:42
Phase2TrackerModule::getCoolingLoop
uint32_t getCoolingLoop() const
Definition: Phase2TrackerModule.h:43
Phase2TrackerModule::getPowerGroup
uint32_t getPowerGroup() const
Definition: Phase2TrackerModule.h:44
contentValuesCheck.ss
ss
Definition: contentValuesCheck.py:33
Phase2TrackerModule::getModuleType
ModuleTypes getModuleType() const
Definition: Phase2TrackerModule.h:45
Phase2TrackerModule::getDetid
uint32_t getDetid() const
Definition: Phase2TrackerModule.h:40
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
Phase2TrackerModule::SS
Definition: Phase2TrackerModule.h:11
Phase2TrackerModule::getGbtid
uint32_t getGbtid() const
Definition: Phase2TrackerModule.h:41
Phase2TrackerModule.h
TauDecayModes.dec
dec
Definition: TauDecayModes.py:142