ATLAS Offline Software
CTP_RIO.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 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  IMessageSvc* msgSvc;
22  ISvcLocator* svcLoc = Gaudi::svcLocator( );
23  StatusCode sc = svcLoc->service( "MessageSvc", msgSvc );
24  if ( sc.isFailure() ) {
25  return;
26  }
27  MsgStream log(msgSvc, "CTP_RIO");
28  dumpData(log);
29 }
30 
31 void CTP_RIO::dumpData(MsgStream& log) const
32 {
33  log << MSG::DEBUG << "=================================================" << endmsg;
34  log << MSG::DEBUG << "CTP ROD Header / Trailer data" << endmsg;
35  log << MSG::DEBUG << "Source ID : 0x" << MSG::hex << getSourceId() << MSG::dec << endmsg;
36  log << MSG::DEBUG << "Run number : " << getRunNumber() << endmsg;
37  log << MSG::DEBUG << "Ext. LVL1 ID : " << getLvl1Id() << endmsg;
38  log << MSG::DEBUG << "BCID : " << getBCID() << endmsg;
39  log << MSG::DEBUG << "Trigger type : " << getLvl1TriggerType() << endmsg;
40  log << MSG::DEBUG << "Det. event type : " << getDetectorEventType() << endmsg;
41  log << MSG::DEBUG << "No data words : " << getNumberDataWords() << endmsg;
42  log << MSG::DEBUG << "No status words : " << getNumberStatusWords() << endmsg;
43  for(uint32_t i = 0 ; i<getNumberStatusWords(); ++i)
44  log << MSG::DEBUG << "Status word " << i << " : 0x" << MSG::hex
45  << getStatusWords()[i] << MSG::dec << endmsg;
46  log << MSG::DEBUG << "=================================================" << endmsg;
47 }
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
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
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:92
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
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