1 #ifndef CONDCORE_CTPPSPLUGINS_PPSDAQMAPPINGPAYLOADINSPECTORHELPER_H 2 #define CONDCORE_CTPPSPLUGINS_PPSDAQMAPPINGPAYLOADINSPECTORHELPER_H 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"}};
40 template <
class PayloadType>
46 "DAQMappingPayloadInfo text") {}
49 auto tag = cond::payloadInspector::PlotBase::getTag<0>();
51 auto iov =
tag.iovs.back();
54 if (m_payload !=
nullptr) {
55 std::stringstream payloadInfo, lineCountStream;
56 int subDet =
CTPPSDetId(m_payload->VFATMapping.begin()->second.symbolicID.symbolicID).subdetId();
59 payloadInfo << *m_payload;
60 lineCountStream << *m_payload;
65 while (std::getline(lineCountStream,
line)) {
69 TCanvas
canvas(
"canvas",
"Canvas", 800, 20 * lineCounter);
73 latex.SetTextSize(0.015);
76 while (std::getline(payloadInfo,
line)) {
78 latex.DrawLatex(0.1, yPos,
line.c_str());
std::string m_imageFileName
PlotImage(const std::string &title)
std::string resolveDetIDForDAQMapping(int detIDNumber)
Base class for CTPPS detector IDs.
std::shared_ptr< PayloadType > fetchPayload(const cond::Hash &payloadHash)