Belle II Software development
KLMScintillatorFirmwareFitResult.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/* Basf2 headers. */
12#include <framework/datastore/RelationsObject.h>
13
14namespace Belle2 {
20 namespace KLM {
21
25 enum ScintillatorFirmwareFitStatus {
26
28 c_ScintillatorFirmwareSuccessfulFit,
29
31 c_ScintillatorFirmwareNoSignal,
32
33 };
34
35 }
36
41
42 public:
43
48 {
49 }
50
55 {
56 }
57
61 int getStartTime() const
62 {
63 return m_StartTime;
64 }
65
70 void setStartTime(int startTime)
71 {
72 m_StartTime = startTime;
73 }
74
78 float getAmplitude() const
79 {
80 return m_Amplitude;
81 }
82
87 void setAmplitude(float amplitude)
88 {
89 m_Amplitude = amplitude;
90 }
91
96 {
98 }
99
104 void setBackgroundAmplitude(float amplitude)
105 {
106 m_BackgroundAmplitude = amplitude;
107 }
108
113 {
114 return m_MinimalAmplitude;
115 }
116
120 void setMinimalAmplitude(int amplitude)
121 {
122 m_MinimalAmplitude = amplitude;
123 }
124
125 private:
126
128 int m_StartTime = -1;
129
131 float m_Amplitude = -1;
132
135
138
141
142 };
143
145}
void setBackgroundAmplitude(float amplitude)
Set background amplitude.
void setStartTime(int startTime)
Set signal start time (in TDC counts).
int getMinimalAmplitude() const
Get minimal amplitude (ADC output).
void setMinimalAmplitude(int amplitude)
Set minimal amplitude.
ClassDef(Belle2::KLMScintillatorFirmwareFitResult, 1)
Class version.
int getStartTime() const
Get signal start time (in TDC counts).
float getBackgroundAmplitude() const
Get background amplitude.
Defines interface for accessing relations of objects in StoreArray.
Abstract base class for different kinds of events.