ATLAS Offline Software
Namespaces | Macros | Functions
TIncident.cxx File Reference
#include <iostream>
#include "xAODRootAccess/tools/TIncident.h"
Include dependency graph for TIncident.cxx:

Go to the source code of this file.

Namespaces

 xAOD
 ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
 

Macros

#define PRINT_TYPE(TYPE)
 Helper macro for printing the incident types as a string. More...
 

Functions

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

Macro Definition Documentation

◆ PRINT_TYPE

#define PRINT_TYPE (   TYPE)
Value:
case TYPE: \
out << #TYPE; \
break;

Helper macro for printing the incident types as a string.

Definition at line 29 of file TIncident.cxx.

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
TYPE
#define TYPE(CODE, TYP, IOTYP)