20 #include "art_root_io/TFileService.h" 65 std::vector<short>
tpc;
70 std::array<std::vector<double>, 4>
scores;
77 ,
fNNOutputs(p.get<std::vector<std::string>>(
"NNOutputs"))
97 std::vector<art::Ptr<recob::Hit>> hitlist;
102 for (
auto&
hit : hitlist) {
105 std::array<float, 4> cnn_out = hitResults.
getOutput(
hit);
107 if (
hit->WireID().Plane == 2) {
109 tpc.push_back(
hit->WireID().TPC);
110 plane.push_back(
hit->WireID().Plane);
111 wire.push_back(
hit->WireID().Wire);
114 for (
size_t i = 0; i <
fNNOutputs.size(); ++i) {
131 ftree = fileServiceHandle->make<TTree>(
"ftree",
"hit info");
132 ftree->Branch(
"run", &
run,
"run/I");
SubRunNumber_t subRun() const
void analyze(art::Event const &e) override
std::vector< short > wire
Declaration of signal hit object.
std::array< std::vector< double >, 4 > scores
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)
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
CheckCNNScore(fhicl::ParameterSet const &p)
std::vector< double > charge
#define DEFINE_ART_MODULE(klass)
CheckCNNScore & operator=(CheckCNNScore const &)=delete
Detector simulation of raw signals on wires.
art::InputTag fHitsModuleLabel
bool getByLabel(std::string const &label, std::string const &instance, Handle< PROD > &result) const
std::vector< short > channel
art::InputTag fNNetModuleLabel
EventNumber_t event() const
std::vector< std::string > fNNOutputs
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.