Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-11-15 09:30:22

0001 // SPDX-License-Identifier: LGPL-3.0-or-later
0002 // Copyright (C) 2026 Alex Jentsch
0003 //
0004 
0005 #pragma once
0006 
0007 #include <algorithms/algorithm.h>
0008 #include <edm4eic/ReconstructedParticleCollection.h>
0009 #include <string>
0010 #include <string_view>
0011 
0012 #include "TransformLocalFFFrameToLabFrameConfig.h"
0013 #include "algorithms/interfaces/WithPodConfig.h"
0014 
0015 namespace eicrecon {
0016 
0017 using TransformLocalFFFrameToLabFrameAlgorithm =
0018     algorithms::Algorithm<algorithms::Input<edm4eic::ReconstructedParticleCollection>,
0019                           algorithms::Output<edm4eic::ReconstructedParticleCollection>>;
0020 
0021 class TransformLocalFFFrameToLabFrame
0022     : public TransformLocalFFFrameToLabFrameAlgorithm,
0023       public WithPodConfig<TransformLocalFFFrameToLabFrameConfig> {
0024 
0025 public:
0026   TransformLocalFFFrameToLabFrame(std::string_view name)
0027       : TransformLocalFFFrameToLabFrameAlgorithm{
0028             name,
0029             {"inputFFRecoParticles"},
0030             {"outputReconstructedParticles"},
0031             "Transform reconstructed particles in FF local frame by rotation."} {}
0032 
0033   void process(const Input&, const Output&) const final;
0034 };
0035 } // namespace eicrecon