53 if(!event.retrieveMetaInput(incompleteCBC,
"IncompleteCutBookkeepers").isSuccess()){
54 throw std::runtime_error(
"Failed to retrieve IncompleteCutBookkeepers from MetaData!");
56 counts.nIncomplete = incompleteCBC->
size();
60 if(!event.retrieveMetaInput(completeCBC,
"CutBookkeepers").isSuccess()){
61 throw std::runtime_error(
"Failed to retrieve CutBookkeepers from MetaData!");
67 for (
const auto *cbk: *completeCBC) {
68 if (cbk->cycle() > maxCycle &&
69 cbk->name() ==
"AllExecutedEvents" &&
70 cbk->inputStream() ==
"StreamAOD") {
72 maxCycle = cbk->cycle();
OriginalAodCounts getOriginalAodCounts(xAOD::TEvent &event, const AodCountsConfig &)
OriginalAodCounts operator+(const OriginalAodCounts &a, const OriginalAodCounts &b)
size_type size() const noexcept
Returns the number of elements in the collection.
double sumOfEventWeightsSquared() const
Get the sum-of-(event-weights-squared) that this CutBookkeeper has seen.
double sumOfEventWeights() const
Get the sum-of-event-weights that this CutBookkeeper has seen.
uint64_t nAcceptedEvents() const
Get the number of accepted events that this CutBookkeeper has seen.
Tool for accessing xAOD files outside of Athena.
CutBookkeeper_v1 CutBookkeeper
Define the latest version of the CutBookkeeper class.
CutBookkeeperContainer_v1 CutBookkeeperContainer
Define the latest version of the CutBookkeeperContainer class.
OriginalAodCounts & operator+=(const OriginalAodCounts &a)
unsigned long long nEventsProcessed
double sumOfWeightsSquared