Belle II Software development
eclAutocovarianceCalibrationC4Collector.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#include <ecl/dbobjects/ECLAutoCovariance.h>
15
16//Framework
17#include <framework/database/DBObjPtr.h>
18#include <framework/datastore/StoreArray.h>
19
20//Root
21#include <TH2F.h>
22#include <TMatrixDSym.h>
23
24namespace Belle2 {
30 class ECLDsp;
31 class ECLCrystalCalib;
32 class ECLAutoCovariance;
33
36
37 public:
38
42
44 void prepare() override;
45
47 void startRun() override;
48
50 void collect() override;
51
53 void closeRun() override;
54
55 private:
56
61 std::vector<float> m_PeakToPeakThresholds;
66 std::vector<TMatrixDSym> m_NoiseMatrix;
68 static constexpr int m_numberofADCPoints = 31;
73 };
75} // 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.