Belle II Software development
eclAutocovarianceCalibrationC3Collector.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/* ECL headers. */
12#include <ecl/dataobjects/ECLElementNumbers.h>
13
14//Calibration
15#include <calibration/CalibrationCollectorModule.h>
16
17//Root
18#include <TH2F.h>
19
20//Framework
21#include <framework/database/DBObjPtr.h>
22#include <framework/datastore/StoreArray.h>
23
24namespace Belle2 {
30 class ECLDsp;
31 class ECLCrystalCalib;
32
35
36 public:
37
40
42 void prepare() override;
43
45 void startRun() override;
46
48 void collect() override;
49
51 void closeRun() override;
52
53 private:
54
58 std::vector<float> m_PeakToPeakThresholds;
60 static constexpr int m_nADCWaveformPoints = 31;
62 int m_BaselineLimit = 10;
64 };
66} // 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.