|
ATLAS Offline Software
|
Go to the documentation of this file.
10 unsigned rosCounter = 0;
12 for (
const auto& rosRequest : rosToRobMap) {
13 for (
uint32_t robId : rosRequest.second) {
22 m_msgStream.reset(
new MsgStream(
nullptr,
"CostROSData"));
29 }
catch (
const std::out_of_range&
e) {
39 }
catch (
const std::out_of_range&
e) {
48 }
catch (
const std::out_of_range&
e) {
50 return std::vector<uint32_t>();
55 std::stringstream robName;
56 robName <<
"0x" << std::hex << robId;
std::map< std::string, int > m_rosIdToBin
Cached mapping of ros id to bin in ROS histograms.
void initialize(const std::map< std::string, std::vector< uint32_t >> &rosToRobMap)
Create object based on ROS to ROB mapping.
int getBinForROS(const std::string &rosName) const
Return cached bin for given ROS name.
std::map< std::string, std::vector< uint32_t > > m_rosToRob
Mapping of ROS corresponding to ROB requests.
std::vector< uint32_t > getROBForROS(const std::string &rosName) const
Return list of ROBs name for given ROS.
std::string getROBName(uint32_t robId) const
Create ROB name in hex string format.
MsgStream & msg() const
Logging.
boost::thread_specific_ptr< MsgStream > m_msgStream
bool msgLvl(const MSG::Level lvl) const
Returns if requested level is same or higher than logging level.
std::map< uint32_t, std::string > m_robToRos
Mapping of ROB corresponding to ROS.
std::string getROSForROB(uint32_t robId) const
Return ROS name for given ROB.