16 #include "art_root_io/TFileService.h" 60 std::vector<short>
tpc;
97 std::vector<art::Ptr<recob::Hit> > hitlist;
103 for (
auto &
hit : hitlist){
106 std::array<float,3> cnn_out = hitResults.
getOutput(
hit);
108 if (
hit->WireID().Plane == 2){
110 tpc.push_back(
hit->WireID().TPC);
111 plane.push_back(
hit->WireID().Plane);
112 wire.push_back(
hit->WireID().Wire);
132 ftree = fileServiceHandle->make<TTree>(
"ftree",
"hit info");
133 ftree->Branch(
"run", &
run,
"run/I");
std::vector< double > score_el
void analyze(art::Event const &e) override
std::vector< double > score_none
Declaration of signal hit object.
std::vector< short > plane
int getIndex(const std::string &name) const
Index of column with given name, or -1 if name not found.
std::vector< short > channel
EDAnalyzer(fhicl::ParameterSet const &pset)
std::vector< short > wire
bool getByLabel(std::string const &label, std::string const &instance, Handle< PROD > &result) const
CheckCNNScore(fhicl::ParameterSet const &p)
#define DEFINE_ART_MODULE(klass)
std::vector< double > score_inel
SubRunNumber_t subRun() const
CheckCNNScore & operator=(CheckCNNScore const &)=delete
Detector simulation of raw signals on wires.
art::InputTag fHitsModuleLabel
std::vector< double > charge
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.