10 ISvcLocator *pSvcLocator)
16 std::uint64_t
h = offset_basis;
17 const unsigned char *p =
static_cast<const unsigned char *
>(buffer);
18 for (
size_t i = 0; i < size; i++) {
43 ANA_MSG_ERROR(
"The number of bootstrapped weights (toys) cannot be negative!");
44 return StatusCode::FAILURE;
51 return StatusCode::SUCCESS;
76 return StatusCode::SUCCESS;
Header file for AthHistogramAlgorithm.
SysListHandle m_systematicsList
the systematics list we run
BootstrapGeneratorAlg(const std::string &name, ISvcLocator *pSvcLocator)
the standard constructor
StatusCode execute() override
std::vector< std::uint8_t > m_weights
the vector of bootstrap replica weights
Gaudi::Property< int > m_nReplicas
the number of bootstrap replicas
BootstrapGenerator m_bootstrap
the bootstrap generator instance
SysWriteDecorHandle< std::vector< std::uint8_t > > m_decoration
the output decoration
SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
the EventInfo container
Gaudi::Property< bool > m_data
flag whether we are running on data
StatusCode initialize() override
std::uint64_t fnv1a_64(const void *buffer, size_t size, std::uint64_t offset_basis)
implementation of the hash function from https://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo...
void setSeed(std::uint64_t eventNumber, std::uint32_t runNumber, std::uint32_t mcChannelNumber)
set the seed of the random number generator based on event properties
static constexpr std::uint64_t m_offset
constants for seed generation
TRandomRanluxpp m_rng
the random number generator (Ranlux++)
static constexpr std::uint64_t m_prime
std::uint64_t generateSeed(std::uint64_t eventNumber, std::uint32_t runNumber, std::uint32_t mcChannelNumber)
generate a unique seed based on event identifiers
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
uint32_t runNumber() const
The current event's run number.
uint32_t mcChannelNumber() const
The MC generator's channel number.
uint64_t eventNumber() const
The current event's event number.
This module defines the arguments passed from the BATCH driver to the BATCH worker.
EventInfo_v1 EventInfo
Definition of the latest event info version.