Belle II Software development
TrackOrienter.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 <tracking/trackFindingCDC/findlets/base/Findlet.h>
11#include <tracking/trackFindingCDC/findlets/minimal/EPreferredDirection.h>
12
13#include <vector>
14#include <string>
15
16namespace Belle2 {
22 namespace TrackFindingCDC {
23 class CDCTrack;
24
26 class TrackOrienter : public Findlet<const CDCTrack, CDCTrack> {
27
28 private:
31
32 public:
34 std::string getDescription() final;
35
37 void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
38
40 void initialize() final;
41
43 void apply(const std::vector<CDCTrack>& inputTracks, std::vector<CDCTrack>& outputTracks) final;
44
45 private:
51
56 EPreferredDirection m_trackOrientation = EPreferredDirection::c_None;
57 };
58 }
60}
The Module parameter list class.
Class representing a sequence of three dimensional reconstructed hits.
Definition: CDCTrack.h:41
Interface for a minimal algorithm part that wants to expose some parameters to a module.
Definition: Findlet.h:26
Fixes the orientation of tracks by a simple heuristic.
Definition: TrackOrienter.h:26
EPreferredDirection m_trackOrientation
Encoded desired track orientation.
Definition: TrackOrienter.h:56
void initialize() final
Signals the beginning of the event processing.
std::string m_param_trackOrientationString
Parameter: String that states the desired track orientation.
Definition: TrackOrienter.h:50
std::string getDescription() final
Short description of the findlet.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
void apply(const std::vector< CDCTrack > &inputTracks, std::vector< CDCTrack > &outputTracks) final
Main algorithm applying the adjustment of the orientation.
Abstract base class for different kinds of events.
STL namespace.