LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "TrackCalorimetryAlg.h"
Classes | |
struct | HitProperties |
struct | HitPropertySorter |
Public Types | |
using | Providers_t = lar::ProviderPack< geo::GeometryCore, detinfo::LArProperties, detinfo::DetectorProperties > |
Public Member Functions | |
TrackCalorimetryAlg (fhicl::ParameterSet const &p) | |
void | reconfigure (fhicl::ParameterSet const &p) |
void | ExtractCalorimetry (std::vector< recob::Track > const &, std::vector< recob::Hit > const &, std::vector< std::vector< size_t > > const &, std::vector< anab::Calorimetry > &, std::vector< size_t > &, Providers_t providers) |
Private Types | |
typedef std::multiset< HitProperties, HitPropertySorter > | HitPropertiesMultiset_t |
Private Member Functions | |
void | ClearInternalVectors () |
void | ReserveInternalVectors (size_t s) |
std::vector< float > | CreatePathLengthFractionVector (recob::Track const &track) |
void | AnalyzeHit (recob::Hit const &, recob::Track const &, std::vector< std::pair< geo::WireID, float > > const &, std::vector< float > const &, HitPropertiesMultiset_t &, geo::GeometryCore const &) |
bool | IsInvertedTrack (HitPropertiesMultiset_t const &) |
void | MakeCalorimetryObject (HitPropertiesMultiset_t const &hpm, recob::Track const &track, size_t const &i_track, std::vector< anab::Calorimetry > &caloVector, std::vector< size_t > &assnTrackCaloVector, geo::PlaneID const &planeID) |
void | PrintHitPropertiesMultiset (HitPropertiesMultiset_t const &hpm) |
Private Attributes | |
CalorimetryAlg | caloAlg |
unsigned int | fNHitsToDetermineStart |
Definition at line 34 of file TrackCalorimetryAlg.h.
|
private |
Definition at line 80 of file TrackCalorimetryAlg.h.
using calo::TrackCalorimetryAlg::Providers_t = lar::ProviderPack< geo::GeometryCore, detinfo::LArProperties, detinfo::DetectorProperties > |
Definition at line 38 of file TrackCalorimetryAlg.h.
calo::TrackCalorimetryAlg::TrackCalorimetryAlg | ( | fhicl::ParameterSet const & | p | ) |
Title: Track Calorimetry Algorithim Class Author: Wes Ketchum (wketc), based on code in the Calorimetry_module hum@ lanl. gov
Description: Algorithm that produces a calorimetry object given a track Input: recob::Track, Assn<recob::Spacepoint,recob::Track>, Assn<recob::Hit,recob::Track> Output: anab::Calorimetry, (and Assn<anab::Calorimetry,recob::Track>)
Definition at line 16 of file TrackCalorimetryAlg.cxx.
References reconfigure().
|
private |
Definition at line 119 of file TrackCalorimetryAlg.cxx.
References caloAlg, calo::CalorimetryAlg::dEdx_AREA(), recob::Hit::Integral(), recob::Track::LocationAtPoint(), geo::PlaneID::Plane, lar::util::TrackPitchInView(), geo::GeometryCore::View(), and recob::Hit::WireID().
Referenced by ExtractCalorimetry(), and ReserveInternalVectors().
|
inlineprivate |
|
private |
Definition at line 105 of file TrackCalorimetryAlg.cxx.
References recob::Track::Length(), recob::Track::LocationAtPoint(), recob::Track::NumberTrajectoryPoints(), and R.
Referenced by ExtractCalorimetry(), and ReserveInternalVectors().
void calo::TrackCalorimetryAlg::ExtractCalorimetry | ( | std::vector< recob::Track > const & | trackVector, |
std::vector< recob::Hit > const & | hitVector, | ||
std::vector< std::vector< size_t > > const & | hit_indices_per_track, | ||
std::vector< anab::Calorimetry > & | caloVector, | ||
std::vector< size_t > & | assnTrackCaloVector, | ||
Providers_t | providers | ||
) |
Definition at line 27 of file TrackCalorimetryAlg.cxx.
References AnalyzeHit(), ClearInternalVectors(), CreatePathLengthFractionVector(), lar::ProviderPack< Providers >::get(), recob::Track::LocationAtPoint(), MakeCalorimetryObject(), recob::Track::NumberTrajectoryPoints(), ReserveInternalVectors(), and track.
Referenced by calo::TrackCalorimetry::produce().
|
private |
Definition at line 140 of file TrackCalorimetryAlg.cxx.
References fNHitsToDetermineStart.
Referenced by MakeCalorimetryObject(), PrintHitPropertiesMultiset(), and ReserveInternalVectors().
|
private |
Definition at line 168 of file TrackCalorimetryAlg.cxx.
References recob::tracking::convertCollToPoint(), IsInvertedTrack(), and recob::Track::Length().
Referenced by ExtractCalorimetry(), and ReserveInternalVectors().
|
private |
Definition at line 229 of file TrackCalorimetryAlg.cxx.
References IsInvertedTrack().
Referenced by ReserveInternalVectors().
void calo::TrackCalorimetryAlg::reconfigure | ( | fhicl::ParameterSet const & | p | ) |
Definition at line 22 of file TrackCalorimetryAlg.cxx.
References caloAlg, fNHitsToDetermineStart, fhicl::ParameterSet::get(), and calo::CalorimetryAlg::reconfigure().
Referenced by calo::TrackCalorimetry::reconfigure(), and TrackCalorimetryAlg().
|
inlineprivate |
Definition at line 84 of file TrackCalorimetryAlg.h.
References AnalyzeHit(), CreatePathLengthFractionVector(), IsInvertedTrack(), MakeCalorimetryObject(), PrintHitPropertiesMultiset(), track, and lar::dump::vector().
Referenced by ExtractCalorimetry().
|
private |
Definition at line 53 of file TrackCalorimetryAlg.h.
Referenced by AnalyzeHit(), and reconfigure().
|
private |
Definition at line 54 of file TrackCalorimetryAlg.h.
Referenced by IsInvertedTrack(), and reconfigure().