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

#include <JetEnergyResult.h>

Collaboration diagram for ROIB::JetEnergyResult:

Public Member Functions

 JetEnergyResult (Header &&, Trailer &&, std::vector< JetEnergyRoI > &&)
 
 JetEnergyResult ()
 
const Headerheader () const
 
const Trailertrailer () const
 
const std::vector< JetEnergyRoI > & 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_JetEnergyResultHeader
 header fragment in LVL1 eformat More...
 
Trailer m_JetEnergyResultTrailer
 trailer fragment in LVL1 eformat More...
 
std::vector< JetEnergyRoIm_JetEnergyResultRoIVec
 raw data content (RoIs) More...
 

Detailed Description

Definition at line 24 of file JetEnergyResult.h.

Constructor & Destructor Documentation

◆ JetEnergyResult() [1/2]

ROIB::JetEnergyResult::JetEnergyResult ( Header &&  head,
Trailer &&  trail,
std::vector< JetEnergyRoI > &&  roIVector 
)

Definition at line 19 of file JetEnergyResult.cxx.

20  : m_JetEnergyResultHeader( std::move(head) ), m_JetEnergyResultTrailer( std::move(trail) ),
21  m_JetEnergyResultRoIVec( std::move(roIVector) ) {
22 
23  }

◆ JetEnergyResult() [2/2]

ROIB::JetEnergyResult::JetEnergyResult ( )

Definition at line 25 of file JetEnergyResult.cxx.

Member Function Documentation

◆ dump()

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

dump raw object content to string

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

Definition at line 43 of file JetEnergyResult.cxx.

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

◆ header()

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

Definition at line 31 of file JetEnergyResult.cxx.

31  {
33  }

◆ print()

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

print object content in a human readable format to string

Definition at line 58 of file JetEnergyResult.cxx.

59  {
60  std::ostringstream s;
61 
62  s << "\n header [" << this->header().print(longFormat) << "] ";
63  if (longFormat) s << std::endl;
64 
65  for (std::vector<JetEnergyRoI>::size_type i(0); i < roIVec().size(); ++i) {
66 
67  unsigned int type = roIVec()[i].roIType();
68 
69  if (i == 0 || longFormat) s << "data";
70  if (longFormat) s << "[" << std::setw(2) << i << "]";
71 
72  s << " [";
73  if (longFormat) s << LVL1CTP::convertToHex(roIVec()[i].roIWord());
74  if (longFormat) s << std::setw(12) << "\n Type: ";
75  s << " " << type;
76  if (longFormat) s << std::setw(12) << "\n ID: ";
77  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();
83  if (longFormat) s << std::setw(12) << "\n jetEt: ";
84  s << " " << roIVec()[i].jetEt();
86  if (longFormat) s << std::setw(12) << "\n energyX: ";
87  s << " " << roIVec()[i].energyX();
89  if (longFormat) s << std::setw(12) << "\n energyY: ";
90  s << " " << roIVec()[i].energyY();
91  if (longFormat) s << std::setw(12) << "\n etSumThresholds: ";
92  using namespace LVL1CTP; // for importing operator<<
93  s << " " << roIVec()[i].etSumThresholds();
95  if (longFormat) s << std::setw(12) << "\n energySum: ";
96  s << " " << roIVec()[i].energySum();
97  if (longFormat) s << std::setw(12) << "\n etMissThresholds: ";
98  using namespace LVL1CTP; // for importing operator<<
99  s << " " << roIVec()[i].etMissThresholds();
100  }
101  s << "] ";
102  }
103  s << "trailer [" << this->trailer().print(longFormat) << "] ";
104 
105  return s.str();
106  }

◆ roIVec()

const std::vector< JetEnergyRoI > & ROIB::JetEnergyResult::roIVec ( ) const

Definition at line 39 of file JetEnergyResult.cxx.

39  {
41  }

◆ trailer()

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

Definition at line 35 of file JetEnergyResult.cxx.

35  {
37  }

Member Data Documentation

◆ m_JetEnergyResultHeader

Header ROIB::JetEnergyResult::m_JetEnergyResultHeader
private

header fragment in LVL1 eformat

Definition at line 47 of file JetEnergyResult.h.

◆ m_JetEnergyResultRoIVec

std::vector< JetEnergyRoI > ROIB::JetEnergyResult::m_JetEnergyResultRoIVec
private

raw data content (RoIs)

Definition at line 49 of file JetEnergyResult.h.

◆ m_JetEnergyResultTrailer

Trailer ROIB::JetEnergyResult::m_JetEnergyResultTrailer
private

trailer fragment in LVL1 eformat

Definition at line 48 of file JetEnergyResult.h.


The documentation for this class was generated from the following files:
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
LVL1::TrigT1CaloDefs::JetEtRoIWordType
@ JetEtRoIWordType
Definition: TrigT1CaloDefs.h:169
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::JetEnergyResult::roIVec
const std::vector< JetEnergyRoI > & roIVec() const
Definition: JetEnergyResult.cxx:39
LVL1CTP::convertToHex
const std::string convertToHex(const uint32_t word)
helper function to dump a number in hex format
Definition: TrigT1CTPDefs.h:41
ROIB::JetEnergyResult::m_JetEnergyResultRoIVec
std::vector< JetEnergyRoI > m_JetEnergyResultRoIVec
raw data content (RoIs)
Definition: JetEnergyResult.h:49
LVL1::TrigT1CaloDefs::EnergyRoIWordType1
@ EnergyRoIWordType1
Definition: TrigT1CaloDefs.h:171
LVL1::TrigT1CaloDefs::EnergyRoIWordType2
@ EnergyRoIWordType2
Definition: TrigT1CaloDefs.h:172
LVL1::TrigT1CaloDefs::EnergyRoIWordType0
@ EnergyRoIWordType0
Definition: TrigT1CaloDefs.h:170
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::JetEnergyResult::m_JetEnergyResultTrailer
Trailer m_JetEnergyResultTrailer
trailer fragment in LVL1 eformat
Definition: JetEnergyResult.h:48
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::JetEnergyResult::header
const Header & header() const
Definition: JetEnergyResult.cxx:31
ROIB::JetEnergyResult::m_JetEnergyResultHeader
Header m_JetEnergyResultHeader
header fragment in LVL1 eformat
Definition: JetEnergyResult.h:47
head
std::string head(std::string s, const std::string &pattern)
head of a string
Definition: computils.cxx:311
LVL1::TrigT1CaloDefs::JetRoIWordType
@ JetRoIWordType
Definition: TrigT1CaloDefs.h:168
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
LVL1CTP
Definition: Lvl1ResultAccessTool.h:20
ROIB::JetEnergyResult::trailer
const Trailer & trailer() const
Definition: JetEnergyResult.cxx:35