9 #include <beast/plume/modules/PlumeDigitizerModule.h>
10 #include <beast/plume/dataobjects/PlumeSimHit.h>
11 #include <beast/plume/dataobjects/PlumeHit.h>
13 #include <mdst/dataobjects/MCParticle.h>
14 #include <framework/datastore/StoreArray.h>
15 #include <framework/logging/Logger.h>
16 #include <framework/gearbox/GearDir.h>
24 using namespace plume;
36 PlumeDigitizerModule::PlumeDigitizerModule() :
Module()
52 B2INFO(
"Initializing PlumeDigitizer");
104 B2INFO(
"PLUME response model is so far empty, which means constant cluster size.");
117 B2INFO(
"Parameters gotten from PLUME.xml: ");
void setDescription(const std::string &description)
Sets the description of the module.
ClassPlumeHit - digitization simulated hit for the Microtpc detector.
Class PlumeSimHit - Geant4 simulated hit for the PLUME detector.
float getposIN_x() const
incoming track position x in G4 ref, in mm
float getposOUT_v() const
outcoming track position v in sensor ref, in mm
int getsensorID() const
sensor ID
float getposIN_y() const
incoming track position y in G4 ref, in mm
float getposOUT_u() const
outcoming track position u in sensor ref, in mm
float getposIN_z() const
incoming track position z in G4 ref, in mm
bool isOptional(const std::string &name="")
Tell the DataStore about an optional input.
StoreArray< PlumeHit > m_plumeHits
collection of PlumeHit saved in the datastore by the module
StoreArray< PlumeSimHit > m_plumeSimHits
PLUME SimHits.
virtual void initialize() override
Initialize the Module.
float m_posmm_z
G4 position z.
virtual void event() override
Event processor.
float m_posmm_u
local position u
virtual void endRun() override
End-of-run action.
virtual void getXMLData()
reads data from PLUME.xml: ladder location, pixel pitch, epitaxial thickness, integration time
virtual void terminate() override
Termination action.
virtual void beginRun() override
Called when entering a new run.
float m_posmm_y
G4 position y.
float m_posmm_v
local position v
virtual void setResponseModel()
set the parameters of the response model
int m_nofPixels
number of pixels
StoreArray< MCParticle > m_particles
PLUME particles.
float m_posmm_x
G4 position x.
virtual ~PlumeDigitizerModule()
Destructor.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.