9#include <beast/pindiode/modules/PinDigitizerModule.h>
10#include <beast/pindiode/dataobjects/PindiodeSimHit.h>
12#include <framework/logging/Logger.h>
13#include <framework/core/RandomNumbers.h>
22using namespace pindiode;
52 B2INFO(
"PinDigitizer: Initializing");
72 for (
int i = 0; i < nentries; i++) {
80 int NbEle = (int)gRandom->Gaus(meanEl, sigma);
82 double volt = NbEle * 1.602176565e-19 *
m_CrematGain * 1e12;
void setDescription(const std::string &description)
Sets the description of the module.
ClassPindiodeHit - digitization simulated hit for the Pindiode detector.
ClassPindiodeSimHit - Geant4 simulated hit for the Pindiode 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.
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.
StoreArray< PindiodeHit > m_pindiodeHit
Array for PindiodeHit.
virtual void initialize() override
Initialize the Module.
virtual void event() override
Event processor.
PinDigitizerModule()
Constructor: Sets the description, the properties and the parameters of the module.
virtual void endRun() override
End-of-run action.
virtual void terminate() override
Termination action.
virtual void beginRun() override
Called when entering a new run.
double m_CrematGain
Cremat gain.
virtual ~PinDigitizerModule()
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.