9#include <beast/beamabort/modules/BeamDigitizerModule.h>
10#include <beast/beamabort/dataobjects/BeamabortSimHit.h>
12#include <framework/logging/Logger.h>
13#include <framework/core/RandomNumbers.h>
22using namespace beamabort;
51 B2INFO(
"BeamDigitizer: Initializing");
71 for (
int i = 0; i < nentries; i++) {
79 int NbEle = (int)gRandom->Gaus(meanEl, sigma);
81 double Amp = NbEle / (6.25 * 1e18);
ClassBeamabortHit - digitization simulated hit for the Beamabort detector.
ClassBeamabortSimHit - Geant4 simulated hit for the Beamabort crystal in beast.
int getPDGCode() const
Get Particle PDG (can be one of secondaries)
int getCellId() const
Get Cell ID.
double getFlightTime() const
Get Flight time from IP.
double getEnergyDep() const
Get Deposit energy.
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.
double m_FanoFactor
Fano Factor.
virtual void initialize() override
Initialize the Module.
virtual void event() override
Event processor.
virtual void endRun() override
End-of-run action.
virtual void terminate() override
Termination action.
BeamDigitizerModule()
Constructor: Sets the description, the properties and the parameters of the module.
virtual void beginRun() override
Called when entering a new run.
StoreArray< BeamabortHit > m_beamabortHit
Array for BemaabortHit.
virtual ~BeamDigitizerModule()
Destructor.
double m_WorkFunction
Work function.
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.
double sqrt(double a)
sqrt for double
Abstract base class for different kinds of events.