ATLAS Offline Software
Loading...
Searching...
No Matches
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"
10
15
18
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
29void 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}
#define endmsg
uint32_t getNumberDataWords() const
Definition CTP_RIO.h:34
uint32_t getNumberStatusWords() const
Definition CTP_RIO.h:35
~CTP_RIO()
Definition CTP_RIO.cxx:16
void dumpData() const
Definition CTP_RIO.cxx:19
uint32_t getSourceId() const
Definition CTP_RIO.h:28
uint32_t getBCID() const
Definition CTP_RIO.h:31
uint32_t m_bcid
Definition CTP_RIO.h:55
const std::vector< uint32_t > & getStatusWords() const
Definition CTP_RIO.h:36
uint32_t m_nDataWords
Definition CTP_RIO.h:58
uint32_t m_lvl1TriggerType
Definition CTP_RIO.h:56
uint32_t m_lvl1Id
Definition CTP_RIO.h:54
uint32_t m_sourceId
Definition CTP_RIO.h:52
uint32_t m_detEventType
Definition CTP_RIO.h:57
uint32_t m_runNumber
Definition CTP_RIO.h:53
uint32_t getLvl1Id() const
Definition CTP_RIO.h:30
CTP_RIO()
Definition CTP_RIO.cxx:11
uint32_t getRunNumber() const
Definition CTP_RIO.h:29
uint32_t m_nStatusWords
Definition CTP_RIO.h:59
uint32_t getLvl1TriggerType() const
Definition CTP_RIO.h:32
uint32_t getDetectorEventType() const
Definition CTP_RIO.h:33