Belle II Software  release-05-01-25
SegmentOrienter.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Oliver Frost *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 #include <tracking/trackFindingCDC/findlets/base/Findlet.h>
12 
13 #include <tracking/trackFindingCDC/findlets/minimal/EPreferredDirection.h>
14 
15 #include <vector>
16 #include <string>
17 
18 namespace Belle2 {
25  namespace TrackFindingCDC {
26  class CDCSegment2D;
27 
29  class SegmentOrienter: public Findlet<const CDCSegment2D, CDCSegment2D> {
30 
31  private:
33  using Super = Findlet<const CDCSegment2D, CDCSegment2D>;
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<CDCSegment2D>& inputSegments,
47  std::vector<CDCSegment2D>& outputSegments) final;
48 
49  private:
54  std::string m_param_segmentOrientationString = "";
55 
60  EPreferredDirection m_segmentOrientation = EPreferredDirection::c_None;
61  };
62  }
64 }
Belle2::TrackFindingCDC::SegmentOrienter::m_segmentOrientation
EPreferredDirection m_segmentOrientation
Encoded desired segment orientation.
Definition: SegmentOrienter.h:68
Belle2::TrackFindingCDC::SegmentOrienter::m_param_segmentOrientationString
std::string m_param_segmentOrientationString
Parameter: String that states the desired segment orientation.
Definition: SegmentOrienter.h:62
Belle2::TrackFindingCDC::SegmentOrienter::Super
Findlet< const CDCSegment2D, CDCSegment2D > Super
Type of the base class.
Definition: SegmentOrienter.h:41
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::SegmentOrienter::getDescription
std::string getDescription() final
Short description of the findlet.
Definition: SegmentOrienter.cc:22
Belle2::TrackFindingCDC::CDCSegment2D
A reconstructed sequence of two dimensional hits in one super layer.
Definition: CDCSegment2D.h:40
Belle2::ModuleParamList
The Module parameter list class.
Definition: ModuleParamList.h:46
Belle2::TrackFindingCDC::SegmentOrienter::apply
void apply(const std::vector< CDCSegment2D > &inputSegments, std::vector< CDCSegment2D > &outputSegments) final
Main algorithm applying the adjustment of the orientation.
Definition: SegmentOrienter.cc:54
Belle2::TrackFindingCDC::SegmentOrienter::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
Definition: SegmentOrienter.cc:28
Belle2::TrackFindingCDC::SegmentOrienter::initialize
void initialize() final
Signals the beginning of the event processing.
Definition: SegmentOrienter.cc:42