Belle II Software  release-06-00-14
ECLDigitWaveformParameters.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 #include <TObject.h>
12 
13 namespace Belle2 {
20  class ECLDigitWaveformParameters: public TObject {
21  public:
22 
27  {
28 
29  for (int i = 0; i < 11; i++) {
30  for (int j = 0; j < 8736; j++) {
31  m_PhotonPars[j][i] = 0.;
32  m_HadronPars[j][i] = 0.;
33  m_DiodePars[j][i] = 0.;
34  }
35  }
36 
37  };
38 
40  const float* getPhotonParameters(int cellID) const {return m_PhotonPars[cellID - 1];};
41 
43  const float* getHadronParameters(int cellID) const {return m_HadronPars[cellID - 1];};
44 
46  const float* getDiodeParameters(int cellID) const {return m_DiodePars[cellID - 1];};
47 
49  void setTemplateParameters(int cellID, const float photonInput[11],
50  const float hadronInput[11],
51  const float diodeInput[11])
52  {
53  for (int i = 0; i < 11; i++) {
54  m_PhotonPars[cellID - 1][i] = photonInput[i];
55  m_HadronPars[cellID - 1][i] = hadronInput[i];
56  m_DiodePars[cellID - 1][i] = diodeInput[i];
57  }
58  };
59 
64 
65  private:
66  float m_PhotonPars[8736][11];
67  float m_HadronPars[8736][11];
68  float m_DiodePars[8736][11];
70  //2 convert vector of double to array of floats (SL)
71  //1 Initial Version
73  };
75 } // end namespace Belle2
DB object to store photon, hadron and diode shape parameters.
float m_DiodePars[8736][11]
diode parameters all crystals
float m_HadronPars[8736][11]
hadron parameters all crystals
const float * getDiodeParameters(int cellID) const
Get array of diode template parameters.
ClassDef(ECLDigitWaveformParameters, 2)
ClassDef.
void setTemplateParameters(int cellID, const float photonInput[11], const float hadronInput[11], const float diodeInput[11])
Set photon, hadron and diode template parameters for crystal.
float m_PhotonPars[8736][11]
photon parameters all crystals
const float * getHadronParameters(int cellID) const
Get array of hadron template parameters.
const float * getPhotonParameters(int cellID) const
Get array of photon template parameters.
Abstract base class for different kinds of events.