9#include <top/modules/collectors/TOPCommonT0BFCollectorModule.h>
10#include <top/geometry/TOPGeometryPar.h>
38 setDescription(
"A collector for common T0 calibration with a fit of bunch finder residuals (method BF)");
43 "number of bunches per SST clock period", 24);
57 auto h1a =
new TH1F(
"offset_a",
"current offset; offset [ns]",
59 registerObject<TH1F>(
"offset_a", h1a);
61 auto h1b =
new TH1F(
"offset_b",
"current offset; offset [ns]",
63 registerObject<TH1F>(
"offset_b", h1b);
75 auto h1a = getObjectPtr<TH1F>(
"offset_a");
76 auto h1b = getObjectPtr<TH1F>(
"offset_b");
void setDescription(const std::string &description)
Sets the description of the module.
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
StoreObjPtr< TOPRecBunch > m_recBunch
reconstructed bunch
DBObjPtr< TOPCalCommonT0 > m_commonT0
common T0 calibration constants
int m_nx
number of histogram bins
int m_bunchesPerSSTclk
number of bunches per SST clock
double m_bunchTimeSep
bunch separation in time [ns]
const TOPGeometry * getGeometry() const
Returns pointer to geometry object using basf2 units.
static TOPGeometryPar * Instance()
Static method to obtain the pointer to its instance.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
virtual void collect() final
Replacement for event().
TOPCommonT0BFCollectorModule()
Constructor.
virtual void prepare() final
Replacement for initialize().
Abstract base class for different kinds of events.