![]() |
Belle II Software release-09-00-03
|
Class for monitoring beam background hit rates of TOP. More...
#include <TOPHitRateCounter.h>


Classes | |
| struct | TreeStruct |
| tree structure More... | |
Public Member Functions | |
| TOPHitRateCounter (double timeOffset, double timeWindow) | |
| Constructor. | |
| virtual void | initialize (TTree *tree) override |
| Class initializer: set branch addresses and other staf. | |
| virtual void | clear () override |
| Clear time-stamp buffer to prepare for 'accumulate'. | |
| virtual void | accumulate (unsigned timeStamp) override |
| Accumulate hits. | |
| virtual void | normalize (unsigned timeStamp) override |
| Normalize accumulated hits (e.g. | |
Private Member Functions | |
| void | setActiveFractions () |
| Sets fractions of active channels. | |
Private Attributes | |
| double | m_timeOffset = 0 |
| time offset of hits [ns] | |
| double | m_timeWindow = 0 |
| time window in which to count hits [ns] | |
| TreeStruct | m_rates |
| tree variables | |
| std::map< unsigned, TreeStruct > | m_buffer |
| average rates in time stamps | |
| StoreArray< TOPDigit > | m_digits |
| collection of digits | |
| DBObjPtr< TOPCalChannelMask > | m_channelMask |
| channel mask | |
| TH1F * | m_hits = 0 |
| time distribution of hits in wide range | |
| TH1F * | m_hitsInWindow = 0 |
| time distribution of hits inside timeWindow | |
| double | m_activeFractions [16] = {0} |
| fractions of active channels in slots | |
| double | m_activeTotal = 0 |
| total fraction of active channels | |
Class for monitoring beam background hit rates of TOP.
Hit rates are given in MHz per PMT and are already corrected for different pixel efficiencies and masked-out pixels.
Definition at line 33 of file TOPHitRateCounter.h.
|
inline |
Constructor.
| timeOffset | time offset to be subtracted from hit times [ns] |
| timeWindow | time window (full size) in which to count hits [ns] |
Definition at line 63 of file TOPHitRateCounter.h.
|
overridevirtual |
Accumulate hits.
| timeStamp | time stamp |
Implements HitRateBase.
Definition at line 56 of file TOPHitRateCounter.cc.
|
overridevirtual |
Clear time-stamp buffer to prepare for 'accumulate'.
Implements HitRateBase.
Definition at line 51 of file TOPHitRateCounter.cc.
|
overridevirtual |
Class initializer: set branch addresses and other staf.
| tree | a valid TTree pointer |
Implements HitRateBase.
Definition at line 28 of file TOPHitRateCounter.cc.
|
overridevirtual |
Normalize accumulated hits (e.g.
transform to rates) and prepare for TTree::Fill
| timeStamp | time stamp |
Implements HitRateBase.
Definition at line 88 of file TOPHitRateCounter.cc.
|
private |
Sets fractions of active channels.
Definition at line 120 of file TOPHitRateCounter.cc.
|
private |
fractions of active channels in slots
Definition at line 118 of file TOPHitRateCounter.h.
|
private |
total fraction of active channels
Definition at line 119 of file TOPHitRateCounter.h.
|
private |
average rates in time stamps
Definition at line 105 of file TOPHitRateCounter.h.
|
private |
channel mask
Definition at line 111 of file TOPHitRateCounter.h.
|
private |
collection of digits
Definition at line 108 of file TOPHitRateCounter.h.
|
private |
time distribution of hits in wide range
Definition at line 114 of file TOPHitRateCounter.h.
|
private |
time distribution of hits inside timeWindow
Definition at line 115 of file TOPHitRateCounter.h.
|
private |
tree variables
Definition at line 102 of file TOPHitRateCounter.h.
|
private |
time offset of hits [ns]
Definition at line 98 of file TOPHitRateCounter.h.
|
private |
time window in which to count hits [ns]
Definition at line 99 of file TOPHitRateCounter.h.