40 return StatusCode::SUCCESS;
58 ctx.eventID().run_number(),
59 ctx.eventID().event_number());
60 std::ofstream fout (fname);
63 return StatusCode::FAILURE;
68 fout <<
"TileRawChannelContainer/" <<
m_contKey.key() <<
" "
69 <<
"run " << ctx.eventID().run_number() <<
" "
70 <<
"event " << ctx.eventID().event_number() << std::endl;
72 fout <<
"Type: " << cont->get_type() <<
" ("
74 << cont->get_unit() <<
" ("
76 <<
") BSflags: 0x" << std::hex << cont->get_bsflags() << std::dec
80 fout << static_cast<std::string> (*coll);
86 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Handle class for reading from StoreGate.
An algorithm that can be simultaneously executed in multiple threads.
static std::string typeToString(TYPE type)
Printable representation of a type.
virtual StatusCode initialize() override
Algorithm initialization; called at the beginning of the job.
Gaudi::Property< std::string > m_prefix
Output file name prefix.
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm event processing.
TileRawChannelDumper(const std::string &name, ISvcLocator *svcloc)
Constructor.
SG::ReadHandleKey< TileRawChannelContainer > m_altContKey
Optional additional input dependency — used when we access the object produced on the side by the con...
SG::ReadHandleKey< TileRawChannelContainer > m_contKey
Handle to access input tile digits.
static std::string unitToString(UNIT type)
Printable representation of a unit.
std::string strformat(const char *fmt,...)
return a std::string according to a format fmt and varargs