Belle II Software development
ECLDigitWaveformParameters Class Reference

DB object to store photon, hadron and diode shape parameters. More...

#include <ECLDigitWaveformParameters.h>

Inheritance diagram for ECLDigitWaveformParameters:

Public Member Functions

 ECLDigitWaveformParameters ()
 Default constructor.
 
const float * getPhotonParameters (int cellID) const
 Get array of photon template parameters.
 
const float * getHadronParameters (int cellID) const
 Get array of hadron template parameters.
 
const float * getDiodeParameters (int cellID) const
 Get array of diode template parameters.
 
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.
 
 ~ECLDigitWaveformParameters ()
 Destructor.
 

Private Member Functions

 ClassDef (ECLDigitWaveformParameters, 2)
 ClassDef.
 

Private Attributes

float m_PhotonPars [ECLElementNumbers::c_NCrystals][11]
 photon parameters all crystals
 
float m_HadronPars [ECLElementNumbers::c_NCrystals][11]
 hadron parameters all crystals
 
float m_DiodePars [ECLElementNumbers::c_NCrystals][11]
 diode parameters all crystals
 

Detailed Description

DB object to store photon, hadron and diode shape parameters.

Definition at line 24 of file ECLDigitWaveformParameters.h.

Constructor & Destructor Documentation

◆ ECLDigitWaveformParameters()

Default constructor.

Definition at line 30 of file ECLDigitWaveformParameters.h.

31 {
32
33 for (int i = 0; i < 11; i++) {
34 for (int j = 0; j < ECLElementNumbers::c_NCrystals; j++) {
35 m_PhotonPars[j][i] = 0.;
36 m_HadronPars[j][i] = 0.;
37 m_DiodePars[j][i] = 0.;
38 }
39 }
40
41 };
float m_HadronPars[ECLElementNumbers::c_NCrystals][11]
hadron parameters all crystals
float m_PhotonPars[ECLElementNumbers::c_NCrystals][11]
photon parameters all crystals
float m_DiodePars[ECLElementNumbers::c_NCrystals][11]
diode parameters all crystals
const int c_NCrystals
Number of crystals.

◆ ~ECLDigitWaveformParameters()

Destructor.

Definition at line 67 of file ECLDigitWaveformParameters.h.

67{};

Member Function Documentation

◆ getDiodeParameters()

const float * getDiodeParameters ( int  cellID) const
inline

Get array of diode template parameters.

11 entries per crystal.

Definition at line 50 of file ECLDigitWaveformParameters.h.

50{return m_DiodePars[cellID - 1];};

◆ getHadronParameters()

const float * getHadronParameters ( int  cellID) const
inline

Get array of hadron template parameters.

11 entries per crystal.

Definition at line 47 of file ECLDigitWaveformParameters.h.

47{return m_HadronPars[cellID - 1];};

◆ getPhotonParameters()

const float * getPhotonParameters ( int  cellID) const
inline

Get array of photon template parameters.

11 entries per crystal.

Definition at line 44 of file ECLDigitWaveformParameters.h.

44{return m_PhotonPars[cellID - 1];};

◆ setTemplateParameters()

void setTemplateParameters ( int  cellID,
const float  photonInput[11],
const float  hadronInput[11],
const float  diodeInput[11] 
)
inline

Set photon, hadron and diode template parameters for crystal.

11 entries per template. One photon, hadron and diode template per crystal.

Definition at line 53 of file ECLDigitWaveformParameters.h.

56 {
57 for (int i = 0; i < 11; i++) {
58 m_PhotonPars[cellID - 1][i] = photonInput[i];
59 m_HadronPars[cellID - 1][i] = hadronInput[i];
60 m_DiodePars[cellID - 1][i] = diodeInput[i];
61 }
62 };

Member Data Documentation

◆ m_DiodePars

float m_DiodePars[ECLElementNumbers::c_NCrystals][11]
private

diode parameters all crystals

Definition at line 72 of file ECLDigitWaveformParameters.h.

◆ m_HadronPars

float m_HadronPars[ECLElementNumbers::c_NCrystals][11]
private

hadron parameters all crystals

Definition at line 71 of file ECLDigitWaveformParameters.h.

◆ m_PhotonPars

float m_PhotonPars[ECLElementNumbers::c_NCrystals][11]
private

photon parameters all crystals

Definition at line 70 of file ECLDigitWaveformParameters.h.


The documentation for this class was generated from the following file: