ATLAS Offline Software
Loading...
Searching...
No Matches
PU1SuppPortsIn.h File Reference

Defines the data structure for PU1 Suppression algorithm inputs. More...

#include <array>
#include <cstdint>
#include <iosfwd>
#include <string>
#include <vector>
#include "AthenaKernel/CLASS_DEF.h"
Include dependency graph for PU1SuppPortsIn.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  GlobalSim::PU1SuppPortsIn
 Data structure representing a single PU1 suppression input. More...

Namespaces

namespace  GlobalSim
 AlgTool to read in LArStripNeighborhoods, and run the eRatio Algorithm.

Typedefs

using GlobalSim::GepAlgoPU1SuppFIFO = std::vector<PU1SuppPortsIn>
 FIFO container of PU1 suppression inputs.

Functions

std::ostream & operator<< (std::ostream &, const GlobalSim::PU1SuppPortsIn &)
 Output stream operator for easy logging/debug printing.

Detailed Description

Defines the data structure for PU1 Suppression algorithm inputs.

This file declares the PU1SuppPortsIn struct used to encapsulate a single event's input to the PU1 Suppression algorithm, including a 256-bit TOB (as a hex string) and an associated rho value.

Definition in file PU1SuppPortsIn.h.

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream & os,
const GlobalSim::PU1SuppPortsIn & ports_in )

Output stream operator for easy logging/debug printing.

Definition at line 14 of file PU1SuppPortsIn.cxx.

15 {
16 std::ios_base::fmtflags original_flags = os.flags();
17 char original_fill = os.fill();
18
19 os << "PU1 TOB: ";
20 for (int i = 0; i < 4; ++i) {
21 os << std::hex << std::setw(16) << std::setfill('0')
22 << ports_in.m_I_PU1TobData[i];
23 }
24 os << " (rho: " << ports_in.m_rho << ")";
25
26 os.flags(original_flags);
27 os.fill(original_fill);
28
29 return os;
30}
uint16_t m_rho
Rho value as a 16-bit initialized unsigned integer.
std::array< uint64_t, 4 > m_I_PU1TobData
256-bit TOB stored as four 64-bit unsigned integers