11 #include "canvas/Utilities/InputTag.h"
18 #include "canvas/Persistency/Common/FindManyP.h"
19 #include "fhiclcpp/ParameterSet.h"
42 fTag = config ? config->get<std::string>(
"Tag",
"pandoraCalo") :
"pandoraCalo";
44 z =
new TH1D(
"calo point z",
"calo point z", 1000, -1000, 1000);
60 bool ProcessEvent(
const gallery::Event& ev,
const std::vector<event::Interaction> &truth, std::vector<event::RecoInteraction>&
reco) {
61 const std::vector<anab::Calorimetry> calos = *ev.getValidHandle<std::vector<anab::Calorimetry>>(
fTag);
64 std::cout <<
"New Calo!\n";
66 std::cout << xyz.X() <<
" " << xyz.Y() <<
" " << xyz.Z() << std::endl;
67 if (xyz.Z() < -100.) std::cout <<
"Low!\n";
TFile * fOutputFile
The output ROOT file.
process_name opflashCryoW ana
Electron neutrino event selection.
process_name can override from command line with o or output calo
process_name standard_reco_uboone reco
#define DECLARE_SBN_PROCESSOR(classname)
Base class for event selections.
bool ProcessEvent(const gallery::Event &ev, const std::vector< event::Interaction > &truth, std::vector< event::RecoInteraction > &reco)
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< Coord_t >, ROOT::Math::GlobalCoordinateSystemTag > Point_t
Type for representation of position in physical 3D space. See recob::tracking::Coord_t for more detai...
BEGIN_PROLOG could also be cout
void Initialize(fhicl::ParameterSet *config=NULL)