ATLAS Offline Software
Remappings.cxx
Go to the documentation of this file.
1 #include <string>
2 #include <stdexcept>
4 
5 
6 
10 // std::string getGeo(const std::string& line) {
11 // const size_t start = line.find(':')+2;
12 // const size_t end = line.rfind('\'');
13 // return line.substr(start, end-start);
14 // }
15 
16 std::vector<uint32_t> Remappings::diskIndices(const std::string& geoKey) {
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 }
Remappings::diskIndices
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-RU...
Definition: Remappings.cxx:16
Remappings.h