![]() |
Belle II Software
release-08-02-04
|
Class for monitoring beam background hit rates of ECL. More...
#include <ECLHitRateCounter.h>


Classes | |
| struct | TreeStruct |
| tree structure More... | |
Public Member Functions | |
| ECLHitRateCounter () | |
| Constructor. | |
| virtual void | initialize (TTree *tree) override |
| Class initializer: set branch addresses and other staf. More... | |
| virtual void | clear () override |
| Clear time-stamp buffer to prepare for 'accumulate'. | |
| virtual void | accumulate (unsigned timeStamp) override |
| Accumulate hits. More... | |
| virtual void | normalize (unsigned timeStamp) override |
| Normalize accumulated hits (e.g. More... | |
Private Member Functions | |
| void | segmentECL () |
| Performs ECL segmentation; Done once per run; Populates a map which connects each ECL crystal with a segment number (0-15); Segments 0-3 are in the forward endcap, 4-7 are in the barrel with z<0, 8-11 are in the barrel with z>0, 12-15 are in the backward endcap; Segment 0 contains crystals with 45deg < phi < 135deg, Segment 1 contains crystals with 135deg < phi < 225deg, Segment 2 contains crystals with 225deg < phi < 315deg, Segment 3 contains crystals with phi < 45deg or phi > 315deg, With the same angular patter continuing for barrel and BWD encap segments. | |
| int | findECLSegment (int cellid) |
| Find the correcsponding ECL segment based on the cellID. More... | |
| void | findElectronicsNoise () |
| Find the electronics noise correction for each cellID Reads a file with a histogram containing electronics noise level of each crystal. | |
Private Attributes | |
| TreeStruct | m_rates |
| tree variables | |
| std::map< unsigned, TreeStruct > | m_buffer |
| average rates in time stamps | |
| StoreArray< ECLDigit > | m_digits |
| collection of digits | |
| StoreArray< ECLDsp > | m_dsps |
| collection of ECL waveforms | |
| std::vector< float > | m_ADCtoEnergy |
| vector used to store ECL calibration constants for each crystal | |
| std::vector< float > | m_waveformNoise |
| vector used to store ECL electronic noise constants foe each crystal | |
| Belle2::ECL::ECLGeometryPar * | m_geometry {nullptr} |
| pointer to ECLGeometryPar | |
| std::map< int, int > | m_segmentMap |
| map with keys containing ECL CellID and values containing segment number | |
| int | m_crystalsInSegment [16] = {0} |
| array cotaining the number of crystals in given segment | |
Class for monitoring beam background hit rates of ECL.
Definition at line 28 of file ECLHitRateCounter.h.
|
overridevirtual |
Accumulate hits.
| timeStamp | time stamp |
Implements HitRateBase.
Definition at line 52 of file ECLHitRateCounter.cc.
|
inlineprivate |
Find the correcsponding ECL segment based on the cellID.
| cellid | ECL crystal CellID |
Definition at line 108 of file ECLHitRateCounter.h.
|
overridevirtual |
Class initializer: set branch addresses and other staf.
| tree | a valid TTree pointer |
Implements HitRateBase.
Definition at line 28 of file ECLHitRateCounter.cc.
|
overridevirtual |
Normalize accumulated hits (e.g.
transform to rates)
| timeStamp | time stamp |
Implements HitRateBase.
Definition at line 102 of file ECLHitRateCounter.cc.