ATLAS Offline Software
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 
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
ZdcLucrodDecoder::~ZdcLucrodDecoder
~ZdcLucrodDecoder()
Definition: ZdcLucrodDecoder.h:32
getMessageSvc.h
singleton-like access to IMessageSvc via open function and helper
Athena::getMessageSvc
IMessageSvc * getMessageSvc(bool quiet=false)
Definition: getMessageSvc.cxx:20
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
AthMessaging::msgLvl
bool msgLvl(const MSG::Level lvl) const
Test the output level.
Definition: AthMessaging.h:151
eformat::ROBFragment
Definition: L1CaloBsDecoderUtil.h:12
Athena
Some weak symbol referencing magic...
Definition: AthLegacySequence.h:21
RawEvent.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ZdcLucrodDecoder::msgLevel
bool msgLevel(MSG::Level lvl) const
Definition: ZdcLucrodDecoder.h:38
ZdcLucrodDecoder::m_sourceIdHigh
unsigned short m_sourceIdHigh
Definition: ZdcLucrodDecoder.h:42
ZdcLucrodDecoder::ROD_MARKER
@ ROD_MARKER
Definition: ZdcLucrodDecoder.h:21
ZdcLucrodDecoder::decode
StatusCode decode(const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment *robFragment, ZdcLucrodData *zld)
Definition: ZdcLucrodDecoder.cxx:10
AthMessaging
Class to provide easy MsgStream access and capabilities.
Definition: AthMessaging.h:55
AthMessaging::msg
MsgStream & msg() const
The standard message stream.
Definition: AthMessaging.h:164
ZdcLucrodDecoder::ZdcLucrodDecoder
ZdcLucrodDecoder(unsigned int expectedSrcIDHigh, unsigned int expectedRODVersion=0x301)
Definition: ZdcLucrodDecoder.h:26
ZdcLucrodDecoder::m_rodVersion
unsigned short m_rodVersion
Definition: ZdcLucrodDecoder.h:43
ZdcLucrodDecoder::msg
MsgStream & msg(MSG::Level lvl) const
Definition: ZdcLucrodDecoder.h:36
ZdcLucrodData.h
ZdcLucrodData
Definition: ZdcLucrodData.h:20
AthMessaging.h
ZdcLucrodDecoder
Definition: ZdcLucrodDecoder.h:20
ZdcLucrodDecoder::ROD_NCHANNELS
@ ROD_NCHANNELS
Definition: ZdcLucrodDecoder.h:22