 |
Belle II Software
release-05-01-25
|
10 #include <tracking/trackFindingCDC/filters/facetRelation/SimpleFacetRelationFilter.h>
12 #include <tracking/trackFindingCDC/eventdata/hits/CDCFacet.h>
13 #include <tracking/trackFindingCDC/eventdata/hits/CDCWireHit.h>
15 #include <tracking/trackFindingCDC/utilities/StringManipulation.h>
17 #include <framework/core/ModuleParamList.templateDetails.h>
20 using namespace TrackFindingCDC;
23 : m_param_deviationCosCut(cos(0.4))
28 : m_param_deviationCosCut(deviationCosCut)
33 const std::string& prefix)
36 moduleParamList->
addParameter(prefixed(prefix,
"deviationCosCut"),
38 "Acceptable deviation cosine in the angle of adjacent tangents "
39 "to the drift circles.",
ParameterLine2D getStartToEndLine() const
Getter for the tangential line from the first to the third hit.
double m_param_deviationCosCut
Memory for the used direction of flight deviation.
const CDCWireHit & getStartWireHit() const
Getter for the hit wire of the first oriented wire hit.
A line with a support point and tangential vector.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the set of parameters of the filter to the module parameter list.
SimpleFacetRelationFilter()
Constructor using default direction of flight deviation cut off.
Weight operator()(const CDCFacet &fromFacet, const CDCFacet &toFacet) final
Main filter method returning the weight of the neighborhood relation.
bool isOnWire(const CDCWire &wire) const
Checks if the wire hit is based on the given wire.
const CDCWire & getEndWire() const
Getter for the wire the third oriented wire hit is based on.
void addParameter(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module list.
Abstract base class for different kinds of events.
ParameterLine2D getStartToMiddleLine() const
Getter for the tangential line from the first to the second hit.
virtual void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix)
Expose the set of parameters of the filter to the module parameter list.
Class representing a triple of neighboring oriented wire with additional trajectory information.
double cosWith(const Vector2D &rhs) const
const Vector2D & tangential() const
Gives the tangential vector of the line.
ParameterLine2D getMiddleToEndLine() const
Getter for the tangential line from the second to the third hit.
The Module parameter list class.