LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "HitAnaAlg.h"
Public Member Functions | |
HitAnaAlg () | |
void | SetWireDataTree (TTree *) |
void | SetHitDataTree (std::vector< TTree * > &trees) |
void | AnalyzeWires (std::vector< recob::Wire > const &, std::vector< sim::MCHitCollection > const &, std::vector< std::vector< int >> const &, detinfo::DetectorClocksData const &, unsigned int, unsigned int) |
void | LoadHitAssocPair (std::vector< recob::Hit > const &, std::vector< std::vector< int >> const &, std::string const &) |
void | ClearHitModules () |
Private Types | |
typedef std::pair< const std::vector< recob::Hit > &, const std::vector< std::vector< int > > & > | HitAssocPair |
Private Member Functions | |
void | InitWireData (unsigned int, unsigned int) |
void | ClearWireDataHitInfo () |
void | FillHitInfo (recob::Hit const &, std::vector< HitInfo > &) |
void | FillWireInfo (recob::Wire const &, int, std::vector< sim::MCHitCollection > const &, std::vector< int > const &, detinfo::DetectorClocksData const &) |
void | ProcessROI (lar::sparse_vector< float >::datarange_t const &, int, std::vector< sim::MCHitCollection > const &, std::vector< int > const &, detinfo::DetectorClocksData const &) |
void | ROIInfo (lar::sparse_vector< float >::datarange_t const &, float &, float &, float &) |
void | FindAndStoreHitsInRange (std::vector< recob::Hit > const &, std::vector< int > const &, size_t, size_t, size_t) |
void | FindAndStoreMCHitsInRange (std::vector< sim::MCHitCollection > const &, std::vector< int > const &, size_t, size_t, detinfo::DetectorClocksData const &) |
void | SetupWireDataTree () |
Private Attributes | |
WireROIInfo | wireData |
std::vector< recob::Hit * > | hitData |
std::vector< std::string > | HitModuleLabels |
std::vector< HitAssocPair > | HitProcessingQueue |
TTree * | wireDataTree |
std::vector< TTree * > | hitDataTree |
Friends | |
class | HitAnaAlgTest |
Definition at line 105 of file HitAnaAlg.h.
|
private |
Definition at line 108 of file HitAnaAlg.h.
hit::HitAnaAlg::HitAnaAlg | ( | ) |
Title: HitAnaModule Author: wketc Inputs: hum@ lanl. govrecob::Wire (calibrated), recob::Hit, Assns<recob::Wire, recob::Hit> Outputs: validation histograms
Description: This module is intended to be yet another hit analyzer module. Its intention is (1) to compare hit-finding modules against each other, and eventually (2) to compare those to truth
Definition at line 21 of file HitAnaAlg.cxx.
References hit::WireROIInfo::NHitModules, and wireData.
void hit::HitAnaAlg::AnalyzeWires | ( | std::vector< recob::Wire > const & | WireVector, |
std::vector< sim::MCHitCollection > const & | MCHitCollectionVector, | ||
std::vector< std::vector< int >> const & | AssocVector, | ||
detinfo::DetectorClocksData const & | clock_data, | ||
unsigned int | event, | ||
unsigned int | run | ||
) |
Definition at line 103 of file HitAnaAlg.cxx.
References FillWireInfo(), and InitWireData().
Referenced by hit::HitAnaModule::analyze().
void hit::HitAnaAlg::ClearHitModules | ( | ) |
Definition at line 85 of file HitAnaAlg.cxx.
References HitModuleLabels, HitProcessingQueue, hit::WireROIInfo::NHitModules, and wireData.
Referenced by hit::HitAnaModule::analyze().
|
private |
Definition at line 125 of file HitAnaAlg.cxx.
References hit::WireROIInfo::Hits, hit::WireROIInfo::Hits_AverageCharge, hit::WireROIInfo::Hits_IntegratedCharge, hit::WireROIInfo::Hits_MeanMultiplicity, hit::WireROIInfo::Hits_PeakCharge, hit::WireROIInfo::Hits_PeakTime, hit::WireROIInfo::Hits_wAverageCharge, hit::WireROIInfo::Hits_wAverageTime, hit::WireROIInfo::MCHits_AverageCharge, hit::WireROIInfo::MCHits_IntegratedCharge, hit::WireROIInfo::MCHits_PeakCharge, hit::WireROIInfo::MCHits_PeakTime, hit::WireROIInfo::MCHits_wAverageCharge, hit::WireROIInfo::MCHits_wAverageTime, hit::WireROIInfo::NHitModules, hit::WireROIInfo::NHits, hit::WireROIInfo::NMCHits, and wireData.
Referenced by FillWireInfo().
|
private |
Definition at line 312 of file HitAnaAlg.cxx.
References recob::Hit::EndTick(), recob::Hit::GoodnessOfFit(), recob::Hit::Integral(), recob::Hit::PeakAmplitude(), recob::Hit::PeakTime(), recob::Hit::RMS(), recob::Hit::SigmaIntegral(), recob::Hit::SigmaPeakAmplitude(), recob::Hit::SigmaPeakTime(), and recob::Hit::StartTick().
Referenced by FindAndStoreHitsInRange().
|
private |
Definition at line 147 of file HitAnaAlg.cxx.
References hit::WireROIInfo::channel, recob::Wire::Channel(), ClearWireDataHitInfo(), lar::sparse_vector< T >::get_ranges(), hit::WireROIInfo::plane, ProcessROI(), hit::WireROIInfo::range_index, hit::WireROIInfo::range_size, hit::WireROIInfo::range_start, recob::Wire::SignalROI(), recob::Wire::View(), and wireData.
Referenced by AnalyzeWires().
|
private |
Definition at line 222 of file HitAnaAlg.cxx.
References Fill(), FillHitInfo(), hitData, hitDataTree, hit::WireROIInfo::Hits, hit::WireROIInfo::Hits_AverageCharge, hit::WireROIInfo::Hits_IntegratedCharge, hit::WireROIInfo::Hits_MeanMultiplicity, hit::WireROIInfo::Hits_PeakCharge, hit::WireROIInfo::Hits_PeakTime, hit::WireROIInfo::Hits_wAverageCharge, hit::WireROIInfo::Hits_wAverageTime, recob::Hit::Integral(), recob::Hit::Multiplicity(), hit::WireROIInfo::NHits, recob::Hit::PeakAmplitude(), recob::Hit::PeakTime(), recob::Hit::PeakTimeMinusRMS(), recob::Hit::PeakTimePlusRMS(), and wireData.
Referenced by ProcessROI().
|
private |
Definition at line 265 of file HitAnaAlg.cxx.
References hit::WireROIInfo::MCHits_AverageCharge, hit::WireROIInfo::MCHits_IntegratedCharge, hit::WireROIInfo::MCHits_PeakCharge, hit::WireROIInfo::MCHits_PeakTime, hit::WireROIInfo::MCHits_wAverageCharge, hit::WireROIInfo::MCHits_wAverageTime, hit::WireROIInfo::NMCHits, detinfo::DetectorClocksData::TPCTDC2Tick(), and wireData.
Referenced by ProcessROI().
|
private |
Definition at line 116 of file HitAnaAlg.cxx.
References hit::WireROIInfo::event, hit::WireROIInfo::HitModuleLabels, HitModuleLabels, hit::WireROIInfo::NHitModules, hit::WireROIInfo::run, and wireData.
Referenced by AnalyzeWires().
void hit::HitAnaAlg::LoadHitAssocPair | ( | std::vector< recob::Hit > const & | HitVector, |
std::vector< std::vector< int >> const & | AssocVector, | ||
std::string const & | HitModuleLabel | ||
) |
Definition at line 92 of file HitAnaAlg.cxx.
References hit::hitanaalgexception, HitModuleLabels, and HitProcessingQueue.
Referenced by hit::HitAnaModule::analyze().
|
private |
Definition at line 192 of file HitAnaAlg.cxx.
References lar::range_t< SIZE >::begin_index(), FindAndStoreHitsInRange(), FindAndStoreMCHitsInRange(), HitProcessingQueue, hit::WireROIInfo::integrated_charge, hit::WireROIInfo::peak_charge, hit::WireROIInfo::peak_time, ROIInfo(), lar::range_t< SIZE >::size(), wireData, and wireDataTree.
Referenced by FillWireInfo().
|
private |
Definition at line 172 of file HitAnaAlg.cxx.
References lar::range_t< SIZE >::begin_index(), util::counter(), and value.
Referenced by ProcessROI().
void hit::HitAnaAlg::SetHitDataTree | ( | std::vector< TTree * > & | trees | ) |
Definition at line 32 of file HitAnaAlg.cxx.
References hitData, and hitDataTree.
Referenced by hit::HitAnaModule::beginJob().
|
private |
Definition at line 53 of file HitAnaAlg.cxx.
References hit::WireROIInfo::channel, hit::WireROIInfo::event, hit::WireROIInfo::HitModuleLabels, hit::WireROIInfo::Hits_AverageCharge, hit::WireROIInfo::Hits_IntegratedCharge, hit::WireROIInfo::Hits_MeanMultiplicity, hit::WireROIInfo::Hits_PeakCharge, hit::WireROIInfo::Hits_PeakTime, hit::WireROIInfo::Hits_wAverageCharge, hit::WireROIInfo::Hits_wAverageTime, hit::WireROIInfo::integrated_charge, hit::WireROIInfo::MCHits_AverageCharge, hit::WireROIInfo::MCHits_IntegratedCharge, hit::WireROIInfo::MCHits_PeakCharge, hit::WireROIInfo::MCHits_PeakTime, hit::WireROIInfo::MCHits_wAverageCharge, hit::WireROIInfo::MCHits_wAverageTime, hit::WireROIInfo::NHitModules, hit::WireROIInfo::NHits, hit::WireROIInfo::NMCHits, hit::WireROIInfo::peak_charge, hit::WireROIInfo::peak_time, hit::WireROIInfo::plane, hit::WireROIInfo::range_index, hit::WireROIInfo::range_size, hit::WireROIInfo::range_start, hit::WireROIInfo::run, wireData, and wireDataTree.
Referenced by SetWireDataTree().
void hit::HitAnaAlg::SetWireDataTree | ( | TTree * | wdt | ) |
Definition at line 26 of file HitAnaAlg.cxx.
References SetupWireDataTree(), and wireDataTree.
Referenced by hit::HitAnaModule::beginJob().
|
friend |
Definition at line 173 of file HitAnaAlg.h.
|
private |
Definition at line 162 of file HitAnaAlg.h.
Referenced by FindAndStoreHitsInRange(), and SetHitDataTree().
|
private |
Definition at line 170 of file HitAnaAlg.h.
Referenced by FindAndStoreHitsInRange(), and SetHitDataTree().
|
private |
Definition at line 164 of file HitAnaAlg.h.
Referenced by ClearHitModules(), InitWireData(), and LoadHitAssocPair().
|
private |
Definition at line 165 of file HitAnaAlg.h.
Referenced by ClearHitModules(), LoadHitAssocPair(), and ProcessROI().
|
private |
Definition at line 161 of file HitAnaAlg.h.
Referenced by ClearHitModules(), ClearWireDataHitInfo(), FillWireInfo(), FindAndStoreHitsInRange(), FindAndStoreMCHitsInRange(), HitAnaAlg(), InitWireData(), ProcessROI(), and SetupWireDataTree().
|
private |
Definition at line 168 of file HitAnaAlg.h.
Referenced by ProcessROI(), SetupWireDataTree(), and SetWireDataTree().