ATLAS Offline Software
Loading...
Searching...
No Matches
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.
template<typename T>
std::ostream & operator<< (std::ostream &out, const std::vector< T > &vec)
 Convenience operator for printing the contents of vectors.
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.

Variables

static const SG::AuxElement::Accessor< uint64_t > accEvNum ("eventNumber")
static const SG::AuxElement::Accessor< uint64_t > accMcEvNum ("mcEventNumber")
static const SG::AuxElement::Accessor< uint64_t > accLow ("pileUpMixtureIDLowBits")
static const SG::AuxElement::Accessor< uint64_t > accHigh ("pileUpMixtureIDHighBits")

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 }
std::vector< size_t > vec

◆ 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 }

Variable Documentation

◆ accEvNum

const SG::AuxElement::Accessor< uint64_t > xAODEventInfoPrivate::accEvNum("eventNumber") ( "eventNumber" )
static

◆ accHigh

const SG::AuxElement::Accessor< uint64_t > xAODEventInfoPrivate::accHigh("pileUpMixtureIDHighBits") ( "pileUpMixtureIDHighBits" )
static

◆ accLow

const SG::AuxElement::Accessor< uint64_t > xAODEventInfoPrivate::accLow("pileUpMixtureIDLowBits") ( "pileUpMixtureIDLowBits" )
static

◆ accMcEvNum

const SG::AuxElement::Accessor< uint64_t > xAODEventInfoPrivate::accMcEvNum("mcEventNumber") ( "mcEventNumber" )
static