11#include <background/modules/BeamBkgHitRateMonitor/HitRateBase.h>
12#include <framework/datastore/StoreArray.h>
13#include <framework/database/DBObjPtr.h>
14#include <top/dataobjects/TOPDigit.h>
15#include <top/dbobjects/TOPCalChannelMask.h>
25 namespace Background {
76 virtual void clear()
override;
82 virtual void accumulate(
unsigned timeStamp)
override;
88 virtual void normalize(
unsigned timeStamp)
override;
Abstract base class for monitoring beam background hit rates All the monitoring classes must inherit ...
Class for monitoring beam background hit rates of TOP.
std::map< unsigned, TreeStruct > m_buffer
average rates in time stamps
DBObjPtr< TOPCalChannelMask > m_channelMask
channel mask
void setActiveFractions()
Sets fractions of active channels.
TreeStruct m_rates
tree variables
TH1F * m_hitsInWindow
time distribution of hits inside timeWindow
virtual void initialize(TTree *tree) override
Class initializer: set branch addresses and other staf.
double m_activeTotal
total fraction of active channels
virtual void accumulate(unsigned timeStamp) override
Accumulate hits.
double m_activeFractions[16]
fractions of active channels in slots
TOPHitRateCounter(double timeOffset, double timeWindow)
Constructor.
double m_timeWindow
time window in which to count hits [ns]
StoreArray< TOPDigit > m_digits
collection of digits
TH1F * m_hits
time distribution of hits in wide range
double m_timeOffset
time offset of hits [ns]
virtual void normalize(unsigned timeStamp) override
Normalize accumulated hits (e.g.
virtual void clear() override
Clear time-stamp buffer to prepare for 'accumulate'.
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 slotRates[16]
hit rates per PMT of the modules (slots) [MHz]
float averageRate
average hit rate per PMT [MHz]
void normalize()
normalize accumulated hits to single event