Belle II Software development
TOPSimCalPulse.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 <framework/datastore/RelationsObject.h>
12
13namespace Belle2 {
25 public:
26
31 {}
32
36 TOPSimCalPulse(int moduleID, unsigned channel, int pixelID,
37 double time, double amplitude):
38 m_moduleID(moduleID), m_channel(channel), m_pixelID(pixelID),
39 m_time(time), m_amplitude(amplitude)
40 {}
41
46 int getModuleID() const { return m_moduleID; }
47
52 int getPixelID() const { return m_pixelID; }
53
58 unsigned int getChannel() const { return m_channel; }
59
64 double getTime() const { return m_time; }
65
70 double getAmplitude() const { return m_amplitude; }
71
72
73 private:
74
75 int m_moduleID = 0;
76 unsigned m_channel = 0;
77 int m_pixelID = 0;
78 float m_time = 0;
79 float m_amplitude = 0;
83 };
84
85
87} // end namespace Belle2
88
Defines interface for accessing relations of objects in StoreArray.
Calibration pulse time and amplitude generated by TOPCalPulseGenerator.
float m_time
generated time in [ns]
unsigned m_channel
hardware channel number (0-based)
int getPixelID() const
Returns pixel ID (1-based)
unsigned int getChannel() const
Returns hardware channel number.
int m_moduleID
module ID (1-based)
int getModuleID() const
Returns module ID.
TOPSimCalPulse()
Default constructor.
TOPSimCalPulse(int moduleID, unsigned channel, int pixelID, double time, double amplitude)
Full constructor.
double getAmplitude() const
Returns generated amplitude.
ClassDef(TOPSimCalPulse, 1)
ClassDef.
int m_pixelID
software channel ID (1-based)
float m_amplitude
generated amplitude in [ADC counts]
double getTime() const
Returns generated time.
Abstract base class for different kinds of events.