ATLAS Offline Software
Functions
xAODEventInfoPrivate Namespace Reference

Functions

template<typename T >
std::ostream & operator<< (std::ostream &out, const std::set< T > &s)
 Convenience operator for printing the contents of sets. More...
 
template<typename T >
std::ostream & operator<< (std::ostream &out, const std::vector< T > &vec)
 Convenience operator for printing the contents of vectors. More...
 
void pileupUnsetHook ()
 Function that would be possible to use to debug what client is trying to access pileup values from an xAOD::EventInfo object, before they would have been set. More...
 

Function Documentation

◆ operator<<() [1/2]

template<typename T >
std::ostream & xAODEventInfoPrivate::operator<< ( std::ostream &  out,
const std::set< T > &  s 
)

Convenience operator for printing the contents of sets.

Definition at line 49 of file EventInfo_v1.cxx.

49  {
50 
51  return out << std::vector< T >( begin( s ), end( s ) );
52  }

◆ operator<<() [2/2]

template<typename T >
std::ostream& xAODEventInfoPrivate::operator<< ( std::ostream &  out,
const std::vector< T > &  vec 
)

Convenience operator for printing the contents of vectors.

Definition at line 34 of file EventInfo_v1.cxx.

34  {
35 
36  out << "[";
37  for( size_t i = 0; i < vec.size(); ++i ) {
38  out << vec[ i ];
39  if( i != ( vec.size() - 1 ) ) {
40  out << ", ";
41  }
42  }
43  out << "]";
44  return out;
45  }

◆ pileupUnsetHook()

void xAODEventInfoPrivate::pileupUnsetHook ( )

Function that would be possible to use to debug what client is trying to access pileup values from an xAOD::EventInfo object, before they would have been set.

Definition at line 57 of file EventInfo_v1.cxx.

57  {
58  static std::atomic< bool > uninitPileupAccessPrinted = false;
59  if( ! uninitPileupAccessPrinted ) {
60  std::cout << "xAOD::EventInfo WARNING Uninitialised pileup value was "
61  "accessed.\n"
62  " Debug it by breaking on "
63  "xAODEventInfoPrivate::pileupUnsetHook function calls!"
64  << std::endl;
65  uninitPileupAccessPrinted = true;
66  }
67  return;
68  }
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
PlotCalibFromCool.begin
begin
Definition: PlotCalibFromCool.py:94
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
vec
std::vector< size_t > vec
Definition: CombinationsGeneratorTest.cxx:12
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
lumiFormat.i
int i
Definition: lumiFormat.py:85