Belle II Software  release-05-01-25
Advancer.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2017 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Nils Braun *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 #include <tracking/trackFindingCDC/utilities/ProcessingSignalListener.h>
13 #include <tracking/trackFindingCDC/numerics/EForwardBackward.h>
14 
15 #include <genfit/MeasuredStateOnPlane.h>
16 #include <genfit/SharedPlanePtr.h>
17 
18 #include <string>
19 
20 namespace genfit {
21  class MeasuredStateOnPlane;
22 }
23 
24 namespace Belle2 {
29  class ModuleParamList;
30 
40  public:
42  double extrapolateToPlane(genfit::MeasuredStateOnPlane& measuredStateOnPlane,
43  const genfit::SharedPlanePtr& plane) const;
44 
46  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix);
47 
50 
52  void resetMaterialEffects() const;
53 
55  void initialize() final;
56 
57  private:
60 
62  std::string m_param_directionAsString = "both";
64  TrackFindingCDC::EForwardBackward m_param_direction = TrackFindingCDC::EForwardBackward::c_Unknown;
65  };
67 }
genfit::SharedPlanePtr
std::shared_ptr< genfit::DetPlane > SharedPlanePtr
Shared Pointer to a DetPlane.
Definition: SharedPlanePtr.h:40
Belle2::Advancer::extrapolateToPlane
double extrapolateToPlane(genfit::MeasuredStateOnPlane &measuredStateOnPlane, const genfit::SharedPlanePtr &plane) const
Extrapolate the mSoP of one plane to another plane and return the traveled distance or NAN,...
Definition: Advancer.cc:24
Belle2::Advancer::m_param_directionAsString
std::string m_param_directionAsString
Parameter for the distance given to the framework (can not handle EForwardBackward directly)
Definition: Advancer.h:62
genfit::MeasuredStateOnPlane
#StateOnPlane with additional covariance matrix.
Definition: MeasuredStateOnPlane.h:39
Belle2::Advancer::initialize
void initialize() final
Convert the string parameter to a valid forward backward information.
Definition: Advancer.cc:65
Belle2::Advancer::resetMaterialEffects
void resetMaterialEffects() const
Call this to reset the material effects back to their default value (turned on).
Definition: Advancer.cc:49
genfit
Defines for I/O streams used for error and debug printing.
Definition: AlignablePXDRecoHit.h:19
Belle2::TrackFindingCDC::NForwardBackward::EForwardBackward
EForwardBackward
Enumeration to represent the distinct possibilities of the right left passage information.
Definition: EForwardBackward.h:35
Belle2::TrackFindingCDC::ProcessingSignalListener
Interface for an algorithm part that needs to receive the module processing signals.
Definition: ProcessingSignalListener.h:30
Belle2::Advancer::m_param_useMaterialEffects
bool m_param_useMaterialEffects
Use material effects during extrapolation or not.
Definition: Advancer.h:59
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::Advancer::setMaterialEffectsToParameterValue
void setMaterialEffectsToParameterValue() const
Call this to set the material effects handling accorinf to the given parameters.
Definition: Advancer.cc:44
Belle2::Advancer::m_param_direction
TrackFindingCDC::EForwardBackward m_param_direction
Direction parameter converted from the string parameters.
Definition: Advancer.h:64
Belle2::Advancer
Helper findlet for performing an extrapolation of a mSoP of one plane to another plane using the repr...
Definition: Advancer.h:39
Belle2::ModuleParamList
The Module parameter list class.
Definition: ModuleParamList.h:46
Belle2::Advancer::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix)
Expose the parameters.
Definition: Advancer.cc:54