EICrecon
JANA based reconstruction for the EPIC detector
Loading...
Searching...
No Matches
MatrixTransferStatic.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-3.0-or-later
2// Copyright (C) 2022, 2023 Alex Jentsch, Wouter Deconinck, Sylvester Joosten, David Lawrence, Simon Gardner
3//
4// This converted from: https://eicweb.phy.anl.gov/EIC/juggler/-/blob/master/JugReco/src/components/FarForwardParticles.cpp
5
6#pragma once
7
8#include <DD4hep/Detector.h>
9#include <DDRec/CellIDPositionConverter.h>
10#include <algorithms/algorithm.h>
11#include <algorithms/geo.h>
12#include <edm4eic/ReconstructedParticleCollection.h>
13#include <edm4eic/TrackerHitCollection.h>
14#include <edm4hep/MCParticleCollection.h>
15#include <gsl/pointers>
16#include <string>
17#include <string_view>
18
21
22namespace eicrecon {
23
24using MatrixTransferStaticAlgorithm = algorithms::Algorithm<
25 algorithms::Input<edm4hep::MCParticleCollection, edm4eic::TrackerHitCollection>,
26 algorithms::Output<edm4eic::ReconstructedParticleCollection>>;
27
29 public WithPodConfig<MatrixTransferStaticConfig> {
30
31public:
32 MatrixTransferStatic(std::string_view name)
34 {"mcParticles", "inputHitCollection"},
35 {"outputParticleCollection"},
36 "Apply 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};
46} // namespace eicrecon
Definition MatrixTransferStatic.h:29
MatrixTransferStatic(std::string_view name)
Definition MatrixTransferStatic.h:32
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 > > MatrixTransferStaticAlgorithm
Definition MatrixTransferStatic.h:26