Belle II Software  release-08-01-10
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 
21 namespace Belle2 {
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:
53  std::vector<float> m_ADCtoEnergy;
62  const int m_numberofADCPoints = 31;
66 
69 
72 
74  std::vector<float> m_maxResLimit;
75 
76  int m_CellID;
77  int m_ADC0;
78  int m_ADC1;
79  int m_ADC2;
80  int m_ADC3;
81  int m_ADC4;
82  int m_ADC5;
83  int m_ADC6;
84  int m_ADC7;
85  int m_ADC8;
86  int m_ADC9;
87  int m_ADC10;
88  int m_ADC11;
89  int m_ADC12;
90  int m_ADC13;
91  int m_ADC14;
92  int m_ADC15;
93  int m_ADC16;
94  int m_ADC17;
95  int m_ADC18;
96  int m_ADC19;
97  int m_ADC20;
98  int m_ADC21;
99  int m_ADC22;
100  int m_ADC23;
101  int m_ADC24;
102  int m_ADC25;
103  int m_ADC26;
104  int m_ADC27;
105  int m_ADC28;
106  int m_ADC29;
107  int m_ADC30;
109  };
111 } // end Belle2 namespace
Calibration collector module base class.
Class for accessing objects in the database.
Definition: DBObjPtr.h:21
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
Calibration collector module that uses delayed Bhabha to compute coveriance matrix.
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.