ATLAS Offline Software
Loading...
Searching...
No Matches
xAOD::CutBookkeeper_v1::Payload Struct Reference

Add struct for payload and implement operator ,/....=,... More...

#include <CutBookkeeper_v1.h>

Collaboration diagram for xAOD::CutBookkeeper_v1::Payload:

Public Member Functions

Payload operator+ (const Payload &rhs)
Payloadoperator+= (const Payload &rhs)

Public Attributes

uint64_t nAcceptedEvents
double sumOfEventWeights
double sumOfEventWeightsSquared

Detailed Description

Add struct for payload and implement operator ,/....=,...

Definition at line 46 of file CutBookkeeper_v1.h.

Member Function Documentation

◆ operator+()

Payload xAOD::CutBookkeeper_v1::Payload::operator+ ( const Payload & rhs)
inline

Definition at line 48 of file CutBookkeeper_v1.h.

48 {
49 Payload result;
50 result.nAcceptedEvents = this->nAcceptedEvents + rhs.nAcceptedEvents;
51 result.sumOfEventWeights = this->sumOfEventWeights + rhs.sumOfEventWeights;
52 result.sumOfEventWeightsSquared = this->sumOfEventWeightsSquared + rhs.sumOfEventWeightsSquared;
53 return result;
54 }

◆ operator+=()

Payload & xAOD::CutBookkeeper_v1::Payload::operator+= ( const Payload & rhs)
inline

Definition at line 56 of file CutBookkeeper_v1.h.

56 {
57 this->nAcceptedEvents += rhs.nAcceptedEvents;
58 this->sumOfEventWeights += rhs.sumOfEventWeights;
59 this->sumOfEventWeightsSquared += rhs.sumOfEventWeightsSquared;
60 return *this;
61 }

Member Data Documentation

◆ nAcceptedEvents

uint64_t xAOD::CutBookkeeper_v1::Payload::nAcceptedEvents

Definition at line 64 of file CutBookkeeper_v1.h.

◆ sumOfEventWeights

double xAOD::CutBookkeeper_v1::Payload::sumOfEventWeights

Definition at line 65 of file CutBookkeeper_v1.h.

◆ sumOfEventWeightsSquared

double xAOD::CutBookkeeper_v1::Payload::sumOfEventWeightsSquared

Definition at line 66 of file CutBookkeeper_v1.h.


The documentation for this struct was generated from the following file: