LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "PIDAAlg.h"
Classes | |
struct | PIDAProperties |
Public Member Functions | |
PIDAAlg (fhicl::ParameterSet const &p) | |
void | reconfigure (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 |
|
inline |
|
private |
Definition at line 202 of file PIDAAlg.cxx.
References fExponentConstant, fpida_integral_dedx, and fpida_integral_pida.
Referenced by RunPIDAAlg().
|
private |
|
private |
|
private |
Definition at line 178 of file PIDAAlg.cxx.
References fpida_mean, and fpida_values.
Referenced by calculatePIDASigma(), and getPIDAMean().
|
private |
Definition at line 190 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 35 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 reconfigure(), and RunPIDAAlg().
|
private |
Definition at line 220 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 281 of file PIDAAlg.cxx.
References createKDE(), and fKDEBandwidths.
Referenced by FillPIDAProperties().
|
private |
Definition at line 286 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 170 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 110 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 89 of file PIDAAlg.cxx.
References calculatePIDAMean(), fPIDA_BOGUS, and fpida_mean.
Referenced by RunPIDAAlg().
float pid::PIDAAlg::getPIDASigma | ( | ) |
Definition at line 96 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::reconfigure | ( | fhicl::ParameterSet const & | p | ) |
Title: PIDA Algorithim Class Author: Wes Ketchum (wketc), based on ideas/code from Bruce Baller hum@ lanl. gov
Description: Algorithm that calculates the PIDA from a calorimetry object Input: anab::Calorimetry Output: PIDA information
Definition at line 16 of file PIDAAlg.cxx.
References ClearInternalData(), fExponentConstant, fKDEBandwidths, fKDEEvalMaxSigma, fKDEEvalStepSize, fMaxPIDAValue, fMaxResRange, fMinResRange, fnormalDist, fPIDAHistMax, fPIDAHistMin, fPIDAHistNbins, and fhicl::ParameterSet::get().
Referenced by pid::PIDAAnalyzer::reconfigure().
void pid::PIDAAlg::RunPIDAAlg | ( | std::vector< float > const & | resRange, |
std::vector< float > const & | dEdx | ||
) |
Definition at line 140 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 125 of file PIDAAlg.cxx.
References anab::Calorimetry::dEdx(), anab::Calorimetry::ResidualRange(), and RunPIDAAlg().
void pid::PIDAAlg::RunPIDAAlg | ( | anab::Calorimetry const & | calo, |
float & | mean, | ||
float & | sigma | ||
) |
Definition at line 131 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 51 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 77 of file PIDAAlg.h.
Referenced by calculatePIDAIntegral(), reconfigure(), and RunPIDAAlg().
|
private |
Definition at line 109 of file PIDAAlg.h.
Referenced by ClearInternalData(), and createKDE().
|
private |
Definition at line 108 of file PIDAAlg.h.
Referenced by ClearInternalData(), createKDE(), and FillPIDAProperties().
|
private |
Definition at line 107 of file PIDAAlg.h.
Referenced by ClearInternalData(), createKDE(), and FillPIDAProperties().
|
private |
Definition at line 83 of file PIDAAlg.h.
Referenced by ClearInternalData(), createKDE(), createKDEs(), FillPIDAProperties(), reconfigure(), and SetPIDATree().
|
private |
Definition at line 81 of file PIDAAlg.h.
Referenced by createKDE(), and reconfigure().
|
private |
Definition at line 82 of file PIDAAlg.h.
Referenced by createKDE(), FillPIDAProperties(), and reconfigure().
|
private |
Definition at line 80 of file PIDAAlg.h.
Referenced by reconfigure(), and RunPIDAAlg().
|
private |
Definition at line 79 of file PIDAAlg.h.
Referenced by reconfigure(), and RunPIDAAlg().
|
private |
Definition at line 78 of file PIDAAlg.h.
Referenced by reconfigure(), and RunPIDAAlg().
|
private |
Definition at line 111 of file PIDAAlg.h.
Referenced by createKDE(), and reconfigure().
|
private |
Definition at line 75 of file PIDAAlg.h.
Referenced by calculatePIDASigma(), ClearInternalData(), getPIDAKDEFullWidthHalfMax(), getPIDAKDEMostProbable(), getPIDAMean(), and getPIDASigma().
|
private |
Definition at line 86 of file PIDAAlg.h.
Referenced by ClearInternalData(), createKDE(), getPIDAErrors(), and RunPIDAAlg().
|
private |
Definition at line 89 of file PIDAAlg.h.
Referenced by calculatePIDAIntegral(), ClearInternalData(), and FillPIDAProperties().
|
private |
Definition at line 90 of file PIDAAlg.h.
Referenced by calculatePIDAIntegral(), ClearInternalData(), and FillPIDAProperties().
|
private |
Definition at line 104 of file PIDAAlg.h.
Referenced by ClearInternalData(), createKDE(), and FillPIDAProperties().
|
private |
Definition at line 103 of file PIDAAlg.h.
Referenced by ClearInternalData(), createKDE(), FillPIDAProperties(), and getPIDAKDEFullWidthHalfMax().
|
private |
Definition at line 102 of file PIDAAlg.h.
Referenced by ClearInternalData(), createKDE(), FillPIDAProperties(), and getPIDAKDEMostProbable().
|
private |
Definition at line 87 of file PIDAAlg.h.
Referenced by calculatePIDAMean(), calculatePIDASigma(), ClearInternalData(), FillPIDAProperties(), and getPIDAMean().
|
private |
Definition at line 88 of file PIDAAlg.h.
Referenced by calculatePIDASigma(), ClearInternalData(), createKDE(), FillPIDAProperties(), and getPIDASigma().
|
private |
Definition at line 85 of file PIDAAlg.h.
Referenced by calculatePIDAMean(), calculatePIDASigma(), ClearInternalData(), createKDE(), FillPIDAProperties(), getPIDAValues(), PrintPIDAValues(), and RunPIDAAlg().
|
private |
Definition at line 118 of file PIDAAlg.h.
Referenced by reconfigure(), and SetPIDATree().
|
private |
Definition at line 117 of file PIDAAlg.h.
Referenced by reconfigure(), and SetPIDATree().
|
private |
Definition at line 116 of file PIDAAlg.h.
Referenced by reconfigure(), and SetPIDATree().
|
private |
Definition at line 143 of file PIDAAlg.h.
Referenced by FillPIDAProperties(), and SetPIDATree().
|
private |
Definition at line 113 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 114 of file PIDAAlg.h.
Referenced by FillPIDAProperties(), and SetPIDATree().