EICrecon
JANA based reconstruction for the EPIC detector
Loading...
Searching...
No Matches
MergeTracks.h
Go to the documentation of this file.
1// Copyright 2023, Christopher Dilks
2// Subject to the terms in the LICENSE file found in the top-level directory.
3
4// merge together TrackSegments, sorting their TrackPoints by time
5/* FIXME: only VectorMember `points` is combined, which is all that is needed
6 * for the RICH detectors. If using this algorithm for any other purpose, you
7 * may want to combine the other members and relations in `TrackSegment`.
8 */
9
10#pragma once
11
12// data model
13#include <algorithms/algorithm.h>
14#include <edm4eic/TrackSegmentCollection.h>
15#include <string>
16#include <string_view>
17#include <vector>
18
20
21namespace eicrecon {
22
24 algorithms::Algorithm<algorithms::Input<std::vector<const edm4eic::TrackSegmentCollection>>,
25 algorithms::Output<edm4eic::TrackSegmentCollection>>;
26
27class MergeTracks : public MergeTracksAlgorithm, public WithPodConfig<NoConfig> {
28
29public:
30 MergeTracks(std::string_view name)
32 {"inputTrackSegments"},
33 {"outputTrackSegments"},
34 "Effectively 'zip' the input track segments."} {}
35
36 void init() final {};
37 void process(const Input&, const Output&) const final;
38};
39} // namespace eicrecon
Definition MergeTracks.h:27
void init() final
Definition MergeTracks.h:36
MergeTracks(std::string_view name)
Definition MergeTracks.h:30
Definition WithPodConfig.h:22
-client
Definition CalorimeterClusterRecoCoG.cc:37
algorithms::Algorithm< algorithms::Input< std::vector< const edm4eic::TrackSegmentCollection > >, algorithms::Output< edm4eic::TrackSegmentCollection > > MergeTracksAlgorithm
Definition MergeTracks.h:25