10#include <ecl/modules/eclWaveformTemplateCalibrationC1Collector/eclWaveformTemplateCalibrationC1Collector.h>
13#include <framework/dataobjects/EventMetaData.h>
16#include <ecl/dataobjects/ECLDigit.h>
17#include <ecl/dataobjects/ECLDsp.h>
18#include <ecl/dbobjects/ECLCrystalCalib.h>
26REG_MODULE(eclWaveformTemplateCalibrationC1Collector);
35 setDescription(
"Module to export histogram of baseline noise of energetic waveforms from ee->gg events. First step in photon template calculation.");
64 B2INFO(
"eclWaveformTemplateCalibrationC1Collector: Experiment = " <<
m_evtMetaData->getExperiment() <<
" run = " <<
86 const int id = aECLDsp.getCellId() - 1;
91 if (aECLDigit.getCellId() - 1 ==
id) {
103 bool skipWaveform =
false;
107 if (skipWaveform)
continue;
110 float baseline = 0.0;
111 for (
int i = 0; i <
m_baselineLimit; i++) baseline += aECLDsp.getDspA()[i];
117 float temp = fabs(aECLDsp.getDspA()[i] - baseline);
118 if (temp > maxRes) maxRes = temp;
132 getObjectPtr<TH2>(
"maxResvsCrysID")->SetBinContent(i + 1, j + 1,
maxResvsCrysID->GetBinContent(i + 1, j + 1));
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...
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.
const int c_NCrystals
Number of crystals.
Abstract base class for different kinds of events.