![]() |
Belle II Software
release-08-02-04
|
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. More... | |
| virtual void | initialize (TTree *tree) override |
| Class initializer: set branch addresses and other staf. More... | |
| virtual void | clear () override |
| Clear time-stamp buffer to prepare for 'accumulate'. | |
| virtual void | accumulate (unsigned timeStamp) override |
| Accumulate hits. More... | |
| virtual void | normalize (unsigned timeStamp) override |
| Normalize accumulated hits (e.g. More... | |
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 |
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.