Belle II Software development
TOPCalPulseGeneratorModule.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/core/Module.h>
12#include <framework/datastore/StoreArray.h>
13#include <top/dataobjects/TOPSimCalPulse.h>
14#include <vector>
15
16namespace Belle2 {
29
30 public:
31
36
41 {}
42
47 virtual void initialize() override;
48
52 virtual void event() override;
53
54 private:
55
56 // module steering parameters
57
58 std::vector<int> m_moduleIDs;
59 std::vector<unsigned> m_asicChannels;
60 double m_amplitude;
61 double m_delay;
62 double m_windowSize;
64 // dataobjects
67 };
68
70} // Belle2 namespace
71
Base class for Modules.
Definition: Module.h:72
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Generator of calibration pulses Output to TOPSimCalPulses.
std::vector< unsigned > m_asicChannels
ASIC calibration channels.
StoreArray< TOPSimCalPulse > m_calPulses
collection of simulated cal pulses
double m_windowSize
window size in which to generate cal pulses [ns]
double m_amplitude
cal pulse amplitude [ADC counts]
std::vector< int > m_moduleIDs
slot ID's to generate for
virtual void initialize() override
Initialize the Module.
virtual void event() override
Event processor.
Abstract base class for different kinds of events.