Belle II Software development
ECLDigitWaveformParametersForMC.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/* ROOT headers. */
12#include <TObject.h>
13
14namespace Belle2 {
24 class ECLDigitWaveformParametersForMC: public TObject {
25 public:
26
31 {
32 for (int i = 0; i < 11; i++) {
33 m_PhotonPars[i] = 0.;
34 m_HadronPars[i] = 0.;
35 m_DiodePars[i] = 0.;
36 }
37
38 };
39
41 const float* getPhotonParameters() const {return m_PhotonPars;};
42
44 const float* getHadronParameters() const {return m_HadronPars;};
45
47 const float* getDiodeParameters() const {return m_DiodePars;};
48
50 void setTemplateParameters(const float photonInput[11],
51 const float hadronInput[11],
52 const float diodeInput[11])
53 {
54 for (int i = 0; i < 11; i++) {
55 m_PhotonPars[i] = photonInput[i];
56 m_HadronPars[i] = hadronInput[i];
57 m_DiodePars[i] = diodeInput[i];
58 }
59 };
60
65
66 private:
67
68 float m_PhotonPars[11];
69 float m_HadronPars[11];
70 float m_DiodePars[11];
72 //1 Initial Version
74 };
76} // end namespace Belle2
DB object to store photon, hadron and diode shape parameters used in simulations.
const float * getPhotonParameters() const
Get array of photon template parameters.
const float * getDiodeParameters() const
Get array of diode template parameters.
const float * getHadronParameters() const
Get array of hadron template parameters.
void setTemplateParameters(const float photonInput[11], const float hadronInput[11], const float diodeInput[11])
Set photon, hadron and diode template parameters.
ClassDef(ECLDigitWaveformParametersForMC, 1)
ClassDef.
Abstract base class for different kinds of events.