Belle II Software development
|
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. | |
virtual void | clear () override |
Clear time-stamp buffer to prepare for 'accumulate'. | |
virtual void | accumulate (unsigned timeStamp) override |
Accumulate hits. | |
virtual void | normalize (unsigned timeStamp) override |
Normalize accumulated hits (e.g. | |
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. | |
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.
|
inline |
|
overridevirtual |
Accumulate hits.
timeStamp | time stamp |
Implements HitRateBase.
Definition at line 52 of file ECLHitRateCounter.cc.
|
overridevirtual |
Clear time-stamp buffer to prepare for 'accumulate'.
Implements HitRateBase.
Definition at line 47 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.
|
private |
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.
Definition at line 119 of file ECLHitRateCounter.cc.
|
private |
vector used to store ECL calibration constants for each crystal
Definition at line 129 of file ECLHitRateCounter.h.
|
private |
average rates in time stamps
Definition at line 123 of file ECLHitRateCounter.h.
|
private |
array cotaining the number of crystals in given segment
Definition at line 135 of file ECLHitRateCounter.h.
|
private |
collection of digits
Definition at line 126 of file ECLHitRateCounter.h.
|
private |
collection of ECL waveforms
Definition at line 127 of file ECLHitRateCounter.h.
|
private |
pointer to ECLGeometryPar
Definition at line 133 of file ECLHitRateCounter.h.
|
private |
tree variables
Definition at line 120 of file ECLHitRateCounter.h.
|
private |
map with keys containing ECL CellID and values containing segment number
Definition at line 134 of file ECLHitRateCounter.h.
|
private |
vector used to store ECL electronic noise constants foe each crystal
Definition at line 130 of file ECLHitRateCounter.h.