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