File indexing completed on 2026-09-08 08:25:56
0001
0002
0003
0004
0005
0006
0007 #pragma once
0008
0009 #include <algorithms/algorithm.h>
0010 #include <edm4eic/SimPulseCollection.h>
0011 #include <edm4hep/EventHeaderCollection.h>
0012 #include <string>
0013 #include <string_view>
0014
0015 #include "algorithms/digi/PulseNoiseConfig.h"
0016 #include "algorithms/interfaces/UniqueIDGenSvc.h"
0017 #include "algorithms/interfaces/WithPodConfig.h"
0018
0019 namespace eicrecon {
0020
0021 using PulseType = edm4eic::SimPulse;
0022
0023 using PulseNoiseAlgorithm = algorithms::Algorithm<
0024 algorithms::Input<edm4hep::EventHeaderCollection, PulseType::collection_type>,
0025 algorithms::Output<PulseType::collection_type>>;
0026
0027 class PulseNoise : public PulseNoiseAlgorithm, public WithPodConfig<PulseNoiseConfig> {
0028
0029 public:
0030 PulseNoise(std::string_view name)
0031 : PulseNoiseAlgorithm{name, {"RawHits"}, {"OutputPulses"}, {}} {}
0032 virtual void init() final;
0033 void process(const Input&, const Output&) const;
0034
0035 private:
0036 const algorithms::UniqueIDGenSvc& m_uid = algorithms::UniqueIDGenSvc::instance();
0037 };
0038
0039 }