ATLAS Offline Software
Functions
Remappings Namespace Reference

Functions

std::vector< uint32_t > diskIndices (const std::string &geoKey)
 for a given geo tag return disk indices remappings the format is this: 'GeometryVersion':'ATLAS-P2-RUN4-03-00-00' - as present in the config files More...
 

Function Documentation

◆ diskIndices()

std::vector< uint32_t > Remappings::diskIndices ( const std::string &  geoKey)

for a given geo tag return disk indices remappings the format is this: 'GeometryVersion':'ATLAS-P2-RUN4-03-00-00' - as present in the config files

extracts geo version stirng from 'GeometryVersion':'ATLAS-P2-RUN4-03-00-00'

Warning
throws an exception if the geo key is not known

Definition at line 16 of file Remappings.cxx.

16  {
17  const std::string recentKey("ATLAS-P2-RUN4");
18  const std::vector<uint32_t> recentMapping({0, 15, 21, 44, 50, 61, 69, 77, 86});
19 
20  if ( geoKey.compare(0, recentKey.size(), recentKey) == 0 ) {
21  return recentMapping;
22  } else if ( geoKey == "ATLAS-P2-ITK-22-02-00" ) {
23  return {0,17,47,58,66};
24  } else if ( geoKey == "ATLAS-P2-ITK-23-00-01" ) {
25  return {0,15,44,50,61,69,77,86};
26  }
27  throw std::invalid_argument(std::string("GeoKey ") + geoKey +" not known to remapping");
28 
29 }