Belle II Software development
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
15namespace Belle2 {
28
29 public:
30
35
37 virtual void initialize() override;
38
40 virtual void event() override;
41
42 private:
43
45 double m_momentum;
47 };
49}
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.
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Abstract base class for different kinds of events.