Belle II Software  release-08-01-10
RecoTracksReverterModule.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 #pragma once
9 
10 #include <framework/core/Module.h>
11 #include <framework/database/DBObjPtr.h>
12 
13 #include <framework/datastore/StoreArray.h>
14 #include <tracking/dataobjects/RecoTrack.h>
15 #include <mdst/dataobjects/Track.h>
16 #include <mdst/dataobjects/TrackFitResult.h>
17 #include <tracking/dbobjects/TrackFlippingCuts.h>
18 
22 namespace Belle2 {
28 
32 
33  public:
36 
38  void initialize() override;
39 
41  void event() override;
42 
43  private:
45  std::string m_inputStoreArrayName;
49  OptionalDBObjPtr<TrackFlippingCuts> m_flipCutsFromDB{"TRKTrackFlipAndRefit_MVA_cuts"};
56 
57  };
59 }
60 
Base class for Modules.
Definition: Module.h:72
Optional DBObjPtr: This class behaves the same as the DBObjPtr except that it will not raise errors w...
Definition: DBObjPtr.h:48
StoreArray< RecoTrack > m_inputRecoTracks
Store Array of the input tracks.
StoreArray< RecoTrack > m_outputRecoTracks
Store Array of the output tracks.
void initialize() override
Declare required StoreArray.
void event() override
Event processing.
RecoTracksReverterModule()
Constructor of the module. Setting up parameters and description.
StoreArray< Track > m_tracks
Store Array of the input tracks (for relations)
std::string m_inputStoreArrayName
Name of the input StoreArray.
OptionalDBObjPtr< TrackFlippingCuts > m_flipCutsFromDB
the flipping cuts can be read from the DB
std::string m_outputStoreArrayName
Name of the output StoreArray.
Abstract base class for different kinds of events.