Belle II Software  release-08-01-10
SetRecoTrackMomentumModule.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 
9 #pragma once
10 
11 #include <framework/core/Module.h>
12 #include <framework/datastore/StoreArray.h>
13 #include <tracking/dataobjects/RecoTrack.h>
14 
15 namespace Belle2 {
31 
32  public:
33 
38 
40  virtual void initialize() override;
41 
43  virtual void event() override;
44 
45  private:
46 
47  bool m_automatic;
48  double m_momentum;
50  };
52 }
Base class for Modules.
Definition: Module.h:72
Set momentum magnitude for RecoTracks to given value (for runs without magnetic field)
virtual void initialize() override
Register input and output data.
bool m_automatic
Detect the B-field at origin automatically - disable module if non-zero.
virtual void event() override
Loop over RecoTracks and set the momentum magnitude.
double m_momentum
Default momentum magnitude (GeV/c) to set for RecoTracks.
SetRecoTrackMomentumModule()
Constructor: Sets the description, the properties and the parameters of the module.
StoreArray< RecoTrack > m_tracks
The array with RecoTracks to work with.
Abstract base class for different kinds of events.