11#include <background/modules/BeamBkgHitRateMonitor/HitRateBase.h>
12#include <framework/datastore/StoreArray.h>
13#include <pxd/dataobjects/PXDDigit.h>
14#include <pxd/dataobjects/PXDCluster.h>
15#include <vxd/dataobjects/VxdID.h>
16#include <pxd/geometry/SensorInfo.h>
17#include <vxd/geometry/GeoCache.h>
21#include <framework/gearbox/Unit.h>
28 namespace Background {
71 virtual void clear()
override;
77 virtual void accumulate(
unsigned timeStamp)
override;
83 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 PXD.
double m_segmentActivePixels[240]
number of active pixels in v segements
std::map< unsigned, TreeStruct > m_buffer
average rates in time stamps
TreeStruct m_rates
tree variables
bool m_maskDeadPixels
Correct bg rates by taking into account masked pixels.
PXDHitRateCounter()
Constructor.
double m_integrationTime
Integration time of PXD in ns.
virtual void initialize(TTree *tree) override
Class initializer: set branch addresses and other staf.
const double c_densitySi
Density of crystalline Silicon.
StoreArray< PXDCluster > m_clusters
collection of clusters
double m_activePixels[40]
number of active pixels in sensor
virtual void accumulate(unsigned timeStamp) override
Accumulate hits.
const PXD::SensorInfo & getInfo(VxdID sensorID) const
Get PXD::SensorInfo.
StoreArray< PXDDigit > m_digits
collection of digits
void setActivePixels()
Sets fractions of active channels.
double m_activeAreas[40]
area of active pixels in sensor
double m_segmentActiveAreas[240]
area of active pixels in v segments
virtual void normalize(unsigned timeStamp) override
Normalize accumulated hits (e.g.
virtual void clear() override
Clear time-stamp buffer to prepare for 'accumulate'.
int m_nPXDSensors
number of sensors
Specific implementation of SensorInfo for PXD Sensors which provides additional pixel specific inform...
Accessor to arrays stored in the data store.
static const double us
[microsecond]
static const double g_cm3
Practical units with the value set at 1.
const SensorInfoBase & getSensorInfo(Belle2::VxdID id) const
Return a referecne to the SensorInfo of a given SensorID.
static GeoCache & getInstance()
Return a reference to the singleton instance.
Class to uniquely identify a any structure of the PXD and SVD.
Abstract base class for different kinds of events.
float doseRates[40]
mean dose rate from PXDDigits per sensor [Gy/s]
float maxOccupancies[40]
max hit occupancy from PXDDigits per sensor [Hits/Channel]
bool valid
status: true = rates valid
float meanOccupancies[40]
mean hit occupancy from PXDDigits per sensor [Hits/Channel]
float softPhotonFluxes[40]
mean soft photon flux per sensor (Single pixel cluster <10keV) [clusters/cm2/s]
float chargedFluxes[40]
mean charged particle flux per sensor (Multi pixel cluster >10keV) [clusters/cm2/s]
float segmentChargedFluxes[240]
mean charged particle flux per v segment of sensor (Multi pixel cluster >10keV) [clusters/cm2/s]
int numEvents
number of events accumulated
float segmentHardPhotonFluxes[240]
mean hard photon flux per v segment of sensor (Single pixel cluster >10keV) [clusters/cm2/s]
float hardPhotonFluxes[40]
mean hard photon flux per sensor (Single pixel cluster >10keV) [clusters/cm2/s]
float averageRate
total detector average hit rate
float segmentSoftPhotonFluxes[240]
mean soft photon flux per v segment of sensor (Single pixel cluster <10keV) [clusters/cm2/s]
float segmentDoseRates[240]
mean dose rate from PXDDigits per v segment of sensor [Gy/s]