Belle II Software  release-05-01-25
TrackExporter.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Oliver Frost, Dmitrii Neverov *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 #include <tracking/trackFindingCDC/findlets/base/Findlet.h>
13 
14 #include <vector>
15 #include <string>
16 
17 namespace Belle2 {
24  namespace TrackFindingCDC {
25  class CDCTrack;
26 
28  class TrackExporter : public Findlet<CDCTrack&> {
29 
30  private:
32  using Super = Findlet<CDCTrack&>;
33 
34  public:
36  std::string getDescription() final;
37 
39  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
40 
42  void initialize() final;
43 
45  void apply(std::vector<CDCTrack>& tracks) final;
46 
47  private:
49  bool m_param_exportTracks = true;
50 
52  std::string m_param_exportTracksInto = "";
53 
56 
58  double m_param_monopoleMomSeed = 0.0;
59  };
60  }
62 }
Belle2::TrackFindingCDC::TrackExporter::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
Definition: TrackExporter.cc:33
Belle2::TrackFindingCDC::TrackExporter::Super
Findlet< CDCTrack & > Super
Type of the base class.
Definition: TrackExporter.h:40
Belle2::TrackFindingCDC::CDCTrack
Class representing a sequence of three dimensional reconstructed hits.
Definition: CDCTrack.h:51
Belle2::TrackFindingCDC::TrackExporter::m_param_exportTracksInto
std::string m_param_exportTracksInto
Parameter: Name of the output StoreArray of the RecoTracks generated by this module.
Definition: TrackExporter.h:60
Belle2::TrackFindingCDC::TrackExporter::m_param_discardCovarianceMatrix
bool m_param_discardCovarianceMatrix
Parameter: Discard covariance matrix in favour of a hand written one.
Definition: TrackExporter.h:63
Belle2::TrackFindingCDC::TrackExporter::m_param_monopoleMomSeed
double m_param_monopoleMomSeed
Parameter: If non-zero, estimate seeds as for monopoles and set the momentum magnitude as this value.
Definition: TrackExporter.h:66
Belle2::TrackFindingCDC::TrackExporter::m_param_exportTracks
bool m_param_exportTracks
Parameter: Switch if a RecoTrack be generated for each track.
Definition: TrackExporter.h:57
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::TrackExporter::apply
void apply(std::vector< CDCTrack > &tracks) final
Write give tracks into track store array.
Definition: TrackExporter.cc:76
Belle2::TrackFindingCDC::TrackExporter::getDescription
std::string getDescription() final
Short description of the findlet.
Definition: TrackExporter.cc:28
Belle2::TrackFindingCDC::TrackExporter::initialize
void initialize() final
Signal initialisation phase to register store array for export.
Definition: TrackExporter.cc:65
Belle2::ModuleParamList
The Module parameter list class.
Definition: ModuleParamList.h:46