ATLAS Offline Software
Loading...
Searching...
No Matches
PrintHelpers.h File Reference
#include <concepts>
#include <iosfwd>
#include <format>
Include dependency graph for PrintHelpers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  std::formatter< T >

Namespaces

namespace  SG
 Forward declaration.
namespace  xAOD
 ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
namespace  std
 STL namespace.

Functions

std::ostream & operator<< (std::ostream &out, const SG::AuxElement &obj)
 Operator printing the payload of an xAOD object.
void xAOD::dump (const SG::AuxElement &obj)
 Helper function for dumping xAOD objects on the screen in PyROOT.
std::string xAOD::toString (const SG::AuxElement &obj)

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream & out,
const SG::AuxElement & obj )

Operator printing the payload of an xAOD object.

This function can be used to quickly get an idea about the payload held by any type of xAOD object. It prints the type and name of each auxiliary variable associated with the object. And for some simple types (primitives and some vectors of primitives) it even prints the values of these variables.

Parameters
outThe stream to write the information to
objThe object to write the information about
Returns
The same stream object that was given to the function

Definition at line 40 of file PrintHelpers.cxx.

40 {
41 std::print( out, "{}", xAOD::toString( obj ) );
42 return out;
43}
std::string toString(const SG::AuxElement &obj)