14#include "GaudiKernel/Bootstrap.h"
15#include "GaudiKernel/ISvcLocator.h"
16#include "GaudiKernel/IMessageSvc.h"
17#include "GaudiKernel/MsgStream.h"
24 std::vector< JetEnergyResult >&& jetEnergy,
25 std::vector< EMTauResult >&& emtau )
35 std::vector< EMTauResult >&& emtau,
36 std::vector< JetEnergyResult >&& jetEnergy )
84 for (std::vector< EMTauResult >::size_type i(0); i <
eMTauResult().size(); ++i) {
85 s <<
"EMTauResult [" <<
eMTauResult()[i].dump() <<
"] ";
87 for (std::vector< JetEnergyResult >::size_type i(0); i <
jetEnergyResult().size(); ++i) {
93 s <<
"L1TopoResult [" << elem.dump() <<
"] ";
100 std::ostringstream s;
102 for (std::vector< EMTauResult >::size_type i(0); i <
eMTauResult().size(); ++i) {
103 if (i == 0 || longFormat) s <<
"\n EMTauResult ";
104 if (longFormat) s << std::setw(2) << i;
106 if (longFormat) s << std::endl;
108 for (std::vector< JetEnergyResult >::size_type i(0); i <
jetEnergyResult().size(); ++i) {
109 if (i == 0 || longFormat) s <<
"\n JetEnergyResult ";
110 if (longFormat) s << std::setw(2) << i;
112 if (longFormat) s << std::endl;
115 if (longFormat) s << std::endl;
117 if (longFormat) s << std::endl;
119 s <<
"L1TopoResult [" << elem.dump() <<
"] ";
121 if (longFormat) s << std::endl;
128 SmartIF<IMessageSvc> msgSvc{Gaudi::svcLocator()->service(
"MessageSvc")};
132 MsgStream log(msgSvc,
"RoIBResult");
138 log << MSG::DEBUG <<
"=================================================" <<
endmsg;
139 log << MSG::DEBUG <<
"Dump of available RoIB Results" <<
endmsg;
142 log << MSG::DEBUG <<
"=================================================" <<
endmsg;
147 const static unsigned int LRS_bitMask = 1 << 1;
148 const static unsigned int SOFL_bitMask = 1 << 19;
150 unsigned int overflowMask = 0;
158 overflowMask |= ((statusInfo & LRS_bitMask) != 0)?
MU_DOFL : 0;
162 overflowMask |= ((statusInfo & SOFL_bitMask) != 0)?
MU_SUP2 : 0;
169 const Trailer &trailer = item.trailer();
172 overflowMask |= ((statusInfo & LRS_bitMask) != 0)?
emLink[link] : 0;
183 const Trailer &trailer = item.trailer();
186 overflowMask |= ((statusInfo & LRS_bitMask) != 0)?
jLink[link] : 0;
Class holding the LVL1 CTP result used by the RoIBuilder.
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
Class holding the RoIs from the MuCTPI collected by the RoIB.
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::vector< JetEnergyResult > m_RoIBResultJetEnergy
result from calo system: JetEnergy
MuCTPIResult m_RoIBResultMuCTPI
result from muon system
std::vector< L1TopoResult > m_RoIBResultL1Topo
result from L1Topo
const std::vector< L1TopoResult > & l1TopoResult() const
Gets the L1Topo part of the L1 RDO.
void dumpData() const
print object content to default message stream
const std::vector< JetEnergyResult > & jetEnergyResult() const
Gets the jet/energy part of the L1 RDO.
const std::string print(const bool longFormat=false) const
print object content in a human readable format to string
static constexpr unsigned int emLink[4]
CTPResult m_RoIBResultCTP
result from CTP
const CTPResult & cTPResult() const
Gets the CTP part of the L1 RDO.
unsigned int GetOverflowMask(bool setMu, bool setEM, bool setJE) const
RoIBResult()=default
default constructor: empty object
static constexpr unsigned int jLink[2]
static constexpr unsigned int SUP1_bitMask
const std::vector< EMTauResult > & eMTauResult() const
Gets the egamma part of the L1 RDO.
const std::string dump() const
dump raw object content to string
std::vector< EMTauResult > m_RoIBResultEMTau
result from calo system: EmTauResult
const MuCTPIResult & muCTPIResult() const
Gets the MuCTPI part of the L1 RDO.
ROIB::Trailer models the LVL1 ROD Trailer.
uint32_t statusInfo() const
get info status word (LVL1 trailer assumes only on word)
Namespace of the LVL1 RoIB simulation.