 |
Belle II Software
release-05-01-25
|
13 #include <background/modules/BeamBkgHitRateMonitor/HitRateBase.h>
14 #include <framework/datastore/StoreArray.h>
15 #include <mdst/dataobjects/SoftwareTriggerResult.h>
16 #include <svd/dataobjects/SVDShaperDigit.h>
17 #include <svd/dataobjects/SVDCluster.h>
18 #include <svd/calibration/SVDHotStripsCalibrations.h>
19 #include <svd/calibration/SVDFADCMaskedStrips.h>
30 namespace Background {
35 class SVDHitRateCounter:
public HitRateBase {
60 for (
auto& rate : row) {
65 for (
auto& rate : row) {
70 for (
auto& rate : row) {
82 explicit SVDHitRateCounter(
const std::string& svdShaperDigitsName,
double thrCharge):
95 virtual void clear()
override;
101 virtual void accumulate(
unsigned timeStamp)
override;
107 virtual void normalize(
unsigned timeStamp)
override;
122 if (!isU && layer > 0)
return 512;
virtual void normalize_rates(TreeStruct &rates)
Normalize TreeStruct.
int nStripsOnLayerSide(int layer, bool isU)
Return number of strips on a sensor.
This class defines the dbobject and the method to access strips which are masked at FADC level.
StoreObjPtr< SoftwareTriggerResult > m_resultStoreObjectPointer
trigger decision
int m_nLayers
number of layers
int numEvents
number of events accumulated
double m_thrCharge
cut on cluster energy in electrons
float l3LadderSensorAverageRates[7][2]
Layer 3 sensors [#ladder][#sensor].
int m_nSensors[4]
number of sensors on a ladder on each layer
StoreArray< SVDCluster > m_clusters
collection of clusters
virtual void normalize(unsigned timeStamp) override
Normalize accumulated hits (e.g.
void normalize()
normalize accumulated hits to single event
SVDHitRateCounter(const std::string &svdShaperDigitsName, double thrCharge)
Constructor.
TreeStruct m_rates_highE
tree variables for high-energy clusters
float averageRate
total SVD average occupancy
StoreArray< SVDShaperDigit > m_digits
collection of digits
std::map< unsigned, TreeStruct > m_buffer_highE
average cluster occupancies (high energy) in time stamps
This class defines the wrapper to retrieve the the list of the hot strips flgged offline.
float layerLadderAverageRates[4][16]
[#layer][#ladder]
int m_l3LadderSensorActiveStrips[7][2]
number of active strips in each sensor in Layer 3
Abstract base class for different kinds of events.
Type-safe access to single objects in the data store.
int m_activeStrips
number of active strips
virtual void clear() override
Clear time-stamp buffer to prepare for 'accumulate'.
float layerSensorAverageRates[4][5]
[#layer][#sensor]
std::string m_svdShaperDigitsName
name of the input SVDShaperDigits collection
std::map< unsigned, TreeStruct > m_buffer
average strip occupancies in time stamps
TreeStruct m_rates
tree variables for fired strips
int m_layerSensorActiveStrips[4][5]
number of active strips in each layer, sensor position
bool valid
status: true = rates valid
int m_layerLadderActiveStrips[4][16]
number of active strips in each layer, ladder
SVDHotStripsCalibrations m_HotStripsCalib
payload for hot strips
virtual void accumulate(unsigned timeStamp) override
Accumulate hits.
SVDFADCMaskedStrips m_FADCMaskedStrips
payload for strips masked on FADC level
Accessor to arrays stored in the data store.
int m_nLadders[4]
number of ladders on each layer
std::map< unsigned, TreeStruct > m_buffer_lowE
average cluster occupancies (low energy) in time stamps
TreeStruct m_rates_lowE
tree variables for low-energy clusters
int m_layerActiveStrips[4]
number of active strips in each layer
virtual void initialize(TTree *tree) override
Class initializer: set branch addresses and other staf.
float layerAverageRates[4]
layer average occupancy