#include "xAODForward/ZdcModuleToString.h"
#include "AthContainers/ConstAccessor.h"
#include <sstream>
#include <cstdint>
Go to the source code of this file.
◆ ZdcModuleToString() [1/2]
Definition at line 11 of file ZdcModuleToString.cxx.
12{
13 std::stringstream o;
14 o <<
" ID=" << zm.
zdcId();
15 o <<
" S/M/T/C=" << zm.
zdcSide();
19 o << "\n";
20 using namespace std::string_literals;
21 for (
const auto & s : {
"g0data"s,
"g1data"s,
"g0d0data"s,
"g0d1data"s,
"g1d0data"s,
"g1d1data"s} )
22 {
24 if (
acc.isAvailable(zm))
25 {
28 for (uint16_t d : v)
29 {
31 }
32 o << "\n";
33 }
34
35 }
37 if (LucrodTriggerAmpAcc.isAvailable(zm))
38 {
39 o << "Trigger amp:" << LucrodTriggerAmpAcc(zm) << "\n";
40 }
42 if (LucrodTriggerSideAmpAcc.isAvailable(zm))
43 {
44 o << "Trigger side amp:" << LucrodTriggerSideAmpAcc(zm) << "\n";
45 }
46 return o.str();
47}
Helper class to provide constant type-safe access to aux data.
const std::vector< uint16_t > & getWaveform(const std::string &) const
◆ ZdcModuleToString() [2/2]
Definition at line 49 of file ZdcModuleToString.cxx.
50{
51 std::stringstream o;
53 return o.str();
54}
std::string ZdcModuleToString(const xAOD::ZdcModule &zm)