Belle II Software  release-08-00-10
eclWaveformTemplateCalibrationC4Algorithm.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/calibration/eclWaveformTemplateCalibrationC4Algorithm.h>
13 #include <ecl/dbobjects/ECLDigitWaveformParameters.h>
14 
15 /* Basf2 headers. */
16 #include <calibration/CalibrationAlgorithm.h>
17 #include <framework/database/DBObjPtr.h>
18 
19 namespace Belle2 {
24  namespace ECL {
25 
28  public:
29 
32 
35 
37  void setOutputName(const std::string& outputName) {m_outputName = outputName;}
38 
40  std::string getOutputName() {return m_outputName;}
41 
43  void setFirstCellID(int firstCellID) {m_firstCellID = firstCellID;}
44 
46  void setLastCellID(int lastCellID) {m_lastCellID = lastCellID;}
47 
49  void setBatchSize(int batchsize) {m_batchsize = batchsize;}
50 
52  void setNumBatches(int numBatches) {m_numBatches = numBatches;}
53 
54  protected:
55 
57  virtual EResult calibrate() override;
58 
59  private:
60 
61  std::string m_outputName = "eclWaveformTemplateCalibrationC4Algorithm.root";
66  int m_batchsize = 100;
67  int m_numBatches = 88;
69  };
70  }
72 } // namespace Belle2
73 
74 
Base class for calibration algorithms.
EResult
The result of calibration.
void setOutputName(const std::string &outputName)
Setter for m_outputName.
Abstract base class for different kinds of events.