Belle II Software  release-08-01-10
eclAutocovarianceCalibrationC3Collector.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 //Root
17 #include <TH2F.h>
18 
19 //Framework
20 #include <framework/database/DBObjPtr.h>
21 #include <framework/datastore/StoreArray.h>
22 
23 namespace Belle2 {
29  class ECLDsp;
30  class ECLCrystalCalib;
31 
34 
35  public:
36 
39 
41  void prepare() override;
42 
44  void startRun() override;
45 
47  void collect() override;
48 
50  void closeRun() override;
51 
52  private:
53 
57  std::vector<float> m_PeakToPeakThresholds;
59  static constexpr int m_nADCWaveformPoints = 31;
61  int m_BaselineLimit = 10;
63  };
65 } // 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.
float m_CovarianceMatrixInfoVsCrysIDHistogram[ECLElementNumbers::c_NCrystals][m_nADCWaveformPoints+1]
container for coveriance matrix
TH2F * CovarianceMatrixInfoVsCrysID
result returned by collector that contains the coveriance matrix for each crystal
DBObjPtr< ECLCrystalCalib > m_ECLAutocovarianceCalibrationC1Threshold
thresholds obtained from C1 stage
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
void closeRun() override
Transfer fom array container to ROOT histogram.
void prepare() override
Define histograms and read payloads from DB.
const int c_NCrystals
Number of crystals.
Abstract base class for different kinds of events.