 |
Belle II Software
release-05-02-19
|
13 #include <background/modules/BeamBkgHitRateMonitor/HitRateBase.h>
14 #include <framework/datastore/StoreArray.h>
15 #include <ecl/dataobjects/ECLDigit.h>
16 #include <ecl/dataobjects/ECLDsp.h>
17 #include <ecl/geometry/ECLGeometryPar.h>
25 namespace Background {
30 class ECLHitRateCounter:
public HitRateBase {
50 for (
int i = 0; i < 16; i++) {
73 virtual void clear()
override;
79 virtual void accumulate(
unsigned timeStamp)
override;
85 virtual void normalize(
unsigned timeStamp)
override;
125 std::map<unsigned, TreeStruct>
m_buffer;
Belle2::ECL::ECLGeometryPar * m_geometry
pointer to ECLGeometryPar
void normalize()
normalize accumulated rates based on ECL waveforms
virtual void initialize(TTree *tree) override
Class initializer: set branch addresses and other staf.
virtual void normalize(unsigned timeStamp) override
Normalize accumulated hits (e.g.
ECLHitRateCounter()
Constructor.
std::map< int, int > m_segmentMap
map with keys containing ECL CellID and values containing segment number
std::vector< float > m_waveformNoise
vector used to store ECL electronic noise constants foe each crystal
bool validDspRate
status for rates calculated from waveforms, true if waveforms for all crystals are recorded
StoreArray< ECLDsp > m_dsps
collection of ECL waveforms
Abstract base class for different kinds of events.
TreeStruct m_rates
tree variables
std::map< unsigned, TreeStruct > m_buffer
average rates in time stamps
std::vector< float > m_ADCtoEnergy
vector used to store ECL calibration constants for each crystal
float averageDspBkgRate[16]
average background rate per crystal in given segment, calculated using ECL waveforms [hits/second]
void findElectronicsNoise()
Find the electronics noise correction for each cellID Reads a file with a histogram containing electr...
StoreArray< ECLDigit > m_digits
collection of digits
int numEvents
number of valid events
The Class for ECL Geometry Parameters.
Accessor to arrays stored in the data store.
int findECLSegment(int cellid)
Find the correcsponding ECL segment based on the cellID.
virtual void clear() override
Clear time-stamp buffer to prepare for 'accumulate'.
int m_crystalsInSegment[16]
array cotaining the number of crystals in given segment
virtual void accumulate(unsigned timeStamp) override
Accumulate hits.
void segmentECL()
Performs ECL segmentation; Done once per run; Populates a map which connects each ECL crystal with a ...