ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
ROIB::EMTauResult Class Reference

#include <EMTauResult.h>

Collaboration diagram for ROIB::EMTauResult:

Public Member Functions

 EMTauResult (Header &&, Trailer &&, std::vector< EMTauRoI > &&)
 
 EMTauResult ()
 
 ~EMTauResult ()
 
 EMTauResult (EMTauResult &&) noexcept=default
 
 EMTauResult (const EMTauResult &)=default
 
EMTauResultoperator= (EMTauResult &&) noexcept=default
 
EMTauResultoperator= (const EMTauResult &)=default
 
const Headerheader () const
 
const Trailertrailer () const
 
const std::vector< EMTauRoI > & roIVec () const
 
const std::string dump () const
 dump raw object content to string More...
 
const std::string print (const bool longFormat=false) const
 print object content in a human readable format to string More...
 

Private Attributes

Header m_EMTauResultHeader
 header fragment in LVL1 eformat More...
 
Trailer m_EMTauResultTrailer
 trailer fragment in LVL1 eformat More...
 
std::vector< EMTauRoIm_EMTauResultRoIVec
 raw data content (RoIs) More...
 

Detailed Description

Definition at line 25 of file EMTauResult.h.

Constructor & Destructor Documentation

◆ EMTauResult() [1/4]

ROIB::EMTauResult::EMTauResult ( Header &&  head,
Trailer &&  trail,
std::vector< EMTauRoI > &&  roIVector 
)

Definition at line 18 of file EMTauResult.cxx.

19  : m_EMTauResultHeader( std::move(head) ), m_EMTauResultTrailer( std::move(trail) ),
20  m_EMTauResultRoIVec( std::move(roIVector) ) {
21 
22  }

◆ EMTauResult() [2/4]

ROIB::EMTauResult::EMTauResult ( )

Definition at line 24 of file EMTauResult.cxx.

◆ ~EMTauResult()

ROIB::EMTauResult::~EMTauResult ( )

Definition at line 30 of file EMTauResult.cxx.

30  {
31 
32  }

◆ EMTauResult() [3/4]

ROIB::EMTauResult::EMTauResult ( EMTauResult &&  )
defaultnoexcept

◆ EMTauResult() [4/4]

ROIB::EMTauResult::EMTauResult ( const EMTauResult )
default

Member Function Documentation

◆ dump()

const std::string ROIB::EMTauResult::dump ( ) const

dump raw object content to string

method used for read/write testing and T/P separation

Definition at line 46 of file EMTauResult.cxx.

47  {
48  std::ostringstream s;
49 
50  s << " [" << this->header().dump() << "] ";
51  s << " [";
52  for (std::vector<EMTauRoI>::size_type i(0); i < roIVec().size(); ++i) {
53  s << LVL1CTP::convertToHex(roIVec()[i].roIWord());
54  }
55  s << "] ";
56  s << " [" << this->trailer().dump() << "] ";
57 
58  return s.str();
59  }

◆ header()

const Header & ROIB::EMTauResult::header ( ) const

Definition at line 34 of file EMTauResult.cxx.

34  {
35  return m_EMTauResultHeader;
36  }

◆ operator=() [1/2]

EMTauResult& ROIB::EMTauResult::operator= ( const EMTauResult )
default

◆ operator=() [2/2]

EMTauResult& ROIB::EMTauResult::operator= ( EMTauResult &&  )
defaultnoexcept

◆ print()

const std::string ROIB::EMTauResult::print ( const bool  longFormat = false) const

print object content in a human readable format to string

Definition at line 61 of file EMTauResult.cxx.

62  {
63  std::ostringstream s;
64 
65  s << "\n header [" << this->header().print(longFormat) << "] ";
66  if (longFormat) s << std::endl;
67 
68  for (std::vector<EMTauRoI>::size_type i(0); i < roIVec().size(); ++i) {
69 
70  if (i == 0 || longFormat) s << "data";
71  if (longFormat) s << "[" << std::setw(2) << i << "]";
72 
73  s << " [";
74  if (longFormat) s << LVL1CTP::convertToHex(roIVec()[i].roIWord());
75  if (longFormat) s << std::setw(12) << "\n Type: ";
76  s << " " << roIVec()[i].roIType();
77  if (longFormat) s << std::setw(12) << "\n ID: ";
78  s << " " << roIVec()[i].electronicsID();
79  if (longFormat) s << std::setw(12) << "\n Threshold: ";
80  using namespace LVL1CTP; // for importing operator<<
81  s << " " << roIVec()[i].thresholds();
82  s << "] ";
83  }
84  s << "trailer [" << this->trailer().print(longFormat) << "] ";
85 
86  return s.str();
87  }

◆ roIVec()

const std::vector< EMTauRoI > & ROIB::EMTauResult::roIVec ( ) const

Definition at line 42 of file EMTauResult.cxx.

42  {
43  return m_EMTauResultRoIVec;
44  }

◆ trailer()

const Trailer & ROIB::EMTauResult::trailer ( ) const

Definition at line 38 of file EMTauResult.cxx.

38  {
39  return m_EMTauResultTrailer;
40  }

Member Data Documentation

◆ m_EMTauResultHeader

Header ROIB::EMTauResult::m_EMTauResultHeader
private

header fragment in LVL1 eformat

Definition at line 54 of file EMTauResult.h.

◆ m_EMTauResultRoIVec

std::vector< EMTauRoI > ROIB::EMTauResult::m_EMTauResultRoIVec
private

raw data content (RoIs)

Definition at line 56 of file EMTauResult.h.

◆ m_EMTauResultTrailer

Trailer ROIB::EMTauResult::m_EMTauResultTrailer
private

trailer fragment in LVL1 eformat

Definition at line 55 of file EMTauResult.h.


The documentation for this class was generated from the following files:
ROIB::EMTauResult::roIVec
const std::vector< EMTauRoI > & roIVec() const
Definition: EMTauResult.cxx:42
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
ROIB::Header::print
const std::string print(const bool longFormat=false) const
print object content in a human readable format to string
Definition: TrigT1Result/src/Header.cxx:80
ROIB::EMTauResult::m_EMTauResultTrailer
Trailer m_EMTauResultTrailer
trailer fragment in LVL1 eformat
Definition: EMTauResult.h:55
LVL1CTP::convertToHex
const std::string convertToHex(const uint32_t word)
helper function to dump a number in hex format
Definition: TrigT1CTPDefs.h:41
ROIB::EMTauResult::m_EMTauResultHeader
Header m_EMTauResultHeader
header fragment in LVL1 eformat
Definition: EMTauResult.h:54
ROIB::EMTauResult::trailer
const Trailer & trailer() const
Definition: EMTauResult.cxx:38
ROIB::Trailer::print
const std::string print(const bool longFormat=false) const
print object content in a human readable format to string
Definition: Trailer.cxx:56
lumiFormat.i
int i
Definition: lumiFormat.py:85
ROIB::Header::dump
const std::string dump() const
dump raw object content to string
Definition: TrigT1Result/src/Header.cxx:69
ROIB::Trailer::dump
const std::string dump() const
dump raw object content to string
Definition: Trailer.cxx:45
ROIB::EMTauResult::m_EMTauResultRoIVec
std::vector< EMTauRoI > m_EMTauResultRoIVec
raw data content (RoIs)
Definition: EMTauResult.h:56
head
std::string head(std::string s, const std::string &pattern)
head of a string
Definition: computils.cxx:311
ROIB::EMTauResult::header
const Header & header() const
Definition: EMTauResult.cxx:34
LVL1CTP
Definition: Lvl1ResultAccessTool.h:20