13 #include "art/Framework/Core/EDProducer.h"
14 #include "art/Framework/Core/ModuleMacros.h"
15 #include "art/Framework/Principal/Event.h"
16 #include "art/Framework/Principal/Handle.h"
17 #include "art/Framework/Principal/Run.h"
18 #include "art/Framework/Principal/SubRun.h"
19 #include "canvas/Utilities/InputTag.h"
20 #include "fhiclcpp/ParameterSet.h"
21 #include "messagefacility/MessageLogger/MessageLogger.h"
48 void produce(art::Event&
e)
override;
63 ,fEnergyUnitsScale (
p.get<std::string>(
"EnergyUnitsScale",
"MeV"))
64 ,fCRTConvertUtil(fEnergyUnitsScale)
68 produces< std::vector<sim::AuxDetSimChannel> >();
75 auto adCol = std::make_unique<std::vector<sim::AuxDetSimChannel>>();
77 auto const &auxdethitcollection = e.getMany< std::vector<sim::AuxDetHit>> ();
79 for (
size_t ii = 0; ii < auxdethitcollection.size(); ii++) {
80 for (
auto ch : fCRTConvertUtil.GetAuxDetSimChannels(*(auxdethitcollection.at(ii))))
81 adCol->emplace_back(ch);
84 e.put(std::move(adCol));
sim::GenericCRTUtility fCRTConvertUtil
GenericCRT & operator=(GenericCRT const &)=delete
void produce(art::Event &e) override
object containing MC truth information necessary for making RawDigits and doing back tracking ...
GenericCRT(fhicl::ParameterSet const &p)
std::string fEnergyUnitsScale