11 #include "canvas/Utilities/InputTag.h"
20 #include "fhiclcpp/ParameterSet.h"
44 fSimPhotonTag = config ? config->get<std::string>(
"SimPhotonTag",
"largeant") :
"largeant";
59 bool ProcessEvent(
const gallery::Event& ev,
const std::vector<event::Interaction> &truth, std::vector<event::RecoInteraction>&
reco) {
61 const std::vector<sim::SimPhotons> &sim_photons = *ev.getValidHandle<std::vector<sim::SimPhotons>>(
fSimPhotonTag);
63 std::cout <<
"OpChannel: " << photons.OpChannel() << std::endl;
void Initialize(fhicl::ParameterSet *config=NULL)
process_name can override from command line with o or output photon
All information of a photon entering the sensitive optical detector volume.
process_name opflashCryoW ana
Simulation objects for optical detectors.
process_name standard_reco_uboone reco
Electron neutrino event selection.
bool ProcessEvent(const gallery::Event &ev, const std::vector< event::Interaction > &truth, std::vector< event::RecoInteraction > &reco)
#define DECLARE_SBN_PROCESSOR(classname)
Base class for event selections.
std::string fSimPhotonTag
Collection of photons which recorded on one channel.
BEGIN_PROLOG could also be cout