ATLAS Offline Software
Classes | Namespaces | Functions
TIncident.h File Reference
#include <iosfwd>
#include <Rtypes.h>
Include dependency graph for TIncident.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  xAOD::TIncident
 Class describing a certain "incident" that is communicated to user code. More...
 

Namespaces

 xAOD
 ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
 
 xAOD::IncidentType
 Namespace mirroring Gaudi's IncidentType namespace.
 

Functions

std::ostream & operator<< (std::ostream &out, const xAOD::TIncident &inc)
 Convenience print operator for xAOD::TIncident objects. More...
 

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  out,
const xAOD::TIncident inc 
)

Convenience print operator for xAOD::TIncident objects.

Definition at line 33 of file TIncident.cxx.

33  {
34 
35  // Print a prefix:
36  out << "xAOD::TIncident(";
37 
38  // Print the type of the incident:
39  switch( inc.type() ) {
40 
41  PRINT_TYPE( xAOD::IncidentType::BeginInputFile );
42  PRINT_TYPE( xAOD::IncidentType::EndInputFile );
43  PRINT_TYPE( xAOD::IncidentType::BeginEvent );
44  PRINT_TYPE( xAOD::IncidentType::MetaDataStop );
45 
46  default:
47  out << "<unknown>";
48  break;
49  }
50 
51  // Print a postfix:
52  out << ")";
53 
54  // Return the same output stream:
55  return out;
56 }
PRINT_TYPE
#define PRINT_TYPE(TYPE)
Helper macro for printing the incident types as a string.
Definition: TIncident.cxx:28
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
xAOD::TIncident::type
::Int_t type() const
Return the type of the incident.
Definition: TIncident.cxx:20