ATLAS Offline Software
Loading...
Searching...
No Matches
ZdcLucrodDecoder.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef ZDC_LUCRODDECODER_H
6#define ZDC_LUCRODDECODER_H
7
8#include <inttypes.h>
9
11#include "GaudiKernel/ISvcLocator.h"
12#include "GaudiKernel/Bootstrap.h"
15
17
18
20{
21 enum {ROD_MARKER = 0xee1234ee,
23
24 public:
25
26 ZdcLucrodDecoder(unsigned int expectedSrcIDHigh, unsigned int expectedRODVersion = 0x301) :
27 AthMessaging(Athena::getMessageSvc(), "ZdcLucrodDecoder"),
28 m_sourceIdHigh(expectedSrcIDHigh), m_rodVersion(expectedRODVersion)
29 {};
30
31
33
34 StatusCode decode(const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment* robFragment, ZdcLucrodData* zld);
35
36 MsgStream& msg(MSG::Level lvl) const { return AthMessaging::msg() << lvl; }
37
38 bool msgLevel(MSG::Level lvl) const { return AthMessaging::msgLvl(lvl); }
39
40 private:
41
42 unsigned short m_sourceIdHigh;
43 unsigned short m_rodVersion;
44};
45
46#endif
MsgStream & msg() const
The standard message stream.
bool msgLvl(const MSG::Level lvl) const
Test the output level.
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
unsigned short m_rodVersion
MsgStream & msg(MSG::Level lvl) const
bool msgLevel(MSG::Level lvl) const
ZdcLucrodDecoder(unsigned int expectedSrcIDHigh, unsigned int expectedRODVersion=0x301)
unsigned short m_sourceIdHigh
StatusCode decode(const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment *robFragment, ZdcLucrodData *zld)
singleton-like access to IMessageSvc via open function and helper
Some weak symbol referencing magic... These are declared in AthenaKernel/getMessageSvc....
eformat::ROBFragment< PointerType > ROBFragment
Definition RawEvent.h:27