Belle II Software development
eclMergingCrystalEAlgorithm.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#include <ecl/dbobjects/ECLCrystalCalib.h>
14
15/* Basf2 headers. */
16#include <calibration/CalibrationAlgorithm.h>
17#include <framework/database/DBObjPtr.h>
18
19namespace Belle2 {
24 namespace ECL {
25
28 public:
29
32
35
36 protected:
37
39 virtual EResult calibrate() override;
40
41 private:
42
44 const std::string m_payloadName = "ECLCrystalEnergy";
45
48
51
54
57
60 };
61 }
63} // namespace Belle2
64
65
Base class for calibration algorithms.
EResult
The result of calibration.
Class for accessing objects in the database.
Definition: DBObjPtr.h:21
Calibrate ecl crystals using previously created payloads.
DBObjPtr< ECLCrystalCalib > m_existing5x5
ECLCrystalEnergyee5x5 payloads that we want to read from the DB.
DBObjPtr< ECLCrystalCalib > m_existing
ECLCrystalEnergy payloads that we want to read from the DB.
const std::string m_payloadName
The output payload name.
DBObjPtr< ECLCrystalCalib > m_existingGammaGamma
ECLCrystalEnergyGammaGamma payloads that we want to read from the DB.
const int m_numCrystals
Number of Crystals expected.
virtual EResult calibrate() override
..Run algorithm
DBObjPtr< ECLCrystalCalib > m_existingMuMu
ECLCrystalEnergyMuMu payloads that we want to read from the DB.
const int c_NCrystals
Number of crystals.
Abstract base class for different kinds of events.