ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
ForwardDetectors
AFP
AFP_ByteStream2RawCnv
src
AFP_WordReadOut.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
AFP_ByteStream2RawCnv/AFP_WordReadOut.h
"
6
7
AFP_WordReadOut::AFP_WordReadOut
(
const
std::string&
type
,
const
std::string& name,
const
IInterface* parent) :
8
base_class(
type
, name, parent)
9
{
10
}
11
12
AFP_WordReadOut::~AFP_WordReadOut
()
13
{
14
}
15
16
StatusCode
AFP_WordReadOut::initialize
()
17
{
18
if
(
m_linkNumTrans
.retrieve().isFailure()) {
19
ATH_MSG_WARNING
(
"Failed to retrieve service "
<<
m_linkNumTrans
);
20
return
StatusCode::SUCCESS;
21
}
else
{
22
ATH_MSG_DEBUG
(
"Retrieved service "
<<
m_linkNumTrans
);
23
}
24
return
StatusCode::SUCCESS;
25
}
26
27
StatusCode
AFP_WordReadOut::finalize
()
28
{
29
return
StatusCode::SUCCESS;
30
}
31
32
uint32_t
AFP_WordReadOut::getBits
(uint32_t the_word,
const
uint16_t start,
const
uint16_t stop)
const
33
{
34
return
(the_word >> stop) & ((1 << (start - stop + 1)) - 1);
35
}
AFP_WordReadOut.h
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition
AthMsgStreamMacros.h:32
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:29
AFP_WordReadOut::m_linkNumTrans
ToolHandle< AFP_LinkNumTranslator > m_linkNumTrans
Definition
AFP_WordReadOut.h:77
AFP_WordReadOut::initialize
virtual StatusCode initialize() override
Definition
AFP_WordReadOut.cxx:16
AFP_WordReadOut::finalize
virtual StatusCode finalize() override
Definition
AFP_WordReadOut.cxx:27
AFP_WordReadOut::AFP_WordReadOut
AFP_WordReadOut(const std::string &type, const std::string &name, const IInterface *parent)
Definition
AFP_WordReadOut.cxx:7
AFP_WordReadOut::~AFP_WordReadOut
virtual ~AFP_WordReadOut() override
Definition
AFP_WordReadOut.cxx:12
AFP_WordReadOut::getBits
uint32_t getBits(uint32_t the_word, const uint16_t start, const uint16_t stop) const override
Returns integer value of the selcted bits.
Definition
AFP_WordReadOut.cxx:32
type
Generated on
for ATLAS Offline Software by
1.17.0