Belle II Software development
TOPHitRateCounter::TreeStruct Struct Reference

tree structure More...

#include <TOPHitRateCounter.h>

Public Member Functions

void normalize ()
 normalize accumulated hits to single event
 

Public Attributes

float slotRates [16] = {0}
 hit rates per PMT of the modules (slots) [MHz]
 
float averageRate = 0
 average hit rate per PMT [MHz]
 
int numEvents = 0
 number of events accumulated
 
bool valid = false
 status: true = rates valid
 

Detailed Description

tree structure

Definition at line 40 of file TOPHitRateCounter.h.

Member Function Documentation

◆ normalize()

void normalize ( )
inline

normalize accumulated hits to single event

Definition at line 49 of file TOPHitRateCounter.h.

50 {
51 if (numEvents == 0) return;
52 for (auto& slotRate : slotRates) slotRate /= numEvents;
54 }
float slotRates[16]
hit rates per PMT of the modules (slots) [MHz]
float averageRate
average hit rate per PMT [MHz]

Member Data Documentation

◆ averageRate

float averageRate = 0

average hit rate per PMT [MHz]

Definition at line 42 of file TOPHitRateCounter.h.

◆ numEvents

int numEvents = 0

number of events accumulated

Definition at line 43 of file TOPHitRateCounter.h.

◆ slotRates

float slotRates[16] = {0}

hit rates per PMT of the modules (slots) [MHz]

Definition at line 41 of file TOPHitRateCounter.h.

◆ valid

bool valid = false

status: true = rates valid

Definition at line 44 of file TOPHitRateCounter.h.


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