ATLAS Offline Software
Loading...
Searching...
No Matches
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

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 string 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 //coverity[COPY_INSTEAD_OF_MOVE]
22 return recentMapping;
23 } else if ( geoKey == "ATLAS-P2-ITK-22-02-00" ) {
24 return {0,17,47,58,66};
25 } else if ( geoKey == "ATLAS-P2-ITK-23-00-01" ) {
26 return {0,15,44,50,61,69,77,86};
27 }
28 throw std::invalid_argument(std::string("GeoKey ") + geoKey +" not known to remapping");
29
30}