10 #include <sys/types.h>
32 #include "art/Framework/Core/EDProducer.h"
33 #include "art/Framework/Core/ModuleMacros.h"
34 #include "art/Utilities/make_tool.h"
35 #include "art/Framework/Principal/DataViewImpl.h"
36 #include "art/Framework/Principal/Event.h"
37 #include "art/Framework/Principal/Handle.h"
38 #include "art/Framework/Services/Registry/ServiceHandle.h"
39 #include "canvas/Utilities/Exception.h"
40 #include "art/Framework/Principal/Run.h"
41 #include "art/Framework/Principal/SubRun.h"
42 #include "canvas/Utilities/InputTag.h"
43 #include "fhiclcpp/ParameterSet.h"
44 #include "messagefacility/MessageLogger/MessageLogger.h"
82 void produce(art::Event &
e)
override;
95 produces<std::vector<recob::OpHit>>();
97 fInputModuleName =
p.get< std::string >(
"InputModule" );
99 fOpHitFinder = art::make_tool<light::IOpHitFinder> (
p.get<fhicl::ParameterSet>(
"OpHitFinder"));
104 std::cout <<
"My module on event #" << e.id().event() << std::endl;
109 std::unique_ptr<std::vector<recob::OpHit>> pulseVecPtr(std::make_unique<std::vector<recob::OpHit>>());
111 art::Handle< std::vector< raw::OpDetWaveform > > wfHandle;
114 if(!wfHandle.isValid())
116 std::cout <<Form(
"Did not find any G4 photons from a producer: %s",
"largeant") << std::endl;
119 std::cout <<
"Dimensione primo " << wfHandle->size() << std::endl;
122 for(
auto const& wvf : (*wfHandle))
128 for(
auto& opHit : opHitVec)
129 pulseVecPtr->emplace_back(opHit);
132 e.put(std::move(pulseVecPtr));
std::string fInputModuleName
Class definition file of PedAlgoRollingMean.
Class definition file of AlgoCFD.
Class definition file of PedAlgoUB.
This provides an interface for tools which are tasked with finding the baselines in input waveforms...
OpHitFinderICARUS(fhicl::ParameterSet const &p)
std::unique_ptr< light::IOpHitFinder > fOpHitFinder
void produce(art::Event &e) override
Class definition file of AlgoFixedWindow.
BEGIN_PROLOG opflashCryoW opflashCryoW triggerfilterBNB triggerfilterNuMI triggerfilterOffbeamBNB triggerfilterOffbeamNuMI triggerfilterUnknown roifinder roifinder2d gaushitTPCEE gaushitTPCWE purityana1 ophit
Class definition file of AlgoSlidingWindow.
Class definition file of AlgoThreshold.
Class definition file of PMTPulseRecoBase.
Class definition file of PedAlgoEdges.
OpHitFinderICARUS & operator=(OpHitFinderICARUS const &)=delete
std::vector< recob::OpHit > OpHitVec
art framework interface to geometry description
BEGIN_PROLOG could also be cout
Class definition file of PulseRecoManager.