ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonCnv
MuonRPC_CnvTools
src
RpcROD_Decoder.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 "
RpcROD_Decoder.h
"
6
7
#include <algorithm>
8
#include <deque>
9
#include <utility>
10
#include <vector>
11
12
#include "
AthenaBaseComps/AthAlgTool.h
"
13
#include "
ByteStreamData/RawEvent.h
"
14
#include "eformat/Version.h"
15
16
Muon::RpcROD_Decoder::RpcROD_Decoder
(
const
std::string&
type
,
const
std::string& name,
const
IInterface* parent) :
17
base_class(
type
, name, parent) {
18
declareProperty(
"SpecialROBNumber"
,
m_specialROBNumber
= -1);
19
declareProperty(
"Sector13Data"
,
m_sector13Data
=
false
);
20
declareProperty(
"DataErrorPrintLimit"
,
m_maxprinterror
= 1000);
21
}
22
23
StatusCode
Muon::RpcROD_Decoder::initialize
() {
24
ATH_CHECK
(
m_idHelperSvc
.retrieve());
25
26
ATH_CHECK
(
m_rpcReadKey
.initialize());
27
28
if
(
m_specialROBNumber
> 0) {
ATH_MSG_DEBUG
(
"Setting the special ROB Number to: 0x"
<< MSG::hex <<
m_specialROBNumber
<< MSG::dec); }
29
30
//==LBTAG initialize vector and variables for format failure check
31
for
(
int
i = 0; i < 13; i++)
m_RPCcheckfail
[i] = 0;
32
m_printerror
= 0;
33
if
(
m_nobxs
>8){
34
//The RPC simulation uses many arrays that assume maximum 8 BCs are readout
35
//See TrigT1/TrigT1RPChardware/Matrix.h for example
36
ATH_MSG_ERROR
(
"Readout of more than 8 BCs is not supported by the simulation"
);
37
return
StatusCode::FAILURE;
38
}
39
40
return
StatusCode::SUCCESS;
41
}
42
43
StatusCode
Muon::RpcROD_Decoder::finalize
() {
44
//==LBTAG print format failure final statistics
45
printcheckformat
();
46
return
StatusCode::SUCCESS;
47
}
48
49
#include "RpcROD_Decoder_v302.C"
AthAlgTool.h
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition
AthMsgStreamMacros.h:33
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:29
RawEvent.h
RpcROD_Decoder.h
Muon::RpcROD_Decoder::m_rpcReadKey
SG::ReadCondHandleKey< RpcCablingCondData > m_rpcReadKey
Definition
RpcROD_Decoder.h:107
Muon::RpcROD_Decoder::initialize
virtual StatusCode initialize() override
Definition
RpcROD_Decoder.cxx:23
Muon::RpcROD_Decoder::m_specialROBNumber
IntegerProperty m_specialROBNumber
Definition
RpcROD_Decoder.h:110
Muon::RpcROD_Decoder::m_nobxs
Gaudi::Property< int > m_nobxs
Definition
RpcROD_Decoder.h:101
Muon::RpcROD_Decoder::RpcROD_Decoder
RpcROD_Decoder(const std::string &type, const std::string &name, const IInterface *p)
Definition
RpcROD_Decoder.cxx:16
Muon::RpcROD_Decoder::m_sector13Data
BooleanProperty m_sector13Data
Definition
RpcROD_Decoder.h:112
Muon::RpcROD_Decoder::m_maxprinterror
IntegerProperty m_maxprinterror
Definition
RpcROD_Decoder.h:96
Muon::RpcROD_Decoder::finalize
virtual StatusCode finalize() override
Definition
RpcROD_Decoder.cxx:43
Muon::RpcROD_Decoder::m_RPCcheckfail
std::atomic_int m_RPCcheckfail[13]
Definition
RpcROD_Decoder.h:95
Muon::RpcROD_Decoder::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition
RpcROD_Decoder.h:105
Muon::RpcROD_Decoder::m_printerror
int m_printerror
Definition
RpcROD_Decoder.h:94
Muon::RpcROD_Decoder::printcheckformat
void printcheckformat() const
Definition
RpcROD_Decoder.h:288
type
Generated on
for ATLAS Offline Software by
1.17.0