9#include <beast/claw/modules/ClawDigitizerModule.h>
10#include <beast/claw/dataobjects/ClawSimHit.h>
11#include <framework/logging/Logger.h>
12#include <framework/gearbox/GearDir.h>
54 B2INFO(
"ClawDigitizer: Initializing");
95 for (
const auto& SimHit : SimHits) {
96 const int detNb = SimHit.getCellId();
98 const double Edep = SimHit.getEnergyDep() * 1e6;
99 const double tof = SimHit.getFlightTime();
123 GearDir content =
GearDir(
"/Detector/DetectorComponent[@name=\"CLAW\"]/Content/");
127 m_MinTime = content.getDouble(
"MinTime");
128 m_MaxTime = content.getDouble(
"MaxTime");
129 m_PEthres = content.getDouble(
"PEthres");
133 B2INFO(
"ClawDigitizer: Aquired claw locations and gas parameters");
ClassClawHit - digitization simulated hit for the Claw detector.
GearDir is the basic class used for accessing the parameter store.
void setDescription(const std::string &description)
Sets the description of the module.
Accessor to arrays stored in the data store.
T * appendNew()
Construct a new T object at the end of the array.
int getEntries() const
Get the number of objects in the array.
std::vector< Double_t > m_C_MIP_to_PE
Convertor factor MIP to PE.
virtual ~ClawDigitizerModule()
Destructor.
virtual void initialize() override
Initialize the Module.
virtual void event() override
Event processor.
ClawDigitizerModule()
Constructor: Sets the description, the properties and the parameters of the module.
virtual void endRun() override
End-of-run action.
virtual void getXMLData()
reads data from CLAW.xml: tube location, drift data filename, sigma of impulse response function
virtual void terminate() override
Termination action.
double m_TimeStep
Time step.
double m_MaxTime
Upper time limit.
int m_ScintCell
Number of CLAW scintillator cell.
virtual void beginRun() override
Called when entering a new run.
double m_PEthres
Energy threshold.
double m_MinTime
Lower time limit.
double m_C_keV_to_MIP
Convertor factor keV to MIP.
StoreArray< ClawHit > m_clawHit
array for ClawHit
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.