ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
EFTracking
FPGATrackSim
FPGATrackSimMaps
src
Remappings.cxx
Go to the documentation of this file.
1
#include <string>
2
#include <stdexcept>
3
#include "
FPGATrackSimMaps/Remappings.h
"
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
//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
}
Remappings.h
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
Generated on
for ATLAS Offline Software by
1.17.0