 |
Belle II Software
release-05-01-25
|
13 #include <background/modules/BeamBkgHitRateMonitor/HitRateBase.h>
14 #include <framework/datastore/StoreArray.h>
15 #include <framework/database/DBObjPtr.h>
16 #include <arich/dataobjects/ARICHHit.h>
17 #include <arich/dbobjects/ARICHChannelMask.h>
18 #include <arich/dbobjects/ARICHModulesInfo.h>
28 namespace Background {
33 class ARICHHitRateCounter:
public HitRateBase {
74 virtual void clear()
override;
80 virtual void accumulate(
unsigned timeStamp)
override;
86 virtual void normalize(
unsigned timeStamp)
override;
99 std::map<unsigned, TreeStruct>
m_buffer;
virtual void clear() override
Clear time-stamp buffer to prepare for 'accumulate'.
TreeStruct m_rates
tree variables
double m_activeHapds[18]
number of active HAPDS in each segment
virtual void accumulate(unsigned timeStamp) override
Accumulate hits.
float segmentRates[18]
hit rates per HAPD [Hz] for 18 segments of arich
DBObjPtr< ARICHModulesInfo > m_modulesInfo
HAPD modules info.
Class for accessing objects in the database.
double m_activeTotal
total number of active HAPDS
void normalize()
normalize accumulated hits to single event
Abstract base class for different kinds of events.
void setActiveHapds()
Sets number of active hapds in each segment.
StoreArray< ARICHHit > m_hits
collection of digits
DBObjPtr< ARICHChannelMask > m_channelMask
channel mask
std::map< unsigned, TreeStruct > m_buffer
average rates in time stamps
ARICHHitRateCounter()
Constructor.
int numEvents
number of events accumulated
virtual void initialize(TTree *tree) override
Class initializer: set branch addresses and other staf.
Accessor to arrays stored in the data store.
float averageRate
total detector average hit rate per HAPD [Hz]
int m_segmentMap[420]
mapping from module ID to segments
bool valid
status: true = rates valid
virtual void normalize(unsigned timeStamp) override
Normalize accumulated hits (e.g.