Belle II Software development
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/SharedPlanePtr.h>
14
15#include <string>
16
17namespace genfit {
18 class MeasuredStateOnPlane;
19}
20
21namespace Belle2 {
26 class ModuleParamList;
27
37 public:
39 double extrapolateToPlane(genfit::MeasuredStateOnPlane& measuredStateOnPlane,
40 const genfit::SharedPlanePtr& plane) const;
41
43 void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix);
44
47
49 void resetMaterialEffects() const;
50
52 void initialize() final;
53
54 private:
57
59 std::string m_param_directionAsString = "both";
61 TrackFindingCDC::EForwardBackward m_param_direction = TrackFindingCDC::EForwardBackward::c_Unknown;
62 };
63
64}
Helper findlet for performing an extrapolation of a mSoP of one plane to another plane using the repr...
Definition Advancer.h:36
void resetMaterialEffects() const
Call this to reset the material effects back to their default value (turned on).
Definition Advancer.cc:48
bool m_param_useMaterialEffects
Use material effects during extrapolation or not.
Definition Advancer.h:56
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:23
void initialize() final
Convert the string parameter to a valid forward backward information.
Definition Advancer.cc:64
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix)
Expose the parameters.
Definition Advancer.cc:53
TrackFindingCDC::EForwardBackward m_param_direction
Direction parameter converted from the string parameters.
Definition Advancer.h:61
void setMaterialEffectsToParameterValue() const
Call this to set the material effects handling accorinf to the given parameters.
Definition Advancer.cc:43
std::string m_param_directionAsString
Parameter for the distance given to the framework (can not handle EForwardBackward directly)
Definition Advancer.h:59
The Module parameter list class.
Interface for an algorithm part that needs to receive the module processing signals.
Abstract base class for different kinds of events.