ATLAS Offline Software
ForwardDetectors
AFP
AFP_ByteStream2RawCnv
src
AFP_WordReadOut.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 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
uint32_t
word = 0;
35
for
(
uint16_t
i
=
stop
;
i
<
start
;
i
++) {
36
word = ((word | 1) << 1);
37
}
38
uint32_t
result
= (the_word >>
stop
) & (word | 1);
39
return
result
;
40
}
get_generator_info.result
result
Definition:
get_generator_info.py:21
xAOD::uint32_t
setEventNumber uint32_t
Definition:
EventInfo_v1.cxx:127
mergePhysValFiles.start
start
Definition:
DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:14
AFP_WordReadOut::finalize
virtual StatusCode finalize() override
Definition:
AFP_WordReadOut.cxx:27
PixelModuleFeMask_create_db.stop
int stop
Definition:
PixelModuleFeMask_create_db.py:76
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
xAOD::uint16_t
setWord1 uint16_t
Definition:
eFexEMRoI_v1.cxx:93
lumiFormat.i
int i
Definition:
lumiFormat.py:85
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition:
AthMsgStreamMacros.h:29
test_pyathena.parent
parent
Definition:
test_pyathena.py:15
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
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
AFP_WordReadOut::~AFP_WordReadOut
virtual ~AFP_WordReadOut() override
Definition:
AFP_WordReadOut.cxx:12
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition:
AthMsgStreamMacros.h:32
python.CaloScaleNoiseConfig.type
type
Definition:
CaloScaleNoiseConfig.py:78
AFP_WordReadOut::AFP_WordReadOut
AFP_WordReadOut(const std::string &type, const std::string &name, const IInterface *parent)
Definition:
AFP_WordReadOut.cxx:7
AFP_WordReadOut.h
Generated on Mon Dec 23 2024 21:06:43 for ATLAS Offline Software by
1.8.18