Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // SPDX-License-Identifier: LGPL-3.0-or-later
0002 // Copyright (C) 2022, 2023 Sylvester Joosten, Dmitry Romanov, Wouter Deconinck
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 InclusiveKinematicsTruthBareAlgorithm =
0018     algorithms::Algorithm<algorithms::Input<edm4hep::MCParticleCollection>,
0019                           algorithms::Output<edm4eic::InclusiveKinematicsCollection>>;
0020 
0021 /// Inclusive kinematics from the bare final-state scattered lepton, q = k - k', without adding
0022 /// back radiated photons; see InclusiveKinematicsTruthDressed and InclusiveKinematicsTruthBorn.
0023 class InclusiveKinematicsTruthBare : public InclusiveKinematicsTruthBareAlgorithm,
0024                                      public WithPodConfig<NoConfig> {
0025 
0026 public:
0027   InclusiveKinematicsTruthBare(std::string_view name)
0028       : InclusiveKinematicsTruthBareAlgorithm{
0029             name,
0030             {"MCParticles"},
0031             {"inclusiveKinematics"},
0032             "Determine inclusive kinematics from truth information."} {}
0033 
0034   void init() final;
0035   void process(const Input&, const Output&) const final;
0036 
0037 private:
0038   const algorithms::ParticleSvc& m_particleSvc = algorithms::ParticleSvc::instance();
0039 };
0040 
0041 } // namespace eicrecon