 |
Belle II Software
release-05-02-19
|
11 #include <svd/modules/svdCalibration/SVDLatencyCalibrationModule.h>
28 setDescription(
"this module perfoms an analysis to find the APV25 latency");
31 addParam(
"ShaperDigitsName", m_shapersListName,
"SVDShaperDigits list name", std::string(
""));
32 addParam(
"outputFileName", m_rootFileName,
"Name of output root file.", std::string(
"SVDLatencyCalibration_output.root"));
50 TH1F h_maxAmplitude(
"maxAmpl_L@layerL@ladderS@sensor@view",
51 "bin containing the max of the sampled Amplitude for L@layerL@ladder@sensor@view", 6, -0.5, 5.5);
52 h_maxAmplitude.GetXaxis()->SetTitle(
"max bin");
65 samples = shaper.getSamples();
67 VxdID sensorID = shaper.getSensorID();
71 const int nAPVSamples = 6;
72 for (
int k = 0; k < nAPVSamples; k ++) {
73 if (samples[k] > amplitude) {
74 amplitude = samples[k];
92 for (
auto ladder : geoCache.getLadders(layer))
StoreArray< SVDShaperDigit > m_digits
SVD digits.
Class to uniquely identify a any structure of the PXD and SVD.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
TFile * m_rootFilePtr
pointer at root file used for storing histograms
virtual void beginRun() override
begin run
std::string m_shapersListName
shapers list name
std::string m_rootFileName
root file name
The SVD ShaperDigit class.
SVDHistograms< TH1F > * m_histo_maxAmplitude
vector of histograms containing the max bin distribution
std::array< APVFloatSampleType, c_nAPVSamples > APVFloatSamples
array of APVFloatSampleType objects
virtual void endRun() override
end run
static GeoCache & getInstance()
Return a reference to the singleton instance.
Abstract base class for different kinds of events.
void fill(const VxdID &vxdID, int view, Types ... args)
fill the histogram for
virtual void initialize() override
initialize
this module perfoms an analysis to find the APV25 latency
Class to faciliate easy access to sensor information of the VXD like coordinate transformations or pi...
virtual void event() override
event
H * getHistogram(const VxdID &vxdID, int view)
get a reference to the histogram for