ATLAS Offline Software
Loading...
Searching...
No Matches
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
16Muon::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
46 return StatusCode::SUCCESS;
47}
48
49#include "RpcROD_Decoder_v302.C"
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_ERROR(x)
#define ATH_MSG_DEBUG(x)
SG::ReadCondHandleKey< RpcCablingCondData > m_rpcReadKey
virtual StatusCode initialize() override
IntegerProperty m_specialROBNumber
Gaudi::Property< int > m_nobxs
RpcROD_Decoder(const std::string &type, const std::string &name, const IInterface *p)
BooleanProperty m_sector13Data
IntegerProperty m_maxprinterror
virtual StatusCode finalize() override
std::atomic_int m_RPCcheckfail[13]
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
void printcheckformat() const