#include <PileUpHashHelper.h>
Definition at line 20 of file PileUpHashHelper.h.
◆ PileUpHashHelper()
PileUpHashHelper::PileUpHashHelper |
( |
| ) |
|
|
inline |
◆ addToHashSource() [1/2]
void PileUpHashHelper::addToHashSource |
( |
const std::string & |
string | ) |
|
◆ addToHashSource() [2/2]
Add subevents to the stream.
Definition at line 16 of file PileUpHashHelper.cxx.
18 const std::vector<xAOD::EventInfo::SubEvent> &subEventsSource = eventInfo->
subEvents();
19 std::vector<std::reference_wrapper<const xAOD::EventInfo::SubEvent>> subEvents(subEventsSource.begin(), subEventsSource.end());
22 return (a.ptr()->bcid() < b.ptr()->bcid()) ||
23 ((a.ptr()->bcid() == b.ptr()->bcid()) && (a.type() < b.type())) ||
24 ((a.ptr()->bcid() == b.ptr()->bcid()) && (a.type() == b.type()) && (a.ptr()->eventNumber() < b.ptr()->eventNumber()));
40 m_stream << (static_cast<int32_t>(subevent.ptr()->bcid()) -
static_cast<int32_t
>(eventInfo->
bcid())) <<
"_" << subevent.type() <<
"_" << subevent.ptr()->eventNumber();
◆ calculateHash()
void PileUpHashHelper::calculateHash |
( |
uuid_t & |
hash | ) |
const |
◆ clearHashSource()
void PileUpHashHelper::clearHashSource |
( |
| ) |
|
◆ hashSource()
std::string PileUpHashHelper::hashSource |
( |
| ) |
const |
|
inline |
◆ pileUpMixtureIdToUuid()
◆ uuidToPileUpMixtureId()
Convert uuid_t to xAOD::EventInfo::PileUpMixtureID.
Definition at line 57 of file PileUpHashHelper.cxx.
62 mixture.
lowBits |= (
static_cast<unsigned long long>(
hash[
i]) << (
i *
sizeof(
unsigned char) * CHAR_BIT));
63 mixture.highBits |= (
static_cast<unsigned long long>(
hash[
i +
PILEUP_SIZE_BYTES]) << (
i *
sizeof(
unsigned char) * CHAR_BIT));
◆ m_stream
std::stringstream PileUpHashHelper::m_stream |
|
private |
◆ PILEUP_SIZE_BYTES
const uint16_t PileUpHashHelper::PILEUP_SIZE_BYTES = 8 |
|
static |
The documentation for this class was generated from the following files:
void stable_sort(std::reverse_iterator< DataModel_detail::iterator< DVL > > beg, std::reverse_iterator< DataModel_detail::iterator< DVL > > end, Compare comp)
Specialization of stable_sort for DataVector/List.