9#include <svd/modules/svdCalibration/SVDLatencyCalibrationModule.h>
26 setDescription(
"this module perfoms an analysis to find the APV25 latency");
30 addParam(
"outputFileName",
m_rootFileName,
"Name of output root file.", std::string(
"SVDLatencyCalibration_output.root"));
48 TH1F h_maxAmplitude(
"maxAmpl_L@layerL@ladderS@sensor@view",
49 "bin containing the max of the sampled Amplitude for L@layerL@ladder@sensor@view", 6, -0.5, 5.5);
50 h_maxAmplitude.GetXaxis()->SetTitle(
"max bin");
63 samples = shaper.getSamples();
65 VxdID sensorID = shaper.getSensorID();
69 const int nAPVSamples = 6;
70 for (
int k = 0; k < nAPVSamples; k ++) {
71 if (samples[k] > amplitude) {
72 amplitude = samples[k];
90 for (
auto ladder : geoCache.getLadders(layer))
void setDescription(const std::string &description)
Sets the description of the module.
template class for SVd histograms
void fill(const VxdID &vxdID, int view, Types ... args)
fill the histogram for
H * getHistogram(const VxdID &vxdID, int view)
get a reference to the histogram for
std::string m_rootFileName
root file name
SVDHistograms< TH1F > * m_histo_maxAmplitude
vector of histograms containing the max bin distribution
virtual void initialize() override
initialize
virtual void event() override
event
virtual void endRun() override
end run
virtual void beginRun() override
begin run
StoreArray< SVDShaperDigit > m_digits
SVD digits.
std::string m_shapersListName
shapers list name
TFile * m_rootFilePtr
pointer at root file used for storing histograms
SVDLatencyCalibrationModule()
Constructor: Sets the description, the properties and the parameters of the module.
The SVD ShaperDigit class.
std::array< APVFloatSampleType, c_nAPVSamples > APVFloatSamples
array of APVFloatSampleType objects
Class to faciliate easy access to sensor information of the VXD like coordinate transformations or pi...
static GeoCache & getInstance()
Return a reference to the singleton instance.
Class to uniquely identify a any structure of the PXD and SVD.
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.
Abstract base class for different kinds of events.