EICrecon
JANA based reconstruction for the EPIC detector
Loading...
Searching...
No Matches
MPGDHitReconstruction.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-3.0-or-later
2// Copyright (C) 2022 - 2026 Whitney Armstrong, Sylvester Joosten, Wouter Deconinck, Dmitry Romanov, Yann Bedfer
3
4#pragma once
5
6#include <DDRec/CellIDPositionConverter.h>
7#include <Parsers/Primitives.h>
8#include <algorithms/algorithm.h>
9#include <algorithms/geo.h>
10#include <edm4eic/RawTrackerHitCollection.h>
11#include <edm4eic/TrackerHitCollection.h>
12#include <gsl/pointers>
13#include <string>
14#include <string_view>
15
18
19namespace eicrecon {
20
22 algorithms::Algorithm<algorithms::Input<edm4eic::RawTrackerHitCollection>,
23 algorithms::Output<edm4eic::TrackerHitCollection>>;
24
30 public WithPodConfig<MPGDHitReconstructionConfig> {
31
32public:
33 MPGDHitReconstruction(std::string_view name)
35 name, {"inputRawHits"}, {"outputHits"}, "reconstruct raw hits into tracker hits."} {}
36
38 void init() final;
39
41 void process(const Input&, const Output&) const final;
42
43private:
45 const algorithms::GeoSvc& m_geo{algorithms::GeoSvc::instance()};
46 const dd4hep::rec::CellIDPositionConverter* m_converter{m_geo.cellIDPositionConverter()};
47 const dd4hep::BitFieldCoder* m_id_dec;
48 // CellIDs specifying IDDescriptor fields.
49 void parseIDDescriptor();
50 int m_coordOffsets[2]; // Offsets of coordinate fields
51 dd4hep::CellID m_subVolBits{0}; // SUBVOLUME = all but coordinates
52 dd4hep::CellID m_pStripBit{0}; // 'p' strip
53 dd4hep::CellID m_nStripBit{0}; // 'n' strip
54};
55
56} // namespace eicrecon
Definition MPGDHitReconstruction.h:30
MPGDHitReconstruction(std::string_view name)
Definition MPGDHitReconstruction.h:33
Definition WithPodConfig.h:22
Definition ActsSvc.h:11
-client
Definition CalorimeterClusterRecoCoG.cc:37
algorithms::Algorithm< algorithms::Input< edm4eic::RawTrackerHitCollection >, algorithms::Output< edm4eic::TrackerHitCollection > > MPGDHitReconstructionAlgorithm
Definition MPGDHitReconstruction.h:23