Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-09-27 07:03:00

0001 // SPDX-License-Identifier: LGPL-3.0-or-later
0002 // Copyright (C) 2024 Alex Jentsch, Jihee Kim, Brian Page
0003 //
0004 
0005 #include <algorithms/algorithm.h>
0006 #include <edm4hep/MCParticleCollection.h>
0007 #include <string>
0008 #include <string_view>
0009 
0010 #include "UndoAfterBurnerConfig.h"
0011 #include "algorithms/interfaces/WithPodConfig.h"
0012 
0013 namespace eicrecon {
0014 
0015   using UndoAfterBurnerAlgorithm = algorithms::Algorithm<
0016     algorithms::Input<
0017       edm4hep::MCParticleCollection
0018     >,
0019     algorithms::Output<
0020       edm4hep::MCParticleCollection
0021     >
0022   >;
0023 
0024   class UndoAfterBurner
0025   : public UndoAfterBurnerAlgorithm,
0026     public WithPodConfig<UndoAfterBurnerConfig> {
0027 
0028   public:
0029     UndoAfterBurner(std::string_view name)
0030       : UndoAfterBurnerAlgorithm{name,
0031                             {"inputMCParticles"},
0032                             {"outputMCParticles"},
0033                             "Apply boosts and rotations to remove crossing angle and beam effects."} {}
0034 
0035     void init();
0036     void process(const Input&, const Output&) const final;
0037 
0038   private:
0039 
0040 
0041   };
0042 }