Belle II Software development
CountContainer::AcceptRejectPair Struct Reference

simple struct for counting accepted and rejected cases. More...

Public Member Functions

void Increase (bool accepted)
 Increase respective counter if accepted or not.
 

Public Attributes

unsigned accept
 counts nTimes when it was accepted
 
unsigned reject
 counts nTimes when it was rejected
 

Detailed Description

simple struct for counting accepted and rejected cases.

Definition at line 221 of file observers.cc.

Constructor & Destructor Documentation

◆ AcceptRejectPair()

AcceptRejectPair ( )
inline

Definition at line 222 of file observers.cc.

222: accept(0), reject(0) {}
unsigned reject
counts nTimes when it was rejected
Definition: observers.cc:237
unsigned accept
counts nTimes when it was accepted
Definition: observers.cc:236

Member Function Documentation

◆ Increase()

void Increase ( bool  accepted)
inline

Increase respective counter if accepted or not.

Parameters
accepted: bool indicating if accepted or not

Definition at line 227 of file observers.cc.

228 {
229 if (accepted) {
230 accept += 1;
231 } else {
232 reject += 1;
233 }
234 }

Member Data Documentation

◆ accept

unsigned accept

counts nTimes when it was accepted

Definition at line 236 of file observers.cc.

◆ reject

unsigned reject

counts nTimes when it was rejected

Definition at line 237 of file observers.cc.


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