10#include "GaudiKernel/Bootstrap.h"
11#include "GaudiKernel/ISvcLocator.h"
12#include "GaudiKernel/IMessageSvc.h"
13#include "GaudiKernel/MsgStream.h"
79 for (std::vector<MuCTPIRoI>::size_type i(0); i <
roIVec().size(); ++i) {
92 s <<
"header [" << this->
header().
print(longFormat) <<
"] ";
93 if (longFormat) s << std::endl;
95 for(std::vector< MuCTPIRoI >::size_type i(0); i <
roIVec().size(); ++i ) {
97 std::string loc =
"UNDEFINED";
105 if (i == 0 || longFormat) s <<
"data";
106 if (longFormat) s <<
"[" << std::setw(2) << i <<
"]";
110 if (longFormat) s << std::setw(12) <<
"\n Threshold: ";
111 s <<
" " <<
roIVec()[i].pt();
112 if (longFormat) s << std::setw(12) <<
"\n Sector location: ";
114 if (longFormat) s << std::setw(12) <<
"\n Sector ID:";
115 s <<
" " <<
roIVec()[i].getSectorID();
116 if (longFormat) s << std::setw(12) <<
"\n Sector addr:";
118 if (longFormat) s << std::setw(12) <<
"\n Sector overflow:";
119 s <<
" " <<
roIVec()[i].getSectorOverflow();
120 if (longFormat) s << std::setw(12) <<
"\n RoI overflow:";
121 s <<
" " <<
roIVec()[i].getRoiOverflow();
122 if (longFormat) s << std::setw(12) <<
"\n RoI number:";
123 s <<
" " <<
roIVec()[i].getRoiNumber();
126 if (longFormat) s << std::setw(12) <<
"\n Overlap:";
127 s <<
" " <<
roIVec()[i].getOverlapBits();
130 s <<
"trailer [" << this->
trailer().
print(longFormat) <<
"] ";
142 SmartIF<IMessageSvc> msgSvc{Gaudi::svcLocator()->service(
"MessageSvc")};
146 MsgStream log( msgSvc,
"MuCTPIResult" );
161 log << MSG::DEBUG <<
"*BEGIN* MuCTPIResult" <<
endmsg;
168 std::string loc =
"UNDEFINED";
176 log << MSG::DEBUG <<
"RoI word[" << counter <<
"] : 0x"
177 << MSG::hex << it->roIWord() << MSG::dec <<
endmsg;
178 log << MSG::DEBUG <<
"Threshold : pt" << it->pt() <<
endmsg;
179 log << MSG::DEBUG <<
"Sector location : " << loc <<
endmsg;
180 log << MSG::DEBUG <<
"Sector ID : " << it->getSectorID() <<
endmsg;
181 log << MSG::DEBUG <<
"Sector addr : 0x" << MSG::hex
182 << it->getSectorID() << MSG::dec <<
endmsg;
183 log << MSG::DEBUG <<
"Sector overflow : " << it->getSectorOverflow() <<
endmsg;
184 log << MSG::DEBUG <<
"RoI overflow : " << it->getRoiOverflow() <<
endmsg;
185 log << MSG::DEBUG <<
"RoI number : " << it->getRoiNumber() <<
endmsg;
187 log << MSG::DEBUG <<
"Overlap : " << it->getOverlapBits() <<
endmsg;
191 log << MSG::DEBUG <<
"*END* MuCTPIResult" <<
endmsg;
void dumpData() const
Function dumping the stored information to the message stream.
MuCTPIResult()
Default constructor.
std::vector< MuCTPIRoI > m_MuCTPIResultRoIVec
Variable storing the MuCTPI RoIs collected by the RoIB.
const Header & header() const
Member function returning the header.
const std::string dump() const
dump raw object content to string
const std::string print(const bool longFormat=false) const
print object content in a human readable format to string
Header m_MuCTPIResultHeader
Variable storing the header for the MuCTPI block.
const Trailer & trailer() const
Member function returning the trailer.
const std::vector< MuCTPIRoI > & roIVec() const
Member function returning the RoI vector.
Trailer m_MuCTPIResultTrailer
Variable storing the trailer for the MuCTPI block.
ROIB::Trailer models the LVL1 ROD Trailer.
const std::string dump() const
dump raw object content to string
const std::string print(const bool longFormat=false) const
print object content in a human readable format to string
std::string head(std::string s, const std::string &pattern)
head of a string
const std::string convertToHex(const uint32_t word)
helper function to dump a number in hex format
Namespace of the LVL1 RoIB simulation.