53 ATH_MSG_DEBUG(
"TileRawChannelToL2 initialization completed" );
55 return StatusCode::SUCCESS;
65 l2Container->reserve(256);
66 for (
int i = 0; i < 256; i++) {
68 std::unique_ptr<TileL2> l2 = std::make_unique<TileL2>(collId);
69 l2Container->push_back(l2.release());
76 if (
msgLvl(MSG::VERBOSE)) {
78 for (
const TileL2* l2 : *l2Container) {
80 msg(MSG::VERBOSE) <<
"frag ID = 0x" << MSG::hex << l2->identify() << MSG::dec
81 <<
" phi = " << l2->phi(0)
82 <<
" Et = " << l2->Et() <<
endmsg;
84 for (
unsigned int i = 0; i < l2->NMuons(); ++i) {
85 msg(MSG::VERBOSE) <<
"Muon found:"
86 <<
" frag ID = 0x" << MSG::hex << l2->identify()
87 <<
" word1 = 0x" << l2->val(2 * i)
88 <<
" word2 = 0x" << l2->val(2 * i + 1) << MSG::dec
89 <<
" eta = " << l2->eta(i)
90 <<
" phi = " << l2->phi(i) <<
endmsg;
92 msg(MSG::VERBOSE) <<
"Muon found:"
93 <<
" E[0] = " << l2->enemu0(i) <<
" MeV"
94 <<
" E[1] = " << l2->enemu1(i) <<
" MeV"
95 <<
" E[2] = " << l2->enemu2(i) <<
" MeV"
96 <<
" QF = " << l2->qual(i) <<
endmsg;
107 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
Handle class for recording to StoreGate.
bool msgLvl(const MSG::Level lvl) const
An algorithm that can be simultaneously executed in multiple threads.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
pointer_type ptr()
Dereference the pointer.
Class to store TileMuId and Et quantities computed at the TileCal ROD DSPs.
TileRawChannelToL2(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
virtual StatusCode execute(const EventContext &ctx) const override
virtual StatusCode initialize() override
SG::WriteHandleKey< TileL2Container > m_l2ContainerKey
TileL2Container in detector store.
ToolHandle< TileL2Builder > m_tileL2Builder
Pointer to TileL2Builder.
virtual ~TileRawChannelToL2()
Destructor.