Belle II Software  release-08-00-04
eclAutocovarianceCalibrationC2Collector.h
1 /**************************************************************************
2  * Author: The Belle II Collaboration *
3  * *
4  * See git log for contributors and copyright holders. *
5  * This file is licensed under LGPL-3.0, see LICENSE.md. *
6  **************************************************************************/
7 
8 #pragma once
9 
10 /* ECL headers. */
11 #include <ecl/dataobjects/ECLElementNumbers.h>
12 
13 //Calibration
14 #include <calibration/CalibrationCollectorModule.h>
15 
16 //Framework
17 #include <framework/database/DBObjPtr.h>
18 #include <framework/datastore/StoreArray.h>
19 
20 //Root
21 #include <TH2F.h>
22 
23 namespace Belle2 {
29  class ECLDsp;
30  class ECLCrystalCalib;
31 
34 
35  public:
36 
40 
42  void prepare() override;
43 
45  void startRun() override;
46 
48  void collect() override;
49 
51  void closeRun() override;
52 
53  private:
54 
59  std::vector<float> m_PeakToPeakThresholds;
67  const int m_numberofADCPoints = 31;
69  };
71 } // 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< ECLDsp > m_eclDsps
Required input array of ECLDSPs.
double m_sumOfSamples[ECLElementNumbers::c_NCrystals]
sum of 31 samples for selected waveforms
int m_nSelectedWaveforms[ECLElementNumbers::c_NCrystals]
number of selected waveforms for each crystal
DBObjPtr< ECLCrystalCalib > m_ECLAutocovarianceCalibrationC1Threshold
peak to peak noise threshold computed from step C1
void collect() override
Select events and crystals and accumulate histograms.
StoreObjPtr< EventMetaData > m_evtMetaData
dataStore EventMetaData
std::vector< float > m_PeakToPeakThresholds
vector of thresholds obtained from DB object
TH1D * m_CounterVsCrysID
final histogram returned by collector contains counter
void prepare() override
Define histograms and read payloads from DB.
TH1D * m_BaselineVsCrysID
final histogram returned by collector contains baseline
const int c_NCrystals
Number of crystals.
Abstract base class for different kinds of events.