Belle II Software  release-08-01-10
eclWaveformTemplateCalibrationC3Algorithm.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/dbobjects/ECLDigitWaveformParameters.h>
13 
14 /* Basf2 headers. */
15 #include <calibration/CalibrationAlgorithm.h>
16 #include <framework/database/DBObjPtr.h>
17 
18 namespace Belle2 {
23  namespace ECL {
24 
27  public:
28 
31 
34 
36  void setOutputName(const std::string& outputName) {m_outputName = outputName;}
37 
39  std::string getOutputName() {return m_outputName;}
40 
42  void setFirstCellID(int firstCellID) {m_firstCellID = firstCellID;}
43 
45  void setLastCellID(int lastCellID) {m_lastCellID = lastCellID;}
46 
47  protected:
48 
50  virtual EResult calibrate() override;
51 
52  private:
53 
54  std::string m_outputName = "eclWaveformTemplateCalibrationC3Algorithm.root";
59  };
60  }
62 } // namespace Belle2
63 
64 
Base class for calibration algorithms.
EResult
The result of calibration.
Class for accessing objects in the database.
Definition: DBObjPtr.h:21
void setOutputName(const std::string &outputName)
Setter for m_outputName.
DBObjPtr< ECLDigitWaveformParameters > m_WaveformParameters
Waveform parameters.
Abstract base class for different kinds of events.