ATLAS Offline Software
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 
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 
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 
44  //==LBTAG print format failure final statistics
45  printcheckformat();
46  return StatusCode::SUCCESS;
47 }
48 
49 #include "RpcROD_Decoder_v302.C"
RpcROD_Decoder.h
Muon::RpcROD_Decoder::m_maxprinterror
IntegerProperty m_maxprinterror
Definition: RpcROD_Decoder.h:89
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
lumiFormat.i
int i
Definition: lumiFormat.py:85
RawEvent.h
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
AthAlgTool.h
Muon::RpcROD_Decoder::m_sector13Data
BooleanProperty m_sector13Data
Definition: RpcROD_Decoder.h:105
test_pyathena.parent
parent
Definition: test_pyathena.py:15
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
Muon::RpcROD_Decoder::m_specialROBNumber
IntegerProperty m_specialROBNumber
Definition: RpcROD_Decoder.h:103
Muon::RpcROD_Decoder::initialize
virtual StatusCode initialize() override
Definition: RpcROD_Decoder.cxx:23
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
Muon::RpcROD_Decoder::RpcROD_Decoder
RpcROD_Decoder(const std::string &type, const std::string &name, const IInterface *p)
Definition: RpcROD_Decoder.cxx:16
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
Muon::RpcROD_Decoder::finalize
virtual StatusCode finalize() override
Definition: RpcROD_Decoder.cxx:43