3 #include "fhiclcpp/ParameterSet.h"
16 fhicl::ParameterSet* config) {
24 it.first->Setup(it.second);
25 it.first->Initialize(it.second);
29 for (gallery::Event ev(filenames); !ev.atEnd(); ev.next()) {
30 for (
auto it : fProcessors) {
38 for (
size_t i=0; i<p->
fReco->size(); i++) {
39 p->
fReco->at(i).index = i;
56 if (truthidx >= 0 && truthidx < p->fEvent->truth.size()) {
69 for (
auto it : fProcessors) {
Metadata metadata
Event metadata.
void SetupServices(gallery::Event &ev)
std::vector< std::pair< ProcessorBase *, fhicl::ParameterSet * > > fProcessors
std::vector< event::RecoInteraction > * fReco
Reco interaction list.
RecoInteraction reco
Reconstructed interaction.
Experiment experiment
Experiment identifier.
event::Event * fEvent
The standard output event data structure.
event::RecoEvent * fRecoEvent
The standard output reco event data structure.
process_name standard_reco_uboone reco
virtual void DeleteProcessors()
A generic tree-writing event-by-event processor.
virtual void EventCleanup()
virtual void FillRecoTree()
std::vector< Interaction > truth
Associated truth interaction.
Metadata metadata
Event metadata.
Experiment experiment
Experiment identifier.
void BuildEventTree(gallery::Event &ev)
virtual bool ProcessEvent(const gallery::Event &ev, const std::vector< event::Interaction > &truth, std::vector< event::RecoInteraction > &reco)=0
virtual ~ProcessorBlock()
virtual void ProcessFiles(std::vector< std::string > filenames)
virtual void AddProcessor(ProcessorBase *processor, fhicl::ParameterSet *config)
size_t nreco
Size of reco.
std::vector< Interaction > truth
All truth interactions.