Belle II Software development
KLMHitRateCounter::TreeStruct Struct Reference

Tree data structure. More...

#include <KLMHitRateCounter.h>

Public Member Functions

void normalize ()
 Normalize accumulated hits to single event.
 

Public Attributes

float moduleRates [KLMElementNumbers::getTotalModuleNumber()] = {0}
 Hit rates in each module.
 
float averageRate = 0
 Total detector average hit rate.
 
int numEvents = 0
 Number of accumulated events.
 
bool valid = false
 Whether the rates are valid.
 

Detailed Description

Tree data structure.

Definition at line 44 of file KLMHitRateCounter.h.

Member Function Documentation

◆ normalize()

void normalize ( )
inline

Normalize accumulated hits to single event.

Definition at line 61 of file KLMHitRateCounter.h.

62 {
63 if (numEvents == 0)
64 return;
65 for (int i = 0; i < KLMElementNumbers::getTotalModuleNumber(); ++i)
68 }
static constexpr int getTotalModuleNumber()
Get total number of modules.
float moduleRates[KLMElementNumbers::getTotalModuleNumber()]
Hit rates in each module.
float averageRate
Total detector average hit rate.

Member Data Documentation

◆ averageRate

float averageRate = 0

Total detector average hit rate.

Definition at line 50 of file KLMHitRateCounter.h.

◆ moduleRates

float moduleRates[KLMElementNumbers::getTotalModuleNumber()] = {0}

Hit rates in each module.

Definition at line 47 of file KLMHitRateCounter.h.

◆ numEvents

int numEvents = 0

Number of accumulated events.

Definition at line 53 of file KLMHitRateCounter.h.

◆ valid

bool valid = false

Whether the rates are valid.

Definition at line 56 of file KLMHitRateCounter.h.


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