19 #include "art_root_io/TFileService.h" 56 std::vector<short>
tpc;
61 std::vector<double>
rms;
94 std::vector < art::Ptr < recob::Hit > > hitList;
101 for (
auto const &
hit : hitList){
103 tpc.push_back(
hit->WireID().TPC);
104 plane.push_back(
hit->WireID().Plane);
105 wire.push_back(
hit->WireID().Wire);
108 rms.push_back(
hit->RMS());
110 endt.push_back(
hit->EndTick());
120 ftree = fileServiceHandle->make<TTree>(
"ftree",
"hit info");
121 ftree->Branch(
"run", &
run,
"run/I");
Handle< PROD > getHandle(SelectorBase const &) const
std::vector< double > startt
std::vector< short > plane
HitAnaPDSP & operator=(HitAnaPDSP const &)=delete
HitAnaPDSP(fhicl::ParameterSet const &p)
EDAnalyzer(fhicl::ParameterSet const &pset)
std::vector< short > channel
#define DEFINE_ART_MODULE(klass)
SubRunNumber_t subRun() const
std::vector< double > charge
Detector simulation of raw signals on wires.
void analyze(art::Event const &e) override
Declaration of signal hit object.
std::vector< double > rms
EventNumber_t event() const
std::vector< short > origin
void fill_ptr_vector(std::vector< Ptr< T >> &ptrs, H const &h)
art::InputTag fHitModuleLabel
std::vector< short > wire
std::vector< double > peakt
std::vector< double > endt
Event finding and building.