Belle II Software development
eclWaveformTemplateCalibrationC2Collector.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11//Calibration
12#include <calibration/CalibrationCollectorModule.h>
13
14//Framework
15#include <framework/database/DBObjPtr.h>
16#include <framework/datastore/StoreArray.h>
17
18//ECL
19#include <ecl/dbobjects/ECLCrystalCalib.h>
20
21namespace Belle2 {
26
27 class ECLDigit;
28 class ECLDsp;
29
32
33 public:
34
38
40 void prepare() override;
41
43 void startRun() override;
44
46 void collect() override;
47
48 private:
52
53 std::vector<float> m_ADCtoEnergy;
54
59
62 const int m_numberofADCPoints = 31;
63
66
69
72
74 std::vector<float> m_maxResLimit;
75
76 int m_CellID = 0;
77 int m_ADC0 = 0;
78 int m_ADC1 = 0;
79 int m_ADC2 = 0;
80 int m_ADC3 = 0;
81 int m_ADC4 = 0;
82 int m_ADC5 = 0;
83 int m_ADC6 = 0;
84 int m_ADC7 = 0;
85 int m_ADC8 = 0;
86 int m_ADC9 = 0;
87 int m_ADC10 = 0;
88 int m_ADC11 = 0;
89 int m_ADC12 = 0;
90 int m_ADC13 = 0;
91 int m_ADC14 = 0;
92 int m_ADC15 = 0;
93 int m_ADC16 = 0;
94 int m_ADC17 = 0;
95 int m_ADC18 = 0;
96 int m_ADC19 = 0;
97 int m_ADC20 = 0;
98 int m_ADC21 = 0;
99 int m_ADC22 = 0;
100 int m_ADC23 = 0;
101 int m_ADC24 = 0;
102 int m_ADC25 = 0;
103 int m_ADC26 = 0;
104 int m_ADC27 = 0;
105 int m_ADC28 = 0;
106 int m_ADC29 = 0;
107 int m_ADC30 = 0;
108
109 };
110
111} // end Belle2 namespace
CalibrationCollectorModule()
Constructor. Sets the default prefix for calibration dataobjects.
Class for accessing objects in the database.
Definition DBObjPtr.h:21
Class to store ECL digitized hits (output of ECLDigi) relation to ECLHit filled in ecl/modules/eclDig...
Definition ECLDigit.h:25
Class to store ECL ShaperDSP waveform ADC data.
Definition ECLDsp.h:25
Accessor to arrays stored in the data store.
Definition StoreArray.h:113
Type-safe access to single objects in the data store.
Definition StoreObjPtr.h:96
StoreArray< ECLDigit > m_eclDigits
Required input array of ECLDigits.
DBObjPtr< ECLCrystalCalib > m_eclWaveformTemplateCalibrationC1MaxResLimit
Baseline noise thresholds compute in stage C1.
void collect() override
Select events and crystals and accumulate histograms.
void prepare() override
Define histograms and read payloads from DB.
int m_CellID
To read ntuple branch, waveform ECL crystal cell ID >
std::vector< float > m_maxResLimit
Vector to store baseline noise thresholds compute in stage C1.
std::vector< float > m_ADCtoEnergy
Crystal energy calibration constants.
Abstract base class for different kinds of events.