 |
Belle II Software
release-05-02-19
|
19 #define TRGECLFAM_SHORT_NAMES
22 #include <framework/logging/Logger.h>
25 #include "trg/ecl/modules/trgecl/TRGECLFAMModule.h"
26 #include "trg/ecl/TrgEclDigitizer.h"
27 #include "trg/ecl/TrgEclFAMFit.h"
29 #include "trg/ecl/dbobjects/TRGECLFAMPara.h"
48 TRGECLFAMModule::version()
const
50 return string(
"TRGECLFAMModule 1.00");
55 TRGECLFAMModule::TRGECLFAMModule()
59 _binTimeInterval(125),
69 string desc =
"TRGECLFAMModule(" +
version() +
")";
91 B2DEBUG(100,
"TRGECLFAMModule ... created");
100 B2DEBUG(100,
"TRGECLFAMModule ... destructed ");
111 B2DEBUG(100,
"TRGECLFAMModule::initialize ... options");
112 B2DEBUG(100,
"TRGECLFAMModule::initialize> FAM Fit Method = "
135 Threshold[para.getTCId() - 1] = (int)((para.getThreshold()) * (para.getConversionFactor()));
139 B2DEBUG(200,
"TRGECLFAMModule ... beginRun called ");
149 B2DEBUG(200,
"TRGECLFAMMoudle ... event called");
155 else if (
m_nEvent < 1e5) {
if (
m_nEvent % 10000 == 0) {B2DEBUG(200,
"TRGECLFAMModule::event> evtno= " <<
m_nEvent);}}
156 else if (
m_nEvent < 1e6) {
if (
m_nEvent % 100000 == 0) {B2DEBUG(200,
"TRGECLFAMModule::event> evtno= " <<
m_nEvent);}}
165 obj_trgeclDigi-> setFADC(
_FADC);
166 obj_trgeclDigi->
setup();
175 obj_trgeclfit-> SetAnaTagFlag(
_famana);
189 delete obj_trgeclDigi;
190 delete obj_trgeclfit;
201 B2DEBUG(200,
"TRGECLFAMModule ... endRun called ");
209 B2DEBUG(100,
"TRGECLFAMModule ... terminate called ");
int m_nEvent
Event number.
std::vector< std::vector< double > > TCDigiT
Digitized TC T [ns].
void setDescription(const std::string &description)
Sets the description of the module.
int _ConditionDB
Use Condition DB.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
StoreArray< TRGECLHit > m_TRGECLHit
output for TRGECLHit
StoreArray< TRGECLFAMAna > m_TRGECLFAMAna
output for TRGECLFAMAna
int _FADC
Set Shaping Function.
int _famana
save FAM ana table
std::string version(void) const
returns version of TRGECLFAMModule.
StoreArray< TRGECLWaveform > m_TRGECLWaveform
output for TRGECLWaveform
int _beambkgtag
save Beam background tag in TRGECLHit table
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
int _threshold
Threshold input.
virtual void initialize() override
Initilizes TRGECLFAMModule.
virtual ~TRGECLFAMModule()
Destructor.
virtual void terminate() override
Called when processing ended.
Abstract base class for different kinds of events.
std::vector< int > Threshold
Threshold.
virtual void endRun() override
Called when run ended.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
int _binTimeInterval
Time interval.
virtual void beginRun() override
Called when new run started.
DBArray< TRGECLFAMPara > m_FAMPara
FAM Parameters.
int _debugLevel
Parameters.
virtual void event() override
Called event by event.
StoreArray< TRGECLDigi0 > m_TRGECLDigi0
output for TRGECLDigi0
std::vector< std::vector< double > > TCDigiE
Digitized TC E [GeV].