CMS 3D CMS Logo

Functions
DAQMappingPI Namespace Reference

Functions

std::string resolveDetIDForDAQMapping (int detIDNumber)
 

Function Documentation

◆ resolveDetIDForDAQMapping()

std::string DAQMappingPI::resolveDetIDForDAQMapping ( int  detIDNumber)
inline

Definition at line 24 of file DAQMappingPayloadInspectorHelper.h.

References ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and HPSPFTaus_cff::mapping.

Referenced by DAQMappingPayloadInfo< PayloadType >::fill().

24  {
25  static const std::map<int, std::string> mapping = {{CTPPSDetId::SubDetector::sdTrackingStrip, "Strip"},
26  {CTPPSDetId::SubDetector::sdTrackingPixel, "Pixel"},
27  {CTPPSDetId::SubDetector::sdTimingDiamond, "Diamond"},
28  {CTPPSDetId::SubDetector::sdTimingFastSilicon, "FastSilicon"},
29  {CTPPSDetId::SubDetector::sdTotemT2, "TotemT2"}};
30 
31  auto it = mapping.find(detIDNumber);
32  if (it != mapping.end()) {
33  return it->second;
34  } else {
35  return "not defined";
36  }
37  }