 |
Belle II Software
release-05-02-19
|
13 #include <framework/core/Module.h>
14 #include <framework/datastore/StoreArray.h>
15 #include <tracking/dataobjects/RecoTrack.h>
32 class SetRecoTrackMomentumModule :
public Module {
45 virtual void event()
override;
SetRecoTrackMomentumModule()
Constructor: Sets the description, the properties and the parameters of the module.
bool m_automatic
Detect the B-field at origin automatically - disable module if non-zero.
virtual void initialize() override
Register input and output data.
double m_momentum
Default momentum magnitude (GeV/c) to set for RecoTracks.
Abstract base class for different kinds of events.
Accessor to arrays stored in the data store.
virtual void event() override
Loop over RecoTracks and set the momentum magnitude.
StoreArray< RecoTrack > m_tracks
The array with RecoTracks to work with.