Belle II Software  release-05-02-19
SetRecoTrackMomentumModule.h
1 /**************************************************************************
2 * BASF2 (Belle Analysis Framework 2) *
3 * Copyright(C) 2019 - Belle II Collaboration *
4 * *
5 * Author: The Belle II Collaboration *
6 * Contributors: tadeas *
7 * *
8 * This software is provided "as is" without any warranty. *
9 **************************************************************************/
10 
11 #pragma once
12 
13 #include <framework/core/Module.h>
14 #include <framework/datastore/StoreArray.h>
15 #include <tracking/dataobjects/RecoTrack.h>
16 
17 namespace Belle2 {
32  class SetRecoTrackMomentumModule : public Module {
33 
34  public:
35 
40 
42  virtual void initialize() override;
43 
45  virtual void event() override;
46 
47  private:
48 
49  bool m_automatic;
50  double m_momentum;
52  };
54 }
Belle2::SetRecoTrackMomentumModule::SetRecoTrackMomentumModule
SetRecoTrackMomentumModule()
Constructor: Sets the description, the properties and the parameters of the module.
Definition: SetRecoTrackMomentumModule.cc:26
Belle2::SetRecoTrackMomentumModule::m_automatic
bool m_automatic
Detect the B-field at origin automatically - disable module if non-zero.
Definition: SetRecoTrackMomentumModule.h:57
Belle2::SetRecoTrackMomentumModule::initialize
virtual void initialize() override
Register input and output data.
Belle2::SetRecoTrackMomentumModule::m_momentum
double m_momentum
Default momentum magnitude (GeV/c) to set for RecoTracks.
Definition: SetRecoTrackMomentumModule.h:58
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition: ECLMatchingPerformanceExpertModule.h:33
Belle2::SetRecoTrackMomentumModule::event
virtual void event() override
Loop over RecoTracks and set the momentum magnitude.
Belle2::SetRecoTrackMomentumModule::m_tracks
StoreArray< RecoTrack > m_tracks
The array with RecoTracks to work with.
Definition: SetRecoTrackMomentumModule.h:59