Belle II Software  release-05-02-19
TrackCreatorModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Tobias Schlüter, Thomas Hauth *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 #include <framework/core/Module.h>
13 
14 #include <TVector3.h>
15 #include <vector>
16 #include <string>
17 
18 namespace Belle2 {
32  class TrackCreatorModule : public Module {
33 
34  public:
37 
39  void initialize() override;
40 
42  void event() override;
43 
44  private:
45  // Input
47  std::string m_recoTrackColName = "";
49  std::string m_mcParticleColName = "";
50 
51  // Output
53  std::string m_trackColName = "";
55  std::string m_trackFitResultColName = "";
56 
58  std::vector<double> m_beamSpot = {0.0, 0.0, 0.0};
60  TVector3 m_beamSpotAsTVector;
62  std::vector<double> m_beamAxis = {0.0, 0.0, 1.0};
64  TVector3 m_beamAxisAsTVector;
66  std::vector<int> m_pdgCodes = {211};
67 
69  bool m_useClosestHitToIP = false;
74  bool m_useBFieldAtHit = false;
75  };
77 }
Belle2::TrackCreatorModule::m_useClosestHitToIP
bool m_useClosestHitToIP
Flag to turn on special handling which measurement to choose; especially useful for Cosmics.
Definition: TrackCreatorModule.h:77
Belle2::TrackCreatorModule::m_useBFieldAtHit
bool m_useBFieldAtHit
Flag to calculate the BField at the used hit (closest to IP or first one), instead of the one at the ...
Definition: TrackCreatorModule.h:82
Belle2::TrackCreatorModule::TrackCreatorModule
TrackCreatorModule()
Constructor adding the description and properties.
Definition: TrackCreatorModule.cc:27
Belle2::TrackCreatorModule::m_trackColName
std::string m_trackColName
Name of collection holding the Tracks (output).
Definition: TrackCreatorModule.h:61
Belle2::TrackCreatorModule::event
void event() override
Build/fit the track fit results.
Definition: TrackCreatorModule.cc:90
Belle2::TrackCreatorModule::m_beamAxisAsTVector
TVector3 m_beamAxisAsTVector
BeamAxis as TVector3.
Definition: TrackCreatorModule.h:72
Belle2::TrackCreatorModule::initialize
void initialize() override
Require and register the store arrays.
Definition: TrackCreatorModule.cc:62
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackCreatorModule::m_trackFitResultColName
std::string m_trackFitResultColName
Name of collection holding the TrackFitResult (output).
Definition: TrackCreatorModule.h:63
Belle2::TrackCreatorModule::m_recoTrackColName
std::string m_recoTrackColName
Name of collection holding the RecoTracks (input).
Definition: TrackCreatorModule.h:55
Belle2::TrackCreatorModule::m_pdgCodes
std::vector< int > m_pdgCodes
PDG codes for which TrackFitResults will be created.
Definition: TrackCreatorModule.h:74
Belle2::TrackCreatorModule::m_beamSpotAsTVector
TVector3 m_beamSpotAsTVector
BeamSpot as TVector3.
Definition: TrackCreatorModule.h:68
Belle2::TrackCreatorModule::m_beamAxis
std::vector< double > m_beamAxis
BeamAxis define the coordinate system in which the tracks will be extrapolated to the perigee.
Definition: TrackCreatorModule.h:70
Belle2::TrackCreatorModule::m_mcParticleColName
std::string m_mcParticleColName
Name of collection holding the MCParticles (input, optional).
Definition: TrackCreatorModule.h:57
Belle2::TrackCreatorModule::m_beamSpot
std::vector< double > m_beamSpot
BeamSpot define the coordinate system in which the tracks will be extrapolated to the perigee.
Definition: TrackCreatorModule.h:66