Belle II Software  release-08-01-10
eclAutocovarianceCalibrationC4Collector.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 //Calibration
11 #include <calibration/CalibrationCollectorModule.h>
12 
13 #include <ecl/dbobjects/ECLAutoCovariance.h>
14 
15 //Framework
16 #include <framework/database/DBObjPtr.h>
17 #include <framework/datastore/StoreArray.h>
18 
19 //Root
20 #include <TH2F.h>
21 #include <TMatrixDSym.h>
22 
23 namespace Belle2 {
29  class ECLDsp;
30  class ECLCrystalCalib;
31  class ECLAutoCovariance;
32 
35 
36  public:
37 
41 
43  void prepare() override;
44 
46  void startRun() override;
47 
49  void collect() override;
50 
52  void closeRun() override;
53 
54  private:
55 
60  std::vector<float> m_PeakToPeakThresholds;
63  TH2F* Chi2VsCrysID;
65  std::vector<TMatrixDSym> m_NoiseMatrix;
67  static constexpr int m_numberofADCPoints = 31;
72  };
74 } // 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.
std::vector< TMatrixDSym > m_NoiseMatrix
Stores noise matrix derived from the input Autocovariances.
StoreArray< ECLDsp > m_eclDsps
Required input array of ECLDSPs.
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.
DBObjPtr< ECLAutoCovariance > m_ECLAutocovarianceCalibrationC3Autocovariances
Autocovariances obtained from C3 stage.
Abstract base class for different kinds of events.