|  | ATLAS Offline Software
    | 
 
 
 
Go to the documentation of this file.
   10 #include "GaudiKernel/Bootstrap.h" 
   11 #include "GaudiKernel/ISvcLocator.h" 
   12 #include "GaudiKernel/IMessageSvc.h" 
   13 #include "GaudiKernel/MsgStream.h" 
   31   MuCTPIResult::MuCTPIResult(  
Header&& 
head, 
Trailer&& trail, vector< MuCTPIRoI >&& roIVector )
 
   32     : m_MuCTPIResultHeader( std::move(
head) ), m_MuCTPIResultTrailer( std::move(trail) ),
 
   33       m_MuCTPIResultRoIVec( std::move(roIVector) ) {
 
   41     : m_MuCTPIResultHeader(), m_MuCTPIResultTrailer(),
 
   42       m_MuCTPIResultRoIVec() {
 
   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: ";
 
  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")};
 
  168       std::string loc = 
"UNDEFINED";
 
  177       << MSG::hex << 
it->roIWord() << MSG::dec << 
endmsg;
 
  182       << 
it->getSectorID() << MSG::dec << 
endmsg;
 
  
void dumpData() const
print object content to default message stream
void dumpData() const
Function dumping the stored information to the message stream.
std::vector< MuCTPIRoI > m_MuCTPIResultRoIVec
Variable storing the MuCTPI RoIs collected by the RoIB.
Trailer m_MuCTPIResultTrailer
Variable storing the trailer for the MuCTPI block.
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 Header & header() const
Member function returning the header.
Namespace of the LVL1 RoIB simulation.
const std::string convertToHex(const uint32_t word)
helper function to dump a number in hex format
msgSvc
Provide convenience handles for various services.
const Trailer & trailer() const
Member function returning the trailer.
const std::string print(const bool longFormat=false) const
print object content in a human readable format to string
const std::string dump() const
dump raw object content to string
const std::string dump() const
dump raw object content to string
std::string head(std::string s, const std::string &pattern)
head of a string
ROIB::Trailer models the LVL1 ROD Trailer.
const std::vector< MuCTPIRoI > & roIVec() const
Member function returning the RoI vector.
MuCTPIResult()
Default constructor.