EICrecon
JANA based reconstruction for the EPIC detector
Loading...
Searching...
No Matches
PolynomialMatrixReconstruction.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-3.0-or-later
2// Copyright (C) 2025 Alex Jentsch
3//
4
5#pragma once
6
7#include <DD4hep/Detector.h>
8#include <DDRec/CellIDPositionConverter.h>
9#include <algorithms/algorithm.h>
10#include <algorithms/geo.h>
11#include <edm4eic/ReconstructedParticleCollection.h>
12#include <edm4eic/TrackerHitCollection.h>
13#include <edm4hep/MCParticleCollection.h>
14#include <gsl/pointers>
15#include <string>
16#include <string_view>
17
20
21namespace eicrecon {
22
23using PolynomialMatrixReconstructionAlgorithm = algorithms::Algorithm<
24 algorithms::Input<edm4hep::MCParticleCollection, edm4eic::TrackerHitCollection>,
25 algorithms::Output<edm4eic::ReconstructedParticleCollection>>;
26
28 public WithPodConfig<PolynomialMatrixReconstructionConfig> {
29
30public:
31 PolynomialMatrixReconstruction(std::string_view name)
33 name,
34 {"mcParticles", "inputHitCollection"},
35 {"outputParticleCollection"},
36 "Apply polynomial matrix method reconstruction to hits."} {}
37
38 void init() final;
39 void process(const Input&, const Output&) const final;
40
41private:
42 const dd4hep::Detector* m_detector{algorithms::GeoSvc::instance().detector()};
43 const dd4hep::rec::CellIDPositionConverter* m_converter{
44 algorithms::GeoSvc::instance().cellIDPositionConverter()};
45 double calculateOffsetFromXL(int whichOffset, double x_L, double beamEnergy) const;
46 double calculateMatrixValueFromXL(int whichElement, double x_L, double beamEnergy) const;
47};
48} // namespace eicrecon
Definition PolynomialMatrixReconstruction.h:28
PolynomialMatrixReconstruction(std::string_view name)
Definition PolynomialMatrixReconstruction.h:31
Definition WithPodConfig.h:22
Definition ActsGeometryProvider.h:28
-client
Definition CalorimeterClusterRecoCoG.cc:37
algorithms::Algorithm< algorithms::Input< edm4hep::MCParticleCollection, edm4eic::TrackerHitCollection >, algorithms::Output< edm4eic::ReconstructedParticleCollection > > PolynomialMatrixReconstructionAlgorithm
Definition PolynomialMatrixReconstruction.h:25