Belle II Software  release-08-01-10
Advancer.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 
10 #include <tracking/trackFindingCDC/utilities/ProcessingSignalListener.h>
11 #include <tracking/trackFindingCDC/numerics/EForwardBackward.h>
12 
13 #include <genfit/MeasuredStateOnPlane.h>
14 #include <genfit/SharedPlanePtr.h>
15 
16 #include <string>
17 
18 namespace genfit {
19  class MeasuredStateOnPlane;
20 }
21 
22 namespace Belle2 {
27  class ModuleParamList;
28 
38  public:
40  double extrapolateToPlane(genfit::MeasuredStateOnPlane& measuredStateOnPlane,
41  const genfit::SharedPlanePtr& plane) const;
42 
44  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix);
45 
48 
50  void resetMaterialEffects() const;
51 
53  void initialize() final;
54 
55  private:
58 
60  std::string m_param_directionAsString = "both";
62  TrackFindingCDC::EForwardBackward m_param_direction = TrackFindingCDC::EForwardBackward::c_Unknown;
63  };
65 }
Helper findlet for performing an extrapolation of a mSoP of one plane to another plane using the repr...
Definition: Advancer.h:37
void resetMaterialEffects() const
Call this to reset the material effects back to their default value (turned on).
Definition: Advancer.cc:47
bool m_param_useMaterialEffects
Use material effects during extrapolation or not.
Definition: Advancer.h:57
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:22
void initialize() final
Convert the string parameter to a valid forward backward information.
Definition: Advancer.cc:63
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix)
Expose the parameters.
Definition: Advancer.cc:52
TrackFindingCDC::EForwardBackward m_param_direction
Direction parameter converted from the string parameters.
Definition: Advancer.h:62
void setMaterialEffectsToParameterValue() const
Call this to set the material effects handling accorinf to the given parameters.
Definition: Advancer.cc:42
std::string m_param_directionAsString
Parameter for the distance given to the framework (can not handle EForwardBackward directly)
Definition: Advancer.h:60
The Module parameter list class.
Interface for an algorithm part that needs to receive the module processing signals.
#StateOnPlane with additional covariance matrix.
EForwardBackward
Enumeration to represent the distinct possibilities of the right left passage information.
Abstract base class for different kinds of events.
Defines for I/O streams used for error and debug printing.
std::shared_ptr< genfit::DetPlane > SharedPlanePtr
Shared Pointer to a DetPlane.