Belle II Software  release-05-01-25
SegmentCreatorMCTruth.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 
12 #include <tracking/trackFindingCDC/findlets/base/Findlet.h>
13 
14 #include <vector>
15 #include <string>
16 
17 namespace Belle2 {
23  namespace TrackFindingCDC {
24  class CDCSegment2D;
25  class CDCWireHit;
26 
28  class SegmentCreatorMCTruth : public Findlet<const CDCWireHit, CDCSegment2D> {
29 
30  private:
32  using Super = Findlet<const CDCWireHit, CDCSegment2D>;
33 
34  public:
36  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
37 
39  std::string getDescription() final;
40 
42  void initialize() final;
43 
45  void beginEvent() final;
46 
48  void apply(const std::vector<CDCWireHit>& inputWireHits,
49  std::vector<CDCSegment2D>& outputSegments) final;
50 
51  private:
54 
56  bool m_param_reconstructedPositions = false;
57  };
58  }
60 }
Belle2::TrackFindingCDC::SegmentCreatorMCTruth::initialize
void initialize() final
Initialize the Module before event processing.
Definition: SegmentCreatorMCTruth.cc:56
Belle2::TrackFindingCDC::SegmentCreatorMCTruth::beginEvent
void beginEvent() final
Start processing the current event.
Definition: SegmentCreatorMCTruth.cc:63
Belle2::TrackFindingCDC::SegmentCreatorMCTruth::m_param_reconstructedPositions
bool m_param_reconstructedPositions
Parameter : Switch to reconstruct the positions in the segments immitating the facet ca picking up al...
Definition: SegmentCreatorMCTruth.h:64
Belle2::TrackFindingCDC::SegmentCreatorMCTruth::apply
void apply(const std::vector< CDCWireHit > &inputWireHits, std::vector< CDCSegment2D > &outputSegments) final
Main function of the segment finding by the cellular automaton.
Definition: SegmentCreatorMCTruth.cc:69
Belle2::TrackFindingCDC::SegmentCreatorMCTruth::m_param_reconstructedDriftLength
bool m_param_reconstructedDriftLength
Parameter : Setup the drift length as it can be estimated from two dimensional information.
Definition: SegmentCreatorMCTruth.h:61
Belle2::TrackFindingCDC::SegmentCreatorMCTruth::Super
Findlet< const CDCWireHit, CDCSegment2D > Super
Type of the base class.
Definition: SegmentCreatorMCTruth.h:40
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::SegmentCreatorMCTruth::getDescription
std::string getDescription() final
Short description of the findlet.
Definition: SegmentCreatorMCTruth.cc:50
Belle2::TrackFindingCDC::SegmentCreatorMCTruth::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
Definition: SegmentCreatorMCTruth.cc:35
Belle2::TrackFindingCDC::CDCSegment2D
A reconstructed sequence of two dimensional hits in one super layer.
Definition: CDCSegment2D.h:40
Belle2::TrackFindingCDC::CDCWireHit
Class representing a hit wire in the central drift chamber.
Definition: CDCWireHit.h:65
Belle2::ModuleParamList
The Module parameter list class.
Definition: ModuleParamList.h:46