16 #include "art_root_io/TFileService.h" 58 std::vector<short>
tpc;
94 std::vector<art::Ptr<recob::Hit>> hitlist;
99 for (
auto&
hit : hitlist) {
102 std::array<float, 3> cnn_out = hitResults.
getOutput(
hit);
104 if (
hit->WireID().Plane == 2) {
106 tpc.push_back(
hit->WireID().TPC);
107 plane.push_back(
hit->WireID().Plane);
108 wire.push_back(
hit->WireID().Wire);
129 ftree = fileServiceHandle->make<TTree>(
"ftree",
"hit info");
130 ftree->Branch(
"run", &
run,
"run/I");
void analyze(art::Event const &e) override
std::vector< short > wire
std::vector< short > plane
int getIndex(const std::string &name) const
Index of column with given name, or -1 if name not found.
EDAnalyzer(fhicl::ParameterSet const &pset)
std::vector< double > score_inel
bool getByLabel(std::string const &label, std::string const &instance, Handle< PROD > &result) const
CheckCNNScore(fhicl::ParameterSet const &p)
std::vector< double > charge
#define DEFINE_ART_MODULE(klass)
SubRunNumber_t subRun() const
CheckCNNScore & operator=(CheckCNNScore const &)=delete
std::vector< double > score_none
Detector simulation of raw signals on wires.
art::InputTag fHitsModuleLabel
Declaration of signal hit object.
std::vector< short > channel
art::InputTag fNNetModuleLabel
EventNumber_t event() const
void fill_ptr_vector(std::vector< Ptr< T >> &ptrs, H const &h)
std::vector< double > peakt
std::array< float, N > getOutput(size_t key) const
Get copy of the MVA output vector at index "key".
Event finding and building.
std::vector< double > score_el