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.");
41 particle.setProductionTime(particle.getProductionTime() - collisionTime);
42 particle.setDecayTime(particle.getDecayTime() - collisionTime);
virtual void initialize() override
Initialize the Module.
virtual void event() override
Event processor.
EventT0ShifterModule()
Constructor.
StoreArray< MCParticle > m_mcParticles
MC particles.
StoreObjPtr< MCInitialParticles > m_initialParticles
beam particles
void setDescription(const std::string &description)
Sets the description of the module.
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
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.