10#include <tracking/kinkFinding/fitter/KinkFitter.h>
12#include <tracking/dataobjects/RecoTrack.h>
13#include <mdst/dataobjects/Track.h>
15#include <framework/datastore/StoreArray.h>
16#include <framework/core/Module.h>
18#include <tracking/dbobjects/KinkFinderParameters.h>
54 void event()
override;
82 bool ifInCDC(
const ROOT::Math::XYZVector& pos);
140 void setLine(
const double tangent,
const double offset)
Class for accessing objects in the database.
unsigned int m_f4Stored
counter for filter 4 saved Kinks
static constexpr double m_cdcInnerWallWithoutFirstLayer
Bigger radius of inner CDC wall [cm].
void fitAndStore(const Track *trackMother, const Track *trackDaughter, const short filterFlag)
Kink fitting and storing.
bool preFilterTracksToSplit(Track const *const track)
Check if the track can be a candidate to be split based on some simple selections.
CDCForwardBackwardWallLine m_cdcBackwardTopWall
Top part of backward CDC wall.
short isTrackPairSelected(const Track *motherTrack, const Track *daughterTrack)
Track pair preselection based on distance between two tracks with different options.
std::string m_arrayNameCopiedRecoTrack
StoreArray name of the RecoTrack used for creating copies.
~KinkFinderModule() override=default
Acknowledgement of destructor.
std::string m_arrayNameKink
StoreArray name of the Kink (Output).
void initialize() override
Registration of StoreArrays, Relations.
static constexpr double m_cdcInnerWithFirstLayerWall
Smaller radius of inner CDC wall [cm].
bool ifInCDC(const ROOT::Math::XYZVector &pos)
Test if the point in space is inside CDC (approximate custom geometry) with respect to shifts from ou...
void event() override
Creates Belle2::Kink from Belle2::Track as described in the class documentation.
std::string m_arrayNameTFResult
StoreArray name of the TrackFitResult (In- and Output).
unsigned int m_f2Stored
counter for filter 2 saved Kinks
DBObjPtr< KinkFinderParameters > m_kinkFinderParameters
kinkFinder parameters Database ObjPtr
unsigned int m_f3Stored
counter for filter 3 saved Kinks
static constexpr double m_cdcInnerWallWithoutFirstTwoLayers
Second bigger radius of inner CDC wall [cm].
bool preFilterMotherTracks(Track const *const track)
Check if the track can be a mother candidate based on some simple selections.
static constexpr double m_svdBeforeOuterLayer
Radius between two outer SVD layers (10.4 and 13.5 cm) [cm].
void terminate() override
Prints status summary.
bool preFilterDaughterTracks(Track const *const track)
Check if the track can be a daughter candidate based on some simple selections.
unsigned int m_f1Stored
counter for filter 1 saved Kinks
void beginRun() override
Read parameters from the database and apply to KinkFitter.
StoreArray< Track > m_tracks
StoreArray of Belle2::Track.
unsigned int m_f5Stored
counter for filter 5 saved Kinks
std::string m_arrayNameRecoTrack
StoreArray name of the RecoTrack (Input).
CDCForwardBackwardWallLine m_cdcForwardBottomWall
Bottom part of forward CDC wall.
unsigned int m_allStored
counter for all saved Kinks
CDCForwardBackwardWallLine m_cdcBackwardBottomWall
Bottom part of backward CDC wall.
bool kinkFitterModeSplitTrack()
Fitter mode 4th bit responsible for turning On/Off track splitting.
static constexpr double m_cdcOuterWall
Radius of outer CDC wall [cm].
CDCForwardBackwardWallLine m_cdcForwardTopWall
Top part of forward CDC wall.
std::string m_arrayNameTrack
StoreArray name of the Belle2::Track (Input).
KinkFinderModule()
Setting of module description, parameters.
std::unique_ptr< KinkFitter > m_kinkFitter
Object containing the algorithm of Kink creation.
Accessor to arrays stored in the data store.
Class that bundles various TrackFitResults.
Abstract base class for different kinds of events.
Structure to store the information about forward and backward walls of CDC.
double getLine(const double x) const
Return the y value of the sloping line based on the x value.
double m_offset
offset of the sloping line [cm]
double m_tangent
tangent of the sloping line
void setLine(const double tangent, const double offset)
Set parameters of slopping line.