File indexing completed on 2026-11-15 09:30:21
0001
0002
0003
0004 #pragma once
0005
0006 #include <algorithms/algorithm.h>
0007 #include <edm4eic/InclusiveKinematicsCollection.h>
0008 #include <edm4hep/MCParticleCollection.h>
0009 #include <string>
0010 #include <string_view>
0011
0012 #include "algorithms/interfaces/WithPodConfig.h"
0013 #include "services/particle/ParticleSvc.h"
0014
0015 namespace eicrecon {
0016
0017 using InclusiveKinematicsTruthBornAlgorithm =
0018 algorithms::Algorithm<algorithms::Input<edm4hep::MCParticleCollection>,
0019 algorithms::Output<edm4eic::InclusiveKinematicsCollection>>;
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032 class InclusiveKinematicsTruthBorn : public InclusiveKinematicsTruthBornAlgorithm,
0033 public WithPodConfig<NoConfig> {
0034
0035 public:
0036 InclusiveKinematicsTruthBorn(std::string_view name)
0037 : InclusiveKinematicsTruthBornAlgorithm{
0038 name,
0039 {"MCParticles"},
0040 {"inclusiveKinematics"},
0041 "Determine Born-level inclusive kinematics from truth information."} {}
0042
0043 void init() final;
0044 void process(const Input&, const Output&) const final;
0045
0046 private:
0047 const algorithms::ParticleSvc& m_particleSvc = algorithms::ParticleSvc::instance();
0048 };
0049
0050 }