Belle II Software development
CDCHitRateCounter::TreeStruct Struct Reference

tree structure More...

#include <CDCHitRateCounter.h>

Public Member Functions

 TreeStruct ()
 constructor
 
void normalize ()
 normalize accumulated hits to hit rate in kHz
 

Public Attributes

float averageRate = 0
 total detector average hit rate in KHz
 
float superLayerHitRate [f_nSuperLayer] = {0}
 SuperLayer average hit rate in kHz.
 
float layerHitRate [f_nLayer] = {0}
 Layer average hit rate in kHz.
 
float layerPhiHitRate [f_nLayer][f_nPhiDivision] = {{0}}
 Layer (in the phi bin) average hit rate in kHz.
 
int timeWindowForSmallCell = -1
 time window for the small cells in 2*508.887 MHz clock ( 1 clock = 0.982536 ns)
 
int timeWindowForNormalCell = -1
 time window for the normal cells in 2*508.887 MHz clock ( 1 clock = 0.982536 ns)
 
int nActiveWireInTotal = 0
 number of wires used in this analysis in the whole CDC
 
int nActiveWireInSuperLayer [f_nSuperLayer] = {0}
 number of wires used in this analysis in each super layer
 
int nActiveWireInLayer [f_nLayer] = {0}
 number of wires used in this analysis in each layer
 
int nActiveWireInLayerPhi [f_nLayer][f_nPhiDivision] = {{0}}
 number of wires used in this analysis in each phi bin in each layer
 
int numEvents = 0
 number of events accumulated
 
bool valid = false
 status: true = rates valid
 

Detailed Description

tree structure

Definition at line 40 of file CDCHitRateCounter.h.

Constructor & Destructor Documentation

◆ TreeStruct()

TreeStruct ( )
inline

constructor

Definition at line 59 of file CDCHitRateCounter.h.

60 {
61 for (int i = 0 ; i < f_nLayer ; ++i) {
62 for (int j = 0 ; j < f_nPhiDivision ; ++j) {
63 layerPhiHitRate[i][j] = 0;
64 nActiveWireInLayerPhi[i][j] = 0;
65 }
66 }
67 }
static const int f_nLayer
the number of layers
static const int f_nPhiDivision
the number of division in phi
float layerPhiHitRate[f_nLayer][f_nPhiDivision]
Layer (in the phi bin) average hit rate in kHz.
int nActiveWireInLayerPhi[f_nLayer][f_nPhiDivision]
number of wires used in this analysis in each phi bin in each layer

Member Function Documentation

◆ normalize()

void normalize ( )
inline

normalize accumulated hits to hit rate in kHz

Definition at line 72 of file CDCHitRateCounter.h.

73 {
74 if (numEvents == 0) return;
75 averageRate /= (numEvents * timeWindowForNormalCell * 0.982536 * 1e-6);
76
77 for (int iSL = 0 ; iSL < f_nSuperLayer ; ++iSL) {
78 if (iSL == 0)
79 superLayerHitRate[iSL] /= (numEvents * timeWindowForSmallCell * 0.982536 * 1e-6);
80 else
81 superLayerHitRate[iSL] /= (numEvents * timeWindowForNormalCell * 0.982536 * 1e-6);
82 }
83
84 for (int iL = 0 ; iL < f_nLayer ; ++iL) {
85 if (iL <= 7) {
86 layerHitRate[iL] /= (numEvents * timeWindowForSmallCell * 0.982536 * 1e-6);
87 for (int iPhi = 0 ; iPhi < f_nPhiDivision ; ++iPhi)
88 layerPhiHitRate[iL][iPhi] /= (numEvents * timeWindowForSmallCell * 0.982536 * 1e-6);
89 } else {
90 layerHitRate[iL] /= (numEvents * timeWindowForNormalCell * 0.982536 * 1e-6);
91 for (int iPhi = 0 ; iPhi < f_nPhiDivision ; ++iPhi)
92 layerPhiHitRate[iL][iPhi] /= (numEvents * timeWindowForNormalCell * 0.982536 * 1e-6);
93 }
94 }
95 }
static const int f_nSuperLayer
the number of super layers
float superLayerHitRate[f_nSuperLayer]
SuperLayer average hit rate in kHz.
float layerHitRate[f_nLayer]
Layer average hit rate in kHz.
float averageRate
total detector average hit rate in KHz
int timeWindowForSmallCell
time window for the small cells in 2*508.887 MHz clock ( 1 clock = 0.982536 ns)
int timeWindowForNormalCell
time window for the normal cells in 2*508.887 MHz clock ( 1 clock = 0.982536 ns)

Member Data Documentation

◆ averageRate

float averageRate = 0

total detector average hit rate in KHz

Definition at line 41 of file CDCHitRateCounter.h.

◆ layerHitRate

float layerHitRate[f_nLayer] = {0}

Layer average hit rate in kHz.

Definition at line 43 of file CDCHitRateCounter.h.

◆ layerPhiHitRate

float layerPhiHitRate[f_nLayer][f_nPhiDivision] = {{0}}

Layer (in the phi bin) average hit rate in kHz.

Definition at line 44 of file CDCHitRateCounter.h.

◆ nActiveWireInLayer

int nActiveWireInLayer[f_nLayer] = {0}

number of wires used in this analysis in each layer

Definition at line 50 of file CDCHitRateCounter.h.

◆ nActiveWireInLayerPhi

int nActiveWireInLayerPhi[f_nLayer][f_nPhiDivision] = {{0}}

number of wires used in this analysis in each phi bin in each layer

Definition at line 51 of file CDCHitRateCounter.h.

◆ nActiveWireInSuperLayer

int nActiveWireInSuperLayer[f_nSuperLayer] = {0}

number of wires used in this analysis in each super layer

Definition at line 49 of file CDCHitRateCounter.h.

◆ nActiveWireInTotal

int nActiveWireInTotal = 0

number of wires used in this analysis in the whole CDC

Definition at line 48 of file CDCHitRateCounter.h.

◆ numEvents

int numEvents = 0

number of events accumulated

Definition at line 53 of file CDCHitRateCounter.h.

◆ superLayerHitRate

float superLayerHitRate[f_nSuperLayer] = {0}

SuperLayer average hit rate in kHz.

Definition at line 42 of file CDCHitRateCounter.h.

◆ timeWindowForNormalCell

int timeWindowForNormalCell = -1

time window for the normal cells in 2*508.887 MHz clock ( 1 clock = 0.982536 ns)

Definition at line 46 of file CDCHitRateCounter.h.

◆ timeWindowForSmallCell

int timeWindowForSmallCell = -1

time window for the small cells in 2*508.887 MHz clock ( 1 clock = 0.982536 ns)

Definition at line 45 of file CDCHitRateCounter.h.

◆ valid

bool valid = false

status: true = rates valid

Definition at line 54 of file CDCHitRateCounter.h.


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