11 #include <framework/core/Module.h>
12 #include <framework/datastore/StoreArray.h>
13 #include <tracking/dataobjects/RecoTrack.h>
Set momentum magnitude for RecoTracks to given value (for runs without magnetic field)
bool m_automatic
Detect the B-field at origin automatically - disable module if non-zero.
double m_momentum
Default momentum magnitude (GeV/c) to set for RecoTracks.
virtual void event() override
Loop over RecoTracks and set the momentum magnitude.
virtual void initialize() override
Register input and output data.
SetRecoTrackMomentumModule()
Constructor: Sets the description, the properties and the parameters of the module.
StoreArray< RecoTrack > m_tracks
The array with RecoTracks to work with.
Accessor to arrays stored in the data store.
Abstract base class for different kinds of events.