Definition at line 38 of file TrackHitDumper_module.cc.
sbn::TrackHitDumper::TrackHitDumper |
( |
fhicl::ParameterSet const & |
p | ) |
|
|
explicit |
Definition at line 59 of file TrackHitDumper_module.cc.
62 fHitLabels =
p.get<std::vector<std::string>>(
"HitLabels");
65 std::cout <<
"Processing hits with label: " << label << std::endl;
std::vector< std::string > fHitLabels
BEGIN_PROLOG could also be cout
void sbn::TrackHitDumper::analyze |
( |
art::Event const & |
e | ) |
|
|
override |
Definition at line 70 of file TrackHitDumper_module.cc.
77 std::cout <<
"Processing hits with label: " << label << std::endl;
79 art::Handle<std::vector<recob::Hit>> hit_handle;
80 e.getByLabel(label, hit_handle);
82 std::vector<art::Ptr<recob::Hit>> hits;
83 art::fill_ptr_vector(hits, hit_handle);
85 for (art::Ptr<recob::Hit>
hit: hits) {
86 std::cout <<
"Hit on wire: " <<
hit->WireID() <<
" channel: " <<
hit->Channel() <<
" view: " <<
hit->View() << std::endl;
87 std::cout <<
"Hit amp: " <<
hit->PeakAmplitude() <<
" RMS: " <<
hit->RMS() <<
" width: " <<
hit->SigmaPeakAmplitude();
88 std::cout <<
" from: " <<
hit->StartTick() <<
" to: " <<
hit->EndTick() <<
" center: " <<
hit->PeakTime() << std::endl;
89 std::cout <<
"area: " <<
hit->Integral() <<
" sim ADC: " <<
hit->SummedADC() << std::endl;
std::vector< std::string > fHitLabels
BEGIN_PROLOG could also be cout
std::vector<std::string> sbn::TrackHitDumper::fHitLabels |
|
private |
The documentation for this class was generated from the following file: