Belle II Software development
SegmentOrienter.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#include <tracking/trackFindingCDC/findlets/base/Findlet.h>
10
11#include <tracking/trackFindingCDC/findlets/minimal/EPreferredDirection.h>
12
13#include <vector>
14#include <string>
15
16namespace Belle2 {
23 namespace TrackFindingCDC {
24 class CDCSegment2D;
25
27 class SegmentOrienter: public Findlet<const CDCSegment2D, CDCSegment2D> {
28
29 private:
32
33 public:
35 std::string getDescription() final;
36
38 void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
39
41 void initialize() final;
42
44 void apply(const std::vector<CDCSegment2D>& inputSegments,
45 std::vector<CDCSegment2D>& outputSegments) final;
46
47 private:
53
58 EPreferredDirection m_segmentOrientation = EPreferredDirection::c_None;
59 };
60 }
62}
The Module parameter list class.
A reconstructed sequence of two dimensional hits in one super layer.
Definition: CDCSegment2D.h:39
Interface for a minimal algorithm part that wants to expose some parameters to a module.
Definition: Findlet.h:26
Fixes the orientation of segments by a simple heuristic.
std::string m_param_segmentOrientationString
Parameter: String that states the desired segment orientation.
void apply(const std::vector< CDCSegment2D > &inputSegments, std::vector< CDCSegment2D > &outputSegments) final
Main algorithm applying the adjustment of the orientation.
void initialize() final
Signals the beginning of the event processing.
EPreferredDirection m_segmentOrientation
Encoded desired segment orientation.
std::string getDescription() final
Short description of the findlet.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
Abstract base class for different kinds of events.
STL namespace.