10#include <tracking/vxdHoughTracking/entities/VXDHoughState.h>
11#include <tracking/trackFindingCDC/findlets/base/Findlet.h>
12#include <vxd/dataobjects/VxdID.h>
24 namespace vxdHoughTracking {
33 void apply(std::vector<VXDHoughState>& hits,
const std::vector<VxdID>& friendSensorList,
34 std::vector<VXDHoughState*>& selectedHits)
override
36 const unsigned short sensorInLayerSixLadder = friendSensorList.back().getSensorNumber();
38 for (
auto& hit : hits) {
43 if (std::find(friendSensorList.begin(), friendSensorList.end(), currentHitSensorID) == friendSensorList.end()) {
47 const double hitZPosition = hitData.
z;
49 if (sensorInLayerSixLadder == 1 and hitZPosition >= -1.0) {
50 selectedHits.emplace_back(&hit);
51 }
else if (sensorInLayerSixLadder == 5 and hitZPosition <= 1.0) {
52 selectedHits.emplace_back(&hit);
Interface for a minimal algorithm part that wants to expose some parameters to a module.
Class to uniquely identify a any structure of the PXD and SVD.
Select hits to be analysed in the Hough Space intercept finder for a given layer 6 sensor based on th...
void apply(std::vector< VXDHoughState > &hits, const std::vector< VxdID > &friendSensorList, std::vector< VXDHoughState * > &selectedHits) override
Load the hits in a sensor friend list for a given L6 sensor from hits and store them in selectedHits,...
Abstract base class for different kinds of events.
Cache containing the most important information of this state which will often be needed.
VxdID sensorID
SensorID of this hit.
float z
z coordinate of this hit