11 #include "canvas/Utilities/InputTag.h"
20 #include "fhiclcpp/ParameterSet.h"
21 #include "../OpHitFinder/opHitFinderSBND.hh"
44 fOpDetHitTag = config ? config->get<std::string>(
"OpDetHitTag",
"ophit") :
"ophit";
45 MakeOpHits = config ? config->get<
bool>(
"MakeOpHits",
false) :
false;
62 bool ProcessEvent(
const gallery::Event& ev,
const std::vector<event::Interaction> &truth, std::vector<event::RecoInteraction>&
reco) {
63 std::vector<recob::OpHit> op_hits;
65 const std::vector<raw::OpDetWaveform> &op_waveforms = *ev.getValidHandle<std::vector<raw::OpDetWaveform>>(
"opdaq");
69 op_hits = *ev.getValidHandle<std::vector<recob::OpHit>>(
fOpDetHitTag);
74 std::cout <<
"Op hit:" <<
" channel: " <<
hit.OpChannel() <<
" time:" <<
hit.PeakTime() << std::endl;
opdet::opHitFinderSBND * _op_hit_maker
process_name opflashCryoW ana
bool ProcessEvent(const gallery::Event &ev, const std::vector< event::Interaction > &truth, std::vector< event::RecoInteraction > &reco)
process_name standard_reco_uboone reco
std::vector< recob::OpHit > MakeHits(const std::vector< raw::OpDetWaveform > &waveforms)
Electron neutrino event selection.
#define DECLARE_SBN_PROCESSOR(classname)
Base class for event selections.
const detinfo::DetectorClocksStandard * GetDetectorClocksProvider() const
ProviderManager * fProviderManager
Interface for provider access.
void Initialize(fhicl::ParameterSet *config=NULL)
BEGIN_PROLOG could also be cout