9 #include <generators/modules/EventT0ShifterModule.h>
11 #include <framework/datastore/StoreArray.h>
12 #include <framework/datastore/StoreObjPtr.h>
21 setDescription(
"Shift the time of all MCParticles so that the collision time is t=0."
22 "It reverts the shift done by the EventT0Generator module and should be used after the simulation."
23 "Note that the collisionTime in the MCInitialParticles is not changed.");
25 setPropertyFlags(c_ParallelProcessingCertified);
41 particle.setProductionTime(particle.getProductionTime() - collisionTime);
42 particle.setDecayTime(particle.getDecayTime() - collisionTime);
Module that shifts the time of all MCParticles so that the collision is at t=0.
virtual void initialize() override
Initialize the Module.
virtual void event() override
Event processor.
StoreArray< MCParticle > m_mcParticles
MC particles.
StoreObjPtr< MCInitialParticles > m_initialParticles
beam particles
bool isRequired(const std::string &name="")
Ensure this array/object has been registered previously.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.