![]() |
ATLAS Offline Software
|
#include <PileUpHashHelper.h>
Public Member Functions | |
| PileUpHashHelper () | |
| void | addToHashSource (const std::string &string) |
| Add a plain string to the stream. | |
| void | addToHashSource (const xAOD::EventInfo *eventInfo) |
| Add subevents to the stream. | |
| void | clearHashSource () |
| Clear the stream. | |
| std::string | hashSource () const |
| Get the current hash base. | |
| void | calculateHash (uuid_t &hash) const |
| Calculate the hash. | |
Static Public Member Functions | |
| static xAOD::EventInfo::PileUpMixtureID | uuidToPileUpMixtureId (const uuid_t &hash) |
| Convert uuid_t to xAOD::EventInfo::PileUpMixtureID. | |
| static void | pileUpMixtureIdToUuid (const xAOD::EventInfo::PileUpMixtureID &mixture, uuid_t &hash) |
| xAOD::EventInfo::PileUpMixtureID to uuid_t | |
Static Public Attributes | |
| static const uint16_t | PILEUP_SIZE_BYTES = 8 |
| Size of individual low/high bits in bytes. | |
Private Attributes | |
| std::stringstream | m_stream |
Definition at line 20 of file PileUpHashHelper.h.
|
inline |
Definition at line 23 of file PileUpHashHelper.h.
| void PileUpHashHelper::addToHashSource | ( | const std::string & | string | ) |
| void PileUpHashHelper::addToHashSource | ( | const xAOD::EventInfo * | eventInfo | ) |
Add subevents to the stream.
Definition at line 16 of file PileUpHashHelper.cxx.
| void PileUpHashHelper::calculateHash | ( | uuid_t & | hash | ) | const |
Calculate the hash.
Definition at line 49 of file PileUpHashHelper.cxx.
| void PileUpHashHelper::clearHashSource | ( | ) |
Clear the stream.
Definition at line 44 of file PileUpHashHelper.cxx.
|
inline |
|
static |
xAOD::EventInfo::PileUpMixtureID to uuid_t
Definition at line 69 of file PileUpHashHelper.cxx.
|
static |
Convert uuid_t to xAOD::EventInfo::PileUpMixtureID.
Definition at line 57 of file PileUpHashHelper.cxx.
|
private |
Definition at line 51 of file PileUpHashHelper.h.
|
static |
Size of individual low/high bits in bytes.
Definition at line 48 of file PileUpHashHelper.h.