37 return StatusCode::SUCCESS;
50 ctx.eventID().run_number(),
51 ctx.eventID().event_number());
52 std::ofstream fout (fname);
55 return StatusCode::FAILURE;
60 fout <<
"TileBeamElemContainer/" <<
m_contKey.key() <<
" "
61 <<
"run " << ctx.eventID().run_number() <<
" "
62 <<
"event " << ctx.eventID().event_number() << std::endl;
64 fout <<
"Type: " << cont->get_type() <<
" ("
66 << cont->get_unit() <<
" ("
68 <<
") BSflags: 0x" << std::hex << cont->get_bsflags() << std::dec
71 for (
auto coll : *cont) {
72 fout << static_cast<std::string> (*coll);
78 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.
Gaudi::Property< std::string > m_prefix
Output file name prefix.
TileBeamElemDumper(const std::string &name, ISvcLocator *svcloc)
Constructor.
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm event processing.
virtual StatusCode initialize() override
Algorithm initialization; called at the beginning of the job.
SG::ReadHandleKey< TileBeamElemContainer > m_contKey
Handle to access input tile digits.
static std::string typeToString(TYPE type)
Printable representation of a type.
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