LArSoft
v07_13_02
Liquid Argon Software toolkit - http://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 &, const detinfo::DetectorClocks *, 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 &, const detinfo::DetectorClocks *) |
void | ProcessROI (lar::sparse_vector< float >::datarange_t const &, int, std::vector< sim::MCHitCollection > const &, std::vector< int > const &, const detinfo::DetectorClocks *) |
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, const detinfo::DetectorClocks *) |
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 102 of file HitAnaAlg.h.
|
private |
Definition at line 104 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 18 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, | ||
const detinfo::DetectorClocks * | ts, | ||
unsigned int | event, | ||
unsigned int | run | ||
) |
Definition at line 98 of file HitAnaAlg.cxx.
References FillWireInfo(), and InitWireData().
Referenced by hit::HitAnaModule::analyze().
void hit::HitAnaAlg::ClearHitModules | ( | ) |
Definition at line 80 of file HitAnaAlg.cxx.
References HitModuleLabels, HitProcessingQueue, hit::WireROIInfo::NHitModules, and wireData.
Referenced by hit::HitAnaModule::analyze().
|
private |
Definition at line 119 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 307 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 139 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 213 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 257 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::DetectorClocks::TPCTDC2Tick(), and wireData.
Referenced by ProcessROI().
|
private |
Definition at line 110 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 86 of file HitAnaAlg.cxx.
References hit::hitanaalgexception, HitModuleLabels, and HitProcessingQueue.
Referenced by hit::HitAnaModule::analyze().
|
private |
Definition at line 184 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 164 of file HitAnaAlg.cxx.
References lar::range_t< SIZE >::begin_index(), and fhicl::detail::atom::value().
Referenced by ProcessROI().
void hit::HitAnaAlg::SetHitDataTree | ( | std::vector< TTree * > & | trees | ) |
Definition at line 27 of file HitAnaAlg.cxx.
References hitData, and hitDataTree.
Referenced by hit::HitAnaModule::beginJob().
|
private |
Definition at line 47 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 22 of file HitAnaAlg.cxx.
References SetupWireDataTree(), and wireDataTree.
Referenced by hit::HitAnaModule::beginJob().
|
friend |
Definition at line 169 of file HitAnaAlg.h.
|
private |
Definition at line 157 of file HitAnaAlg.h.
Referenced by FindAndStoreHitsInRange(), and SetHitDataTree().
|
private |
Definition at line 166 of file HitAnaAlg.h.
Referenced by FindAndStoreHitsInRange(), and SetHitDataTree().
|
private |
Definition at line 159 of file HitAnaAlg.h.
Referenced by ClearHitModules(), InitWireData(), and LoadHitAssocPair().
|
private |
Definition at line 160 of file HitAnaAlg.h.
Referenced by ClearHitModules(), LoadHitAssocPair(), and ProcessROI().
|
private |
Definition at line 156 of file HitAnaAlg.h.
Referenced by ClearHitModules(), ClearWireDataHitInfo(), FillWireInfo(), FindAndStoreHitsInRange(), FindAndStoreMCHitsInRange(), HitAnaAlg(), InitWireData(), ProcessROI(), and SetupWireDataTree().
|
private |
Definition at line 164 of file HitAnaAlg.h.
Referenced by ProcessROI(), SetupWireDataTree(), and SetWireDataTree().