EICrecon
JANA based reconstruction for the EPIC detector
Loading...
Searching...
No Matches
TransformBreitFrame.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-3.0-or-later
2// Copyright (C) 2024 John Lajoie
3
4#pragma once
5
6#include <algorithms/algorithm.h>
7#include <edm4eic/InclusiveKinematicsCollection.h>
8#include <edm4eic/ReconstructedParticleCollection.h>
9#include <edm4hep/MCParticleCollection.h>
10#include <string>
11#include <string_view>
12
15
16namespace eicrecon {
17
18using TransformBreitFrameAlgorithm = algorithms::Algorithm<
19 algorithms::Input<edm4hep::MCParticleCollection, edm4eic::InclusiveKinematicsCollection,
20 edm4eic::ReconstructedParticleCollection>,
21 algorithms::Output<edm4eic::ReconstructedParticleCollection>>;
22
24
25public:
26 TransformBreitFrame(std::string_view name)
28 name,
29 {"inputMCParticles", "inputInclusiveKinematics", "inputReconstructedParticles"},
30 {"outputReconstructedParticles"},
31 "Transforms a set of particles from the lab frame to the Breit frame"} {}
32
33 // algorithm initialization
34 void init() final {};
35
36 // run algorithm
37 void process(const Input&, const Output&) const final;
38
39private:
40 const algorithms::ParticleSvc& m_particleSvc = algorithms::ParticleSvc::instance();
41 double m_crossingAngle{-0.025};
42
43}; // end TransformBreitFrame definition
44
45} // namespace eicrecon
Definition ParticleSvc.h:13
Definition TransformBreitFrame.h:23
TransformBreitFrame(std::string_view name)
Definition TransformBreitFrame.h:26
void init() final
Definition TransformBreitFrame.h:34
Definition WithPodConfig.h:22
-client
Definition CalorimeterClusterRecoCoG.cc:37
algorithms::Algorithm< algorithms::Input< edm4hep::MCParticleCollection, edm4eic::InclusiveKinematicsCollection, edm4eic::ReconstructedParticleCollection >, algorithms::Output< edm4eic::ReconstructedParticleCollection > > TransformBreitFrameAlgorithm
Definition TransformBreitFrame.h:21