![]() |
LArSoft
v10_06_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "PIDAAlg.h"
Classes | |
| struct | PIDAProperties |
Public Member Functions | |
| PIDAAlg (fhicl::ParameterSet const &p) | |
| void | RunPIDAAlg (std::vector< float > const &, std::vector< float > const &) |
| void | RunPIDAAlg (anab::Calorimetry const &) |
| void | RunPIDAAlg (anab::Calorimetry const &, float &, float &) |
| float | getPIDAMean () |
| float | getPIDASigma () |
| const std::vector< float > & | getPIDAValues () |
| const std::vector< float > & | getPIDAErrors () |
| size_t | getNKDEBandwidths () |
| float | getKDEBandwidth (const size_t i_b) |
| float | getPIDAKDEMostProbable (const size_t) |
| float | getPIDAKDEFullWidthHalfMax (const size_t) |
| void | PrintPIDAValues () |
| void | setExponentConstant (float const &ex) |
| void | SetPIDATree (TTree *, TH1F *, std::vector< TH1F * >) |
| void | FillPIDATree (unsigned int, unsigned int, unsigned int, anab::Calorimetry const &) |
Private Types | |
| typedef struct pid::PIDAAlg::PIDAProperties | PIDAProperties_t |
Private Member Functions | |
| void | calculatePIDAMean () |
| void | calculatePIDASigma () |
| void | calculatePIDAIntegral (std::map< double, double > const &) |
| void | ClearInternalData () |
| void | createKDEs () |
| void | createKDE (const size_t) |
| void | calculatePIDAKDEMostProbable () |
| void | calculatePIDAKDEFullWidthHalfMax () |
| void | FillPIDAProperties (unsigned int, unsigned int, unsigned int, anab::Calorimetry const &) |
Private Attributes | |
| const float | fPIDA_BOGUS |
| float | fExponentConstant |
| float | fMinResRange |
| float | fMaxResRange |
| float | fMaxPIDAValue |
| float | fKDEEvalMaxSigma |
| float | fKDEEvalStepSize |
| std::vector< float > | fKDEBandwidths |
| std::vector< float > | fpida_values |
| std::vector< float > | fpida_errors |
| float | fpida_mean |
| float | fpida_sigma |
| float | fpida_integral_dedx |
| float | fpida_integral_pida |
| std::vector< float > | fpida_kde_mp |
| std::vector< float > | fpida_kde_fwhm |
| std::vector< float > | fpida_kde_b |
| std::vector< std::vector< float > > | fkde_distribution |
| std::vector< float > | fkde_dist_min |
| std::vector< float > | fkde_dist_max |
| util::NormalDistribution | fnormalDist |
| TTree * | fPIDATree |
| TH1F * | hPIDAvalues |
| TH1F * | hPIDAKDE [MAX_BANDWIDTHS] |
| unsigned int | fPIDAHistNbins |
| float | fPIDAHistMin |
| float | fPIDAHistMax |
| PIDAProperties_t | fPIDAProperties |
|
private |
| pid::PIDAAlg::PIDAAlg | ( | fhicl::ParameterSet const & | p | ) |
Title: PIDA Algorithim Class Author: Wes Ketchum (wketchum@lanl.gov), based on ideas/code from Bruce Baller
Description: Algorithm that calculates the PIDA from a calorimetry object Input: anab::Calorimetry Output: PIDA information
Definition at line 24 of file PIDAAlg.cxx.
References ClearInternalData().
|
private |
Definition at line 208 of file PIDAAlg.cxx.
References fExponentConstant, fpida_integral_dedx, and fpida_integral_pida.
Referenced by RunPIDAAlg().
|
private |
|
private |
|
private |
Definition at line 185 of file PIDAAlg.cxx.
References fpida_mean, and fpida_values.
Referenced by calculatePIDASigma(), and getPIDAMean().
|
private |
Definition at line 196 of file PIDAAlg.cxx.
References calculatePIDAMean(), fPIDA_BOGUS, fpida_mean, fpida_sigma, and fpida_values.
Referenced by createKDE(), FillPIDAProperties(), and getPIDASigma().
|
private |
Definition at line 41 of file PIDAAlg.cxx.
References fkde_dist_max, fkde_dist_min, fkde_distribution, fKDEBandwidths, fPIDA_BOGUS, fpida_errors, fpida_integral_dedx, fpida_integral_pida, fpida_kde_b, fpida_kde_fwhm, fpida_kde_mp, fpida_mean, fpida_sigma, and fpida_values.
Referenced by PIDAAlg(), and RunPIDAAlg().
|
private |
Definition at line 229 of file PIDAAlg.cxx.
References calculatePIDASigma(), fkde_dist_max, fkde_dist_min, fkde_distribution, fKDEBandwidths, fKDEEvalMaxSigma, fKDEEvalStepSize, fnormalDist, fpida_errors, fpida_kde_b, fpida_kde_fwhm, fpida_kde_mp, fpida_sigma, fpida_values, and util::NormalDistribution::getValue().
Referenced by createKDEs(), getPIDAKDEFullWidthHalfMax(), and getPIDAKDEMostProbable().
|
private |
Definition at line 294 of file PIDAAlg.cxx.
References createKDE(), and fKDEBandwidths.
Referenced by FillPIDAProperties().
|
private |
Definition at line 300 of file PIDAAlg.cxx.
References calculatePIDASigma(), pid::PIDAAlg::PIDAProperties::calo_index, pid::PIDAAlg::PIDAProperties::calo_KE, createKDEs(), pid::PIDAAlg::PIDAProperties::event, fkde_dist_min, fkde_distribution, fKDEBandwidths, fKDEEvalStepSize, fpida_integral_dedx, fpida_integral_pida, fpida_kde_b, fpida_kde_fwhm, fpida_kde_mp, fpida_mean, fpida_sigma, fpida_values, fPIDAProperties, fPIDATree, hPIDAKDE, hPIDAvalues, pid::PIDAAlg::PIDAProperties::integral_dedx, pid::PIDAAlg::PIDAProperties::integral_pida, pid::PIDAAlg::PIDAProperties::kde_bandwidth, pid::PIDAAlg::PIDAProperties::kde_fwhm, pid::PIDAAlg::PIDAProperties::kde_mp, anab::Calorimetry::KineticEnergy(), pid::PIDAAlg::PIDAProperties::mean, pid::PIDAAlg::PIDAProperties::n_bandwidths, pid::PIDAAlg::PIDAProperties::n_pid_pts, geo::PlaneID::Plane, anab::Calorimetry::PlaneID(), pid::PIDAAlg::PIDAProperties::planeid, anab::Calorimetry::Range(), pid::PIDAAlg::PIDAProperties::run, pid::PIDAAlg::PIDAProperties::sigma, and pid::PIDAAlg::PIDAProperties::trk_range.
Referenced by FillPIDATree().
| void pid::PIDAAlg::FillPIDATree | ( | unsigned int | run, |
| unsigned int | event, | ||
| unsigned int | calo_index, | ||
| anab::Calorimetry const & | calo | ||
| ) |
Definition at line 176 of file PIDAAlg.cxx.
References FillPIDAProperties(), and RunPIDAAlg().
Referenced by pid::PIDAAnalyzer::analyze().
|
inline |
|
inline |
| const std::vector< float > & pid::PIDAAlg::getPIDAErrors | ( | ) |
| float pid::PIDAAlg::getPIDAKDEFullWidthHalfMax | ( | const size_t | i_b | ) |
Definition at line 118 of file PIDAAlg.cxx.
References createKDE(), fPIDA_BOGUS, and fpida_kde_fwhm.
| float pid::PIDAAlg::getPIDAKDEMostProbable | ( | const size_t | i_b | ) |
| float pid::PIDAAlg::getPIDAMean | ( | ) |
Definition at line 97 of file PIDAAlg.cxx.
References calculatePIDAMean(), fPIDA_BOGUS, and fpida_mean.
Referenced by RunPIDAAlg().
| float pid::PIDAAlg::getPIDASigma | ( | ) |
Definition at line 104 of file PIDAAlg.cxx.
References calculatePIDASigma(), fPIDA_BOGUS, and fpida_sigma.
Referenced by RunPIDAAlg().
| const std::vector< float > & pid::PIDAAlg::getPIDAValues | ( | ) |
| void pid::PIDAAlg::PrintPIDAValues | ( | ) |
| void pid::PIDAAlg::RunPIDAAlg | ( | std::vector< float > const & | resRange, |
| std::vector< float > const & | dEdx | ||
| ) |
Definition at line 149 of file PIDAAlg.cxx.
References calculatePIDAIntegral(), ClearInternalData(), fExponentConstant, fMaxPIDAValue, fMaxResRange, fMinResRange, fpida_errors, and fpida_values.
Referenced by FillPIDATree(), and RunPIDAAlg().
| void pid::PIDAAlg::RunPIDAAlg | ( | anab::Calorimetry const & | calo | ) |
Definition at line 135 of file PIDAAlg.cxx.
References anab::Calorimetry::dEdx(), tca::dEdx(), anab::Calorimetry::ResidualRange(), and RunPIDAAlg().
| void pid::PIDAAlg::RunPIDAAlg | ( | anab::Calorimetry const & | calo, |
| float & | mean, | ||
| float & | sigma | ||
| ) |
Definition at line 142 of file PIDAAlg.cxx.
References getPIDAMean(), getPIDASigma(), and RunPIDAAlg().
|
inline |
| void pid::PIDAAlg::SetPIDATree | ( | TTree * | tree, |
| TH1F * | hist_vals, | ||
| std::vector< TH1F * > | hist_kde | ||
| ) |
Definition at line 58 of file PIDAAlg.cxx.
References fKDEBandwidths, fPIDAHistMax, fPIDAHistMin, fPIDAHistNbins, fPIDAProperties, fPIDATree, hPIDAKDE, hPIDAvalues, pid::PIDAAlg::PIDAProperties::kde_bandwidth, pid::PIDAAlg::PIDAProperties::kde_fwhm, pid::PIDAAlg::PIDAProperties::kde_mp, pid::PIDAAlg::PIDAProperties::leaf_structure, MAX_BANDWIDTHS, and pid::PIDAAlg::PIDAProperties::n_bandwidths.
Referenced by pid::PIDAAnalyzer::beginJob().
|
private |
Definition at line 79 of file PIDAAlg.h.
Referenced by calculatePIDAIntegral(), and RunPIDAAlg().
|
private |
Definition at line 111 of file PIDAAlg.h.
Referenced by ClearInternalData(), and createKDE().
|
private |
Definition at line 110 of file PIDAAlg.h.
Referenced by ClearInternalData(), createKDE(), and FillPIDAProperties().
|
private |
Definition at line 109 of file PIDAAlg.h.
Referenced by ClearInternalData(), createKDE(), and FillPIDAProperties().
|
private |
Definition at line 85 of file PIDAAlg.h.
Referenced by ClearInternalData(), createKDE(), createKDEs(), FillPIDAProperties(), and SetPIDATree().
|
private |
Definition at line 83 of file PIDAAlg.h.
Referenced by createKDE().
|
private |
Definition at line 84 of file PIDAAlg.h.
Referenced by createKDE(), and FillPIDAProperties().
|
private |
Definition at line 82 of file PIDAAlg.h.
Referenced by RunPIDAAlg().
|
private |
Definition at line 81 of file PIDAAlg.h.
Referenced by RunPIDAAlg().
|
private |
Definition at line 80 of file PIDAAlg.h.
Referenced by RunPIDAAlg().
|
private |
Definition at line 113 of file PIDAAlg.h.
Referenced by createKDE().
|
private |
Definition at line 77 of file PIDAAlg.h.
Referenced by calculatePIDASigma(), ClearInternalData(), getPIDAKDEFullWidthHalfMax(), getPIDAKDEMostProbable(), getPIDAMean(), and getPIDASigma().
|
private |
Definition at line 88 of file PIDAAlg.h.
Referenced by ClearInternalData(), createKDE(), getPIDAErrors(), and RunPIDAAlg().
|
private |
Definition at line 91 of file PIDAAlg.h.
Referenced by calculatePIDAIntegral(), ClearInternalData(), and FillPIDAProperties().
|
private |
Definition at line 92 of file PIDAAlg.h.
Referenced by calculatePIDAIntegral(), ClearInternalData(), and FillPIDAProperties().
|
private |
Definition at line 106 of file PIDAAlg.h.
Referenced by ClearInternalData(), createKDE(), and FillPIDAProperties().
|
private |
Definition at line 105 of file PIDAAlg.h.
Referenced by ClearInternalData(), createKDE(), FillPIDAProperties(), and getPIDAKDEFullWidthHalfMax().
|
private |
Definition at line 104 of file PIDAAlg.h.
Referenced by ClearInternalData(), createKDE(), FillPIDAProperties(), and getPIDAKDEMostProbable().
|
private |
Definition at line 89 of file PIDAAlg.h.
Referenced by calculatePIDAMean(), calculatePIDASigma(), ClearInternalData(), FillPIDAProperties(), and getPIDAMean().
|
private |
Definition at line 90 of file PIDAAlg.h.
Referenced by calculatePIDASigma(), ClearInternalData(), createKDE(), FillPIDAProperties(), and getPIDASigma().
|
private |
Definition at line 87 of file PIDAAlg.h.
Referenced by calculatePIDAMean(), calculatePIDASigma(), ClearInternalData(), createKDE(), FillPIDAProperties(), getPIDAValues(), PrintPIDAValues(), and RunPIDAAlg().
|
private |
Definition at line 120 of file PIDAAlg.h.
Referenced by SetPIDATree().
|
private |
Definition at line 119 of file PIDAAlg.h.
Referenced by SetPIDATree().
|
private |
Definition at line 118 of file PIDAAlg.h.
Referenced by SetPIDATree().
|
private |
Definition at line 147 of file PIDAAlg.h.
Referenced by FillPIDAProperties(), and SetPIDATree().
|
private |
Definition at line 115 of file PIDAAlg.h.
Referenced by FillPIDAProperties(), and SetPIDATree().
|
private |
Definition at line 117 of file PIDAAlg.h.
Referenced by FillPIDAProperties(), and SetPIDATree().
|
private |
Definition at line 116 of file PIDAAlg.h.
Referenced by FillPIDAProperties(), and SetPIDATree().