ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
ForwardDetectors
ZDC
ZdcCnv
ZdcByteStream
ZdcByteStream
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
10
#include "
ByteStreamData/RawEvent.h
"
11
#include "GaudiKernel/ISvcLocator.h"
12
#include "GaudiKernel/Bootstrap.h"
13
#include "
AthenaBaseComps/AthMessaging.h
"
14
#include "
AthenaKernel/getMessageSvc.h
"
15
16
#include "
ZdcByteStream/ZdcLucrodData.h
"
17
18
19
class
ZdcLucrodDecoder
:
public
AthMessaging
20
{
21
enum
{
ROD_MARKER
= 0xee1234ee,
22
ROD_NCHANNELS
= 8};
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
32
~ZdcLucrodDecoder
() {};
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
AthMessaging.h
RawEvent.h
ZdcLucrodData.h
AthMessaging::msg
MsgStream & msg() const
The standard message stream.
Definition
AthMessaging.h:167
AthMessaging::msgLvl
bool msgLvl(const MSG::Level lvl) const
Test the output level.
Definition
AthMessaging.h:151
AthMessaging::AthMessaging
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
Definition
AthMessaging.cxx:13
ZdcLucrodData
Definition
ZdcLucrodData.h:24
ZdcLucrodDecoder::ROD_MARKER
@ ROD_MARKER
Definition
ZdcLucrodDecoder.h:21
ZdcLucrodDecoder::ROD_NCHANNELS
@ ROD_NCHANNELS
Definition
ZdcLucrodDecoder.h:22
ZdcLucrodDecoder::m_rodVersion
unsigned short m_rodVersion
Definition
ZdcLucrodDecoder.h:43
ZdcLucrodDecoder::~ZdcLucrodDecoder
~ZdcLucrodDecoder()
Definition
ZdcLucrodDecoder.h:32
ZdcLucrodDecoder::msg
MsgStream & msg(MSG::Level lvl) const
Definition
ZdcLucrodDecoder.h:36
ZdcLucrodDecoder::msgLevel
bool msgLevel(MSG::Level lvl) const
Definition
ZdcLucrodDecoder.h:38
ZdcLucrodDecoder::ZdcLucrodDecoder
ZdcLucrodDecoder(unsigned int expectedSrcIDHigh, unsigned int expectedRODVersion=0x301)
Definition
ZdcLucrodDecoder.h:26
ZdcLucrodDecoder::m_sourceIdHigh
unsigned short m_sourceIdHigh
Definition
ZdcLucrodDecoder.h:42
ZdcLucrodDecoder::decode
StatusCode decode(const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment *robFragment, ZdcLucrodData *zld)
Definition
ZdcLucrodDecoder.cxx:10
getMessageSvc.h
singleton-like access to IMessageSvc via open function and helper
Athena
Some weak symbol referencing magic... These are declared in AthenaKernel/getMessageSvc....
Definition
AthDsoUtils.h:10
OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment
eformat::ROBFragment< PointerType > ROBFragment
Definition
RawEvent.h:27
Generated on
for ATLAS Offline Software by
1.17.0