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/trackingUtilities/findlets/base/Findlet.h>
10
11#include <tracking/trackFindingCDC/findlets/minimal/EPreferredDirection.h>
12
13#include <vector>
14#include <string>
15
16namespace Belle2 {
21
22
23 namespace TrackingUtilities {
24 class CDCSegment2D;
25 }
26 namespace TrackFindingCDC {
27
29 class SegmentOrienter: public TrackingUtilities::Findlet<const TrackingUtilities::CDCSegment2D, TrackingUtilities::CDCSegment2D> {
30
31 private:
34
35 public:
37 std::string getDescription() final;
38
40 void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
41
43 void initialize() final;
44
46 void apply(const std::vector<TrackingUtilities::CDCSegment2D>& inputSegments,
47 std::vector<TrackingUtilities::CDCSegment2D>& outputSegments) final;
48
49 private:
55
60 EPreferredDirection m_segmentOrientation = EPreferredDirection::c_None;
61 };
62 }
64}
The Module parameter list class.
Fixes the orientation of segments by a simple heuristic.
TrackingUtilities::Findlet< const TrackingUtilities::CDCSegment2D, TrackingUtilities::CDCSegment2D > Super
Type of the base class.
std::string m_param_segmentOrientationString
Parameter: String that states the desired segment 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 apply(const std::vector< TrackingUtilities::CDCSegment2D > &inputSegments, std::vector< TrackingUtilities::CDCSegment2D > &outputSegments) final
Main algorithm applying the adjustment of the orientation.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
A reconstructed sequence of two dimensional hits in one super layer.
Interface for a minimal algorithm part that wants to expose some parameters to a module.
Definition Findlet.h:26
STL class.
Abstract base class for different kinds of events.
STL namespace.