ATLAS Offline Software
CTP_RIO.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "GaudiKernel/Bootstrap.h"
6 #include "GaudiKernel/ISvcLocator.h"
7 #include "GaudiKernel/IMessageSvc.h"
8 #include "GaudiKernel/MsgStream.h"
9 #include "TrigT1Result/CTP_RIO.h"
10 
12  m_sourceId(0),m_runNumber(0),m_lvl1Id(0),m_bcid(0),m_lvl1TriggerType(0),
13  m_detEventType(0),m_nDataWords(0),m_nStatusWords(0) {
14 }
15 
17 }
18 
19 void CTP_RIO::dumpData() const
20 {
21  SmartIF<IMessageSvc> msgSvc{Gaudi::svcLocator()->service("MessageSvc")};
22  if ( !msgSvc ) {
23  return;
24  }
25  MsgStream log(msgSvc, "CTP_RIO");
26  dumpData(log);
27 }
28 
29 void CTP_RIO::dumpData(MsgStream& log) const
30 {
31  log << MSG::DEBUG << "=================================================" << endmsg;
32  log << MSG::DEBUG << "CTP ROD Header / Trailer data" << endmsg;
33  log << MSG::DEBUG << "Source ID : 0x" << MSG::hex << getSourceId() << MSG::dec << endmsg;
34  log << MSG::DEBUG << "Run number : " << getRunNumber() << endmsg;
35  log << MSG::DEBUG << "Ext. LVL1 ID : " << getLvl1Id() << endmsg;
36  log << MSG::DEBUG << "BCID : " << getBCID() << endmsg;
37  log << MSG::DEBUG << "Trigger type : " << getLvl1TriggerType() << endmsg;
38  log << MSG::DEBUG << "Det. event type : " << getDetectorEventType() << endmsg;
39  log << MSG::DEBUG << "No data words : " << getNumberDataWords() << endmsg;
40  log << MSG::DEBUG << "No status words : " << getNumberStatusWords() << endmsg;
41  for(uint32_t i = 0 ; i<getNumberStatusWords(); ++i)
42  log << MSG::DEBUG << "Status word " << i << " : 0x" << MSG::hex
43  << getStatusWords()[i] << MSG::dec << endmsg;
44  log << MSG::DEBUG << "=================================================" << endmsg;
45 }
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
CTP_RIO::dumpData
void dumpData() const
Definition: CTP_RIO.cxx:19
CTP_RIO::getBCID
uint32_t getBCID() const
Definition: CTP_RIO.h:31
CTP_RIO::getLvl1Id
uint32_t getLvl1Id() const
Definition: CTP_RIO.h:30
CTP_RIO::getNumberStatusWords
uint32_t getNumberStatusWords() const
Definition: CTP_RIO.h:35
CTP_RIO::getNumberDataWords
uint32_t getNumberDataWords() const
Definition: CTP_RIO.h:34
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition: StdJOSetup.py:36
CTP_RIO::getSourceId
uint32_t getSourceId() const
Definition: CTP_RIO.h:28
lumiFormat.i
int i
Definition: lumiFormat.py:85
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
CTP_RIO::getLvl1TriggerType
uint32_t getLvl1TriggerType() const
Definition: CTP_RIO.h:32
CTP_RIO.h
CTP_RIO::~CTP_RIO
~CTP_RIO()
Definition: CTP_RIO.cxx:16
CTP_RIO::getRunNumber
uint32_t getRunNumber() const
Definition: CTP_RIO.h:29
CTP_RIO::CTP_RIO
CTP_RIO()
Definition: CTP_RIO.cxx:11
CTP_RIO::getDetectorEventType
uint32_t getDetectorEventType() const
Definition: CTP_RIO.h:33
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
CTP_RIO::getStatusWords
const std::vector< uint32_t > & getStatusWords() const
Definition: CTP_RIO.h:36