 |
Belle II Software
release-05-02-19
|
13 #include <framework/core/Module.h>
14 #include <top/dbobjects/TOPSampleTimes.h>
15 #include <top/dbobjects/TOPCalTimebase.h>
16 #include <framework/database/DBObjPtr.h>
32 class TOPDoublePulseGeneratorModule :
public Module {
61 virtual void event()
override;
67 virtual void endRun()
override;
92 const std::string& name,
93 const std::string& title,
94 const std::string& xTitle =
"",
95 const std::string& yTitle =
"")
const;
int m_sampleDivisions
number of sample divisions (from NominalTDC)
std::vector< double > m_sampleTimeIntervals
sample time intervals
virtual void event() override
Event processor.
virtual void terminate() override
Termination action.
double m_timeResolution
sigma of time difference
virtual void beginRun() override
Called when entering a new run.
Class for accessing objects in the database.
TOPDoublePulseGeneratorModule()
Constructor.
virtual ~TOPDoublePulseGeneratorModule()
Destructor.
DBObjPtr< TOPCalTimebase > * m_timebase
sample times from database
virtual void endRun() override
End-of-run action.
std::vector< unsigned > m_asicChannels
ASIC calibration channels.
Calibration constants of a singe ASIC channel: time axis (sample times)
std::string m_outputFileName
if given, store sample times as root histograms
Abstract base class for different kinds of events.
TOPSampleTimes m_sampleTimes
sample times from steering input
void saveAsHistogram(const std::vector< double > &vec, const std::string &name, const std::string &title, const std::string &xTitle="", const std::string &yTitle="") const
Save vector to histogram and write it out.
void storeSampleTimes(std::string fileName)
Optionally store sample times used by the generator as root histograms fileName root output file name...
bool m_useDatabase
if true, use sample times from database
virtual void initialize() override
Initialize the Module.
unsigned m_storageWindows
number of storage windows
std::vector< int > m_moduleIDs
slot ID's to generate for
double m_timeDifference
time difference between first and second pulse