Warning, file /include/EICrecon/algorithms/reco/InclusiveKinematicsTruth.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
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/ParticleSvc.h"
0013
0014 namespace eicrecon {
0015
0016 using InclusiveKinematicsTruthAlgorithm =
0017 algorithms::Algorithm<algorithms::Input<edm4hep::MCParticleCollection>,
0018 algorithms::Output<edm4eic::InclusiveKinematicsCollection>>;
0019
0020 class InclusiveKinematicsTruth : public InclusiveKinematicsTruthAlgorithm {
0021
0022 public:
0023 InclusiveKinematicsTruth(std::string_view name)
0024 : InclusiveKinematicsTruthAlgorithm{
0025 name,
0026 {"MCParticles"},
0027 {"inclusiveKinematics"},
0028 "Determine inclusive kinematics from truth information."} {}
0029
0030 void init() final;
0031 void process(const Input&, const Output&) const final;
0032
0033 private:
0034 const algorithms::ParticleSvc& m_particleSvc = algorithms::ParticleSvc::instance();
0035 double m_crossingAngle{-0.025};
0036 };
0037
0038 }