EICrecon
JANA based reconstruction for the EPIC detector
Loading...
Searching...
No Matches
FarDetectorTrackerCluster.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-3.0-or-later
2// Copyright (C) 2023 - 2025, Simon Gardner
3
4#pragma once
5
6#include <DD4hep/Detector.h>
7#include <DD4hep/Segmentations.h>
8#include <Parsers/Primitives.h>
9#include <algorithms/algorithm.h>
10#include <edm4eic/Measurement2DCollection.h>
11#include <edm4eic/TrackerHitCollection.h>
12#include <string>
13#include <string_view>
14#include <vector>
15
18
19namespace eicrecon {
20
22 algorithms::Algorithm<algorithms::Input<std::vector<edm4eic::TrackerHitCollection>>,
23 algorithms::Output<std::vector<edm4eic::Measurement2DCollection>>>;
24
26 public WithPodConfig<FarDetectorTrackerClusterConfig> {
27
28public:
29 FarDetectorTrackerCluster(std::string_view name)
31 {"inputHitCollection"},
32 {"outputClusterPositionCollection"},
33 "Simple weighted clustering of hits by x-y component of "
34 "single detector element segmentation"} {}
35
37 void init() final;
38
40 void process(const Input&, const Output&) const final;
41
43 void ClusterHits(const edm4eic::TrackerHitCollection&, edm4eic::Measurement2DCollection&) const;
44
45private:
46 const dd4hep::Detector* m_detector{nullptr};
47 const dd4hep::BitFieldCoder* m_id_dec{nullptr};
48 dd4hep::Segmentation m_seg;
49
50 int m_x_idx{0};
51 int m_y_idx{0};
52};
53
54} // namespace eicrecon
Definition FarDetectorTrackerCluster.h:26
FarDetectorTrackerCluster(std::string_view name)
Definition FarDetectorTrackerCluster.h:29
Definition WithPodConfig.h:22
Definition ActsGeometryProvider.h:28
-client
Definition CalorimeterClusterRecoCoG.cc:37
algorithms::Algorithm< algorithms::Input< std::vector< edm4eic::TrackerHitCollection > >, algorithms::Output< std::vector< edm4eic::Measurement2DCollection > > > FarDetectorTrackerClusterAlgorithm
Definition FarDetectorTrackerCluster.h:23