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