8#include <tracking/vxdHoughTracking/filters/pathFilters/ThreeHitFilter.h>
9#include <tracking/trackFindingCDC/filters/base/Filter.icc.h>
10#include <tracking/trackFindingCDC/utilities/StringManipulation.h>
11#include <framework/core/ModuleParamList.templateDetails.h>
12#include <framework/geometry/BFieldManager.h>
15using namespace TrackFindingCDC;
16using namespace vxdHoughTracking;
21 "Cut on the absolute value of cosine between the vectors (oHit - cHit) and (cHit - iHit).",
24 "Cut on the difference between circle radius and circle center to check whether the circle is compatible with passing through the IP.",
34TrackFindingCDC::Weight
37 const std::vector<TrackFindingCDC::WithWeight<const VXDHoughState*>>& previousHits = pair.first;
40 if (previousHits.size() != 2) {
44 const B2Vector3D& firstHitPos = previousHits.
at(0)->getHit()->getPosition();
45 const B2Vector3D& secondHitPos = previousHits.
at(1)->getHit()->getPosition();
46 const B2Vector3D& currentHitPos = pair.second->getHit()->getPosition();
60 return fabs(1.0 / circleDistanceIP);
The Module parameter list class.
AObject Object
Type of the object to be analysed.
static const double T
[tesla]
TrackFindingCDC::Weight operator()(const BasePathFilter::Object &pair) override
Return the weight based on the ThreeHitVariables.
ThreeHitVariables m_threeHitVariables
Construct empty ThreeHitVariables instance.
void beginRun() override
set BField value for estimator
double m_cosRZCut
cut for cosine in RZ between the two vectors (oHit - cHit) and (cHit - iHit)
double m_circleIPDistanceCut
cut on the difference between circle radius and circle center position in the x-y plane to check if t...
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the parameters.
double getCosAngleRZSimple()
calculates the cosine of the angle between the hits/vectors (RZ), returning unit: none (calculation f...
void setBFieldZ(const double bfieldZ=1.5)
Set the B-Field value used for pT calculations.
void setHits(const B2Vector3D &oHit, const B2Vector3D &cHit, const B2Vector3D &iHit)
Set hits if not given in constructor of if they need to be changed.
double getCircleDistanceIP()
calculates the distance of the point of closest approach of circle to the IP, returning unit: cm
void addParameter(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module list.
DataType at(unsigned i) const
safe member access (with boundary check!)
static void getField(const double *pos, double *field)
return the magnetic field at a given position.
Abstract base class for different kinds of events.