EICrecon
JANA based reconstruction for the EPIC detector
Loading...
Searching...
No Matches
TrackerMeasurementFromHits.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-3.0-or-later
2// Copyright (C) 2022 - 2025 Whitney Armstrong, Sylvester Joosten, Dmitry Romanov, Wouter Deconinck, Shujie Li
3
4#pragma once
5
6#include <DD4hep/Detector.h>
7#include <DDRec/CellIDPositionConverter.h>
8#include <algorithms/algorithm.h>
9#include <algorithms/geo.h>
10#include <edm4eic/Measurement2DCollection.h>
11#include <edm4eic/TrackerHitCollection.h>
12#include <gsl/pointers>
13#include <memory>
14#include <string>
15#include <string_view>
16
20
21namespace eicrecon {
22
24 algorithms::Algorithm<algorithms::Input<edm4eic::TrackerHitCollection>,
25 algorithms::Output<edm4eic::Measurement2DCollection>>;
26
28 public WithPodConfig<NoConfig> {
29public:
30 TrackerMeasurementFromHits(std::string_view name)
32 {"inputTrackerHits"},
33 {"outputMeasurements"},
34 "convert tracker hits to measurements."} {}
35
36 void init() final;
37 void process(const Input&, const Output&) const final;
38
39private:
40 const algorithms::GeoSvc& m_geo{algorithms::GeoSvc::instance()};
41 const dd4hep::Detector* m_dd4hepGeo{m_geo.detector()};
42 const dd4hep::rec::CellIDPositionConverter* m_converter{m_geo.cellIDPositionConverter()};
43
44 const algorithms::ActsSvc& m_acts{algorithms::ActsSvc::instance()};
45 std::shared_ptr<const ActsGeometryProvider> m_acts_context{m_acts.acts_geometry_provider()};
46
48 unsigned long m_detid_b0tracker;
49 // Special case of "OuterMPGDBarrel" with UV segmentation
50 bool m_outermpgd_UVsegmentation_mode{false};
51 unsigned long m_detid_OuterMPGD{0}; // SystemID of "OuterMPGDBarrel"
52 double m_gridAngle{0};
53};
54
55} // namespace eicrecon
Definition ActsSvc.h:13
std::shared_ptr< const ActsGeometryProvider > acts_geometry_provider() const
Definition ActsSvc.h:21
Definition TrackerMeasurementFromHits.h:28
TrackerMeasurementFromHits(std::string_view name)
Definition TrackerMeasurementFromHits.h:30
Definition WithPodConfig.h:22
Definition ActsSvc.h:11
-client
Definition CalorimeterClusterRecoCoG.cc:37
algorithms::Algorithm< algorithms::Input< edm4eic::TrackerHitCollection >, algorithms::Output< edm4eic::Measurement2DCollection > > TrackerMeasurementFromHitsAlgorithm
Definition TrackerMeasurementFromHits.h:25