Belle II Software  release-05-02-19
V0FinderModule.h
1 #pragma once
2 //Object with performing the actual algorithm:
3 #include <tracking/v0Finding/fitter/V0Fitter.h>
4 
5 #include <mdst/dataobjects/Track.h>
6 
7 #include <framework/datastore/StoreArray.h>
8 #include <framework/core/Module.h>
9 
10 #include <string>
11 #include <memory>
12 
13 namespace Belle2 {
38  class V0FinderModule : public Module {
39  public:
42 
44  ~V0FinderModule() override = default;
45 
47  void initialize() override;
48 
50  void event() override;
51 
52  private:
53 
54  std::string m_arrayNameTrack;
56 
57  std::unique_ptr<V0Fitter> m_v0Fitter;
58  std::string m_arrayNameRecoTrack;
60  std::string m_arrayNameTFResult;
61  std::string m_arrayNameV0;
62 
66 
67  bool m_validation;
69 
72  std::tuple<double, double> m_MassRangeKshort = { 0.497614 - 0.005 , 0.497614 + 0.005 };
75  std::tuple<double, double> m_MassRangeLambda = { 1.115683 - 0.03, 1.115683 + 0.03 };
76 
83  bool preFilterTracks(const Track* trackPlus, const Track* trackMinus, const Const::ParticleType& v0Hypothesis);
84  // buffer some variables to speed up time, actual values will be calculated at initialization
85  double m_mKshortMin2 = 0;
86  double m_mKshortMax2 = 0;
87  double m_mLambdaMin2 = 0;
88  double m_mLambdaMax2 = 0;
89  };
91 }
Belle2::V0FinderModule::m_beamPipeRadius
double m_beamPipeRadius
Radius where inside/outside beampipe is defined.
Definition: V0FinderModule.h:63
Belle2::V0FinderModule::m_mKshortMax2
double m_mKshortMax2
pre-calculated maximum Kshort mass squared
Definition: V0FinderModule.h:86
Belle2::V0FinderModule::m_vertexChi2CutOutside
double m_vertexChi2CutOutside
Chi2 cut for V0s outside of the beampipe. Applies to all.
Definition: V0FinderModule.h:64
Belle2::V0FinderModule::m_arrayNameTrack
std::string m_arrayNameTrack
StoreArray name of the Tracks (Input).
Definition: V0FinderModule.h:54
Belle2::V0FinderModule::m_arrayNameV0
std::string m_arrayNameV0
StoreArray name of the V0 (Output).
Definition: V0FinderModule.h:61
Belle2::V0FinderModule::m_validation
bool m_validation
Flag if use validation.
Definition: V0FinderModule.h:67
Belle2::V0FinderModule::m_v0Fitter
std::unique_ptr< V0Fitter > m_v0Fitter
Object containing the actual algorithm.
Definition: V0FinderModule.h:57
Belle2::V0FinderModule::~V0FinderModule
~V0FinderModule() override=default
Acknowledgement of destructor.
Belle2::V0FinderModule::initialize
void initialize() override
Registration of StoreArrays, Relations, check proper GenFit setup.
Definition: V0FinderModule.cc:72
Belle2::Module
Base class for Modules.
Definition: Module.h:74
Belle2::V0FinderModule::m_mKshortMin2
double m_mKshortMin2
pre-calculated mininum Kshort mass squared
Definition: V0FinderModule.h:85
Belle2::V0FinderModule::m_MassRangeKshort
std::tuple< double, double > m_MassRangeKshort
range for reconstructed Kshort mass used for pre-selection default range set to nomminal KS mass +/- ...
Definition: V0FinderModule.h:72
Belle2::V0FinderModule::m_arrayNameCopiedRecoTrack
std::string m_arrayNameCopiedRecoTrack
StoreArray name of the RecoTracks.
Definition: V0FinderModule.h:59
Belle2::V0FinderModule::event
void event() override
Creates Belle2::V0s from Belle2::Tracks as described in the class documentation.
Definition: V0FinderModule.cc:108
Belle2::V0FinderModule::m_mLambdaMax2
double m_mLambdaMax2
pre-calculated maximum Lambda mass squared
Definition: V0FinderModule.h:88
Belle2::V0FinderModule::m_v0FitterMode
int m_v0FitterMode
fitter mode (0: store V0 at the first vertex fit, regardless of inner hits, 1: remove hits inside the...
Definition: V0FinderModule.h:65
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::V0FinderModule::m_tracks
StoreArray< Track > m_tracks
Actually array of mdst Tracks.
Definition: V0FinderModule.h:55
Belle2::V0FinderModule::m_MassRangeLambda
std::tuple< double, double > m_MassRangeLambda
range for reconstructed Lambda mass used for pre-selection Default range set to nominal Lambda mass +...
Definition: V0FinderModule.h:75
Belle2::V0FinderModule::preFilterTracks
bool preFilterTracks(const Track *trackPlus, const Track *trackMinus, const Const::ParticleType &v0Hypothesis)
helper function that gets the approximate mass range for the two given tracks and rejects candidates ...
Definition: V0FinderModule.cc:177
Belle2::V0FinderModule::m_arrayNameTFResult
std::string m_arrayNameTFResult
StoreArray name of the TrackFitResults (In- and Output).
Definition: V0FinderModule.h:60
Belle2::Const::ParticleType
The ParticleType class for identifying different particle types.
Definition: Const.h:284
Belle2::V0FinderModule::m_arrayNameV0ValidationVertex
std::string m_arrayNameV0ValidationVertex
StoreArray name of the V0ValidationVertex.
Definition: V0FinderModule.h:68
Belle2::Track
Class that bundles various TrackFitResults.
Definition: Track.h:35
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition: ECLMatchingPerformanceExpertModule.h:33
Belle2::V0FinderModule
A V0 finder module.
Definition: V0FinderModule.h:38
Belle2::V0FinderModule::V0FinderModule
V0FinderModule()
Setting of module description, parameters.
Definition: V0FinderModule.cc:13
Belle2::V0FinderModule::m_mLambdaMin2
double m_mLambdaMin2
pre-calculated mininum Lambda mass squared
Definition: V0FinderModule.h:87
Belle2::V0FinderModule::m_arrayNameRecoTrack
std::string m_arrayNameRecoTrack
StoreArray name of the RecoTracks (Input).
Definition: V0FinderModule.h:58