LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "ClusterParamsAlg.h"
Public Member Functions | |
ClusterParamsAlg () | |
Default constructor. More... | |
ClusterParamsAlg (const std::vector< util::PxHit > &) | |
Alternative constructor with larutil::PxHit vector. More... | |
~ClusterParamsAlg () | |
void | Initialize () |
void | SetMinNHits (size_t nhit) |
size_t | MinNHits () const |
int | SetHits (const std::vector< util::PxHit > &) |
void | SetRefineDirectionQMin (double qmin) |
void | SetVerbose (bool yes=true) |
template<typename Stream > | |
void | Report (Stream &stream) const |
template<typename Stream > | |
void | TimeReport (Stream &stream) const |
void | GetFANNVector (std::vector< float > &data) |
void | PrintFANNVector () |
void | FillParams (bool override_DoGetAverages=false, bool override_DoGetRoughAxis=false, bool override_DoGetProfileInfo=false, bool override_DoRefineStartPointsAndDirection=false, bool override_DoGetFinalSlope=false, bool override_DoTrackShowerSep=false, bool override_DoEndCharge=false) |
const cluster_params & | GetParams () const |
void | GetAverages (bool override=false) |
void | GetRoughAxis (bool override=false) |
void | GetProfileInfo (bool override=false) |
void | RefineStartPoints (bool override=false) |
void | GetFinalSlope (bool override=false) |
void | GetEndCharges (bool override_=false) |
void | RefineDirection (bool override=false) |
void | RefineStartPointAndDirection (bool override=false) |
void | TrackShowerSeparation (bool override=false) |
void | setNeuralNetPath (std::string s) |
void | FillPolygon () |
void | GetOpeningAngle () |
const util::PxPoint & | RoughStartPoint () |
const util::PxPoint & | RoughEndPoint () |
double | RoughSlope () |
double | RoughIntercept () |
double | StartCharge (float length=1., unsigned int nbins=10) |
Returns the expected charge at the beginning of the cluster. More... | |
double | EndCharge (float length=1., unsigned int nbins=10) |
Returns the expected charge at the end of the cluster. More... | |
float | MultipleHitWires () |
Returns the number of multiple hits per wire. More... | |
float | MultipleHitDensity () |
Returns the number of multiple hits per wire. More... | |
void | EnableFANN () |
void | DisableFANN () |
size_t | GetNHits () const |
const std::vector< util::PxHit > & | GetHitVector () const |
int | Plane () const |
void | SetPlane (int p) |
Public Attributes | |
cluster::cluster_params | fParams |
std::string | fNeuralNetPath |
std::vector< std::string > | fTimeRecord_ProcName |
std::vector< double > | fTimeRecord_ProcTime |
Protected Member Functions | |
double | IntegrateFitCharge (double from_length, double to_length, unsigned int fit_first_bin, unsigned int fit_end_bin) |
Integrates the charge between two positions in the cluster axis. More... | |
Static Protected Member Functions | |
static double | LinearIntegral (double m, double q, double x1, double x2) |
Returns the integral of f(x) = mx + q defined in [x1, x2]. More... | |
Definition at line 42 of file ClusterParamsAlg.h.
cluster::ClusterParamsAlg::ClusterParamsAlg | ( | ) |
Default constructor.
Definition at line 25 of file ClusterParamsAlg.cxx.
References enableFANN, fGSer, fMinNHits, Initialize(), and verbose.
cluster::ClusterParamsAlg::ClusterParamsAlg | ( | const std::vector< util::PxHit > & | inhitlist | ) |
Alternative constructor with larutil::PxHit vector.
Definition at line 43 of file ClusterParamsAlg.cxx.
References enableFANN, fGSer, fMinNHits, SetHits(), and verbose.
|
inline |
|
inline |
void cluster::ClusterParamsAlg::EnableFANN | ( | ) |
Definition at line 236 of file ClusterParamsAlg.cxx.
References enableFANN.
Referenced by RoughIntercept().
double cluster::ClusterParamsAlg::EndCharge | ( | float | length = 1. , |
unsigned int | nbins = 10 |
||
) |
Returns the expected charge at the end of the cluster.
nbins | use at least this number of charge bins from charge profile |
length | space before the end of cluster where to collect charge, in cm the expected charge at the end of the cluster |
This method returns the charge under the last length cm of the cluster. See StartCharge() for a detailed explanation. For even more details, see IntegrateFitCharge().
Definition at line 1787 of file ClusterParamsAlg.cxx.
References fChargeProfile, fHitVector, fProjectedLength, GetProfileInfo(), and IntegrateFitCharge().
Referenced by cluster::StandardClusterParamsAlg::EndCharge(), GetEndCharges(), RoughIntercept(), and StartCharge().
void cluster::ClusterParamsAlg::FillParams | ( | bool | override_DoGetAverages = false , |
bool | override_DoGetRoughAxis = false , |
||
bool | override_DoGetProfileInfo = false , |
||
bool | override_DoRefineStartPointsAndDirection = false , |
||
bool | override_DoGetFinalSlope = false , |
||
bool | override_DoTrackShowerSep = false , |
||
bool | override_DoEndCharge = false |
||
) |
Runs all the functions which calculate cluster params and stashes the results in the private ClusterParams struct.
override_DoGetAverages | force re-execution of GetAverages() |
override_DoGetRoughAxis | force re-execution of GetRoughAxis() |
override_DoGetProfileInfo | force re-execution of GetProfileInfo() |
override_DoRefineStartPoints | force re-execution of RefineStartPoints() |
override_DoGetFinalSlope | force re-execution of GetFinalSlope() |
override_DoEndCharge | force re-execution of GetEndCharges() |
Definition at line 258 of file ClusterParamsAlg.cxx.
References GetAverages(), GetEndCharges(), GetFinalSlope(), GetProfileInfo(), GetRoughAxis(), RefineStartPointAndDirection(), and TrackShowerSeparation().
Referenced by SetVerbose().
void cluster::ClusterParamsAlg::FillPolygon | ( | ) |
Definition at line 1568 of file ClusterParamsAlg.cxx.
References fGSer, fHitVector, fParams, fTimeRecord_ProcName, fTimeRecord_ProcTime, cluster::cluster_params::PolyObject, and util::GeometryUtilities::SelectPolygonHitList().
Referenced by setNeuralNetPath().
void cluster::ClusterParamsAlg::GetAverages | ( | bool | override = false | ) |
Calculates the following variables: mean_charge mean_x mean_y charge_wgt_x charge_wgt_y eigenvalue_principal eigenvalue_secondary multi_hit_wires N_Wires
override | force recalculation of variables |
Definition at line 278 of file ClusterParamsAlg.cxx.
References lar::util::StatCollector< T, W >::add(), lar::util::StatCollector< T, W >::Average(), cluster::cluster_params::charge_wgt_x, cluster::cluster_params::charge_wgt_y, cluster::cluster_params::eigenvalue_principal, cluster::cluster_params::eigenvalue_secondary, fFinishedGetAverages, fHitVector, fParams, fTimeRecord_ProcName, fTimeRecord_ProcTime, cluster::cluster_params::mean_ADC, cluster::cluster_params::mean_charge, cluster::cluster_params::mean_x, cluster::cluster_params::mean_y, cluster::cluster_params::multi_hit_wires, cluster::cluster_params::N_Hits, cluster::cluster_params::N_Wires, lar::util::StatCollector< T, W >::RMS(), cluster::cluster_params::rms_ADC, cluster::cluster_params::rms_charge, lar::util::StatCollector< T, W >::Sum(), cluster::cluster_params::sum_ADC, and cluster::cluster_params::sum_charge.
Referenced by FillParams(), GetParams(), GetRoughAxis(), cluster::StandardClusterParamsAlg::Integral(), cluster::StandardClusterParamsAlg::IntegralStdDev(), cluster::StandardClusterParamsAlg::MultipleHitDensity(), MultipleHitDensity(), MultipleHitWires(), cluster::StandardClusterParamsAlg::NHits(), cluster::StandardClusterParamsAlg::SummedADC(), and cluster::StandardClusterParamsAlg::SummedADCStdDev().
void cluster::ClusterParamsAlg::GetEndCharges | ( | bool | override_ = false | ) |
Calculates the following variables: start_charge end_charge
override_ | force recompute the variables |
Definition at line 1680 of file ClusterParamsAlg.cxx.
References cluster::cluster_params::end_charge, EndCharge(), fFinishedGetEndCharges, fParams, fTimeRecord_ProcName, fTimeRecord_ProcTime, LinearIntegral(), cluster::cluster_params::start_charge, and StartCharge().
Referenced by FillParams(), and GetParams().
void cluster::ClusterParamsAlg::GetFANNVector | ( | std::vector< float > & | data | ) |
This function returns a feature vector suitable for a neural net This function uses the data from cluster_params but packages it up in a different way, and so is inappropriate to include in clusterParams.hh. That's why it's here.
data | takes a reference to a vector< float> |
Definition at line 125 of file ClusterParamsAlg.cxx.
References cluster::cluster_params::closing_angle, cluster::cluster_params::closing_angle_charge_wgt, cluster::cluster_params::eigenvalue_principal, cluster::cluster_params::eigenvalue_secondary, fParams, cluster::cluster_params::hit_density_1D, cluster::cluster_params::length, cluster::cluster_params::mean_charge, cluster::cluster_params::modified_hit_density, cluster::cluster_params::multi_hit_wires, cluster::cluster_params::N_Hits, cluster::cluster_params::N_Hits_HC, cluster::cluster_params::N_Wires, cluster::cluster_params::opening_angle, cluster::cluster_params::opening_angle_charge_wgt, PI, cluster::cluster_params::RMS_charge, cluster::cluster_params::sum_charge, and cluster::cluster_params::width.
Referenced by PrintFANNVector(), SetVerbose(), and TrackShowerSeparation().
void cluster::ClusterParamsAlg::GetFinalSlope | ( | bool | override = false | ) |
Calculates the following variables: hit_density_1D hit_density_2D angle_2d direction
override | [description] |
Calculates the following variables: angle_2d modified_hit_density
end testing
Definition at line 1130 of file ClusterParamsAlg.cxx.
References cluster::cluster_params::angle_2d, cd(), Draw(), fChargeProfile, fChargeProfileNew, fCoarseChargeProfile, fCoarseNbins, fFinishedGetFinalSlope, fFinishedRefineStartPoints, fGSer, fHitVector, fParams, fProfileNbins, fProjectedLength, fRough2DIntercept, fRough2DSlope, fTimeRecord_ProcName, fTimeRecord_ProcTime, util::GeometryUtilities::Get2Dangle(), util::GeometryUtilities::Get2DDistance(), util::GeometryUtilities::GetPointOnLine(), cluster::cluster_params::hit_density_1D, cluster::cluster_params::length, cluster::cluster_params::mean_charge, cluster::cluster_params::modified_hit_density, cluster::cluster_params::modmeancharge, PI, RefineStartPoints(), SetLineColor(), cluster::cluster_params::start_point, Update(), and verbose.
Referenced by FillParams(), and GetParams().
|
inline |
Definition at line 271 of file ClusterParamsAlg.h.
References fHitVector.
|
inline |
Definition at line 270 of file ClusterParamsAlg.h.
References fHitVector.
Referenced by cluster::StandardClusterParamsAlg::NInputHits(), and cmtool::CPriorityAlgoBase::Priority().
void cluster::ClusterParamsAlg::GetOpeningAngle | ( | ) |
Referenced by setNeuralNetPath().
|
inline |
Definition at line 120 of file ClusterParamsAlg.h.
References fParams, GetAverages(), GetEndCharges(), GetFinalSlope(), GetProfileInfo(), GetRoughAxis(), RefineDirection(), RefineStartPointAndDirection(), RefineStartPoints(), and TrackShowerSeparation().
Referenced by cluster::StandardClusterParamsAlg::EndOpeningAngle(), cluster::StandardClusterParamsAlg::Integral(), cluster::StandardClusterParamsAlg::IntegralStdDev(), cluster::StandardClusterParamsAlg::MultipleHitDensity(), cluster::StandardClusterParamsAlg::NHits(), cmtool::CFAlgoShowerCompat::PrintClusterInfo(), cluster::StandardClusterParamsAlg::StartAngle(), cluster::StandardClusterParamsAlg::StartOpeningAngle(), cluster::StandardClusterParamsAlg::SummedADC(), cluster::StandardClusterParamsAlg::SummedADCStdDev(), and cluster::StandardClusterParamsAlg::Width().
void cluster::ClusterParamsAlg::GetProfileInfo | ( | bool | override = false | ) |
Calculates the following variables: opening_angle opening_angle_highcharge closing_angle closing_angle_highcharge offaxis_hits
override | [description] |
Definition at line 437 of file ClusterParamsAlg.cxx.
References AddEntry(), cd(), Draw(), cluster::cluster_params::end_point, fBeginIntercept, fChargeCutoffThreshold, fChargeProfile, fCoarseChargeProfile, fCoarseNbins, fEndIntercept, fFinishedGetProfileInfo, fFinishedGetRoughAxis, fGSer, fHitVector, Fill(), fInterHigh_side, fInterLow_side, fParams, fPlane, fProfileIntegralBackward, fProfileIntegralForward, fProfileMaximumBin, fProfileNbins, fProjectedLength, fRough2DIntercept, fRough2DSlope, fRoughBeginPoint, fRoughEndPoint, fTimeRecord_ProcName, fTimeRecord_ProcTime, util::GeometryUtilities::Get2DDistance(), util::GeometryUtilities::GetPointOnLine(), util::GeometryUtilities::GetPointOnLineWSlopes(), GetRoughAxis(), leg, cluster::cluster_params::N_Hits, util::PxPoint::plane, Scale(), SetLineColor(), cluster::cluster_params::start_point, cluster::cluster_params::sum_charge, util::PxPoint::t, Update(), verbose, util::PxPoint::w, weight, and cluster::cluster_params::width.
Referenced by EndCharge(), FillParams(), GetParams(), IntegrateFitCharge(), RefineStartPointAndDirection(), and cluster::StandardClusterParamsAlg::Width().
void cluster::ClusterParamsAlg::GetRoughAxis | ( | bool | override = false | ) |
Calculates the following variables: verticalness fRough2DSlope fRough2DIntercept
override | [description] |
Definition at line 365 of file ClusterParamsAlg.cxx.
References cluster::cluster_params::charge_wgt_x, cluster::cluster_params::charge_wgt_y, cluster::cluster_params::cluster_angle_2d, fFinishedGetAverages, fFinishedGetRoughAxis, fHitVector, fParams, fRough2DIntercept, fRough2DSlope, fTimeRecord_ProcName, fTimeRecord_ProcTime, GetAverages(), geo::vect::isfinite(), cluster::cluster_params::mean_charge, cluster::cluster_params::mean_x, cluster::cluster_params::mean_y, cluster::cluster_params::N_Hits, cluster::cluster_params::N_Hits_HC, PI, cluster::cluster_params::RMS_charge, cluster::cluster_params::rms_x, and cluster::cluster_params::rms_y.
Referenced by FillParams(), GetParams(), GetProfileInfo(), and cluster::StandardClusterParamsAlg::StartAngle().
void cluster::ClusterParamsAlg::Initialize | ( | ) |
Definition at line 181 of file ClusterParamsAlg.cxx.
References cluster::cluster_params::Clear(), fChargeCutoffThreshold, fFinishedGetAverages, fFinishedGetEndCharges, fFinishedGetFinalSlope, fFinishedGetProfileInfo, fFinishedGetRoughAxis, fFinishedRefineDirection, fFinishedRefineStartPointAndDirection, fFinishedRefineStartPoints, fFinishedTrackShowerSep, fGSer, fHitVector, fParams, fProfileIntegralBackward, fProfileIntegralForward, fProfileMaximumBin, fRough2DIntercept, fRough2DSlope, fRoughBeginPoint, fRoughEndPoint, fTimeRecord_ProcName, fTimeRecord_ProcTime, util::GeometryUtilities::GetME(), util::PxPoint::t, and util::PxPoint::w.
Referenced by cluster::StandardClusterParamsAlg::Clear(), ClusterParamsAlg(), SetHits(), and ~ClusterParamsAlg().
|
protected |
Integrates the charge between two positions in the cluster axis.
from_length | position on the axis to start integration from, in cm |
to_length | position on the axis to end integration at, in cm |
fit_first_bin | first bin for the charge fit |
fit_end_bin | next-to-last bin for the charge fit |
This function provides an almost-punctual charge at a position in the axis. Since the effective punctual charge is 0 ADC counts by definition, the charge can be integrated for some length. The procedure is made of two steps:
The region at point 1. is from fit_first_bin
to fit_end_bin
. These are specified in bin units. The binning is the one of the charge profile. It is suggested that a few bins are always kept, say 5 to 10, to reduce statistical fluctuations but maintaining a decent hypothesis of linearity along the range. The linear fit weighs all the bins in the profile the same.
The region at point to is from from_length
to to_length
, and it is measured in cm along the cluster axis, starting at the start of the cluster.
Definition at line 1709 of file ClusterParamsAlg.cxx.
References lar::util::details::SimplePolyFitterDataBase< T, D >::add(), fChargeProfile, lar::util::details::SimplePolyFitterBase< T, 1U >::FitParameters(), fProjectedLength, GetProfileInfo(), LinearIntegral(), min, and StartCharge().
Referenced by EndCharge(), and StartCharge().
|
staticprotected |
Returns the integral of f(x) = mx + q defined in [x1, x2].
Definition at line 1702 of file ClusterParamsAlg.cxx.
References geo::sqr().
Referenced by GetEndCharges(), and IntegrateFitCharge().
|
inline |
Definition at line 63 of file ClusterParamsAlg.h.
References fMinNHits, and SetHits().
float cluster::ClusterParamsAlg::MultipleHitDensity | ( | ) |
Returns the number of multiple hits per wire.
This returns the number of wires with mmore than one hit belonging to this cluster, divided by the cluster length in cm.
Definition at line 1827 of file ClusterParamsAlg.cxx.
References fHitVector, fParams, GetAverages(), cluster::cluster_params::length, cluster::cluster_params::multi_hit_wires, and RefineStartPoints().
Referenced by RoughIntercept().
float cluster::ClusterParamsAlg::MultipleHitWires | ( | ) |
Returns the number of multiple hits per wire.
This returns the fraction of wires that have more than one hit belonging to this cluster.
Definition at line 1814 of file ClusterParamsAlg.cxx.
References fHitVector, fParams, GetAverages(), cluster::cluster_params::multi_hit_wires, and cluster::cluster_params::N_Wires.
Referenced by RoughIntercept().
|
inline |
void cluster::ClusterParamsAlg::PrintFANNVector | ( | ) |
For debugging purposes, prints the result of GetFANNVector in a nicely formatted form.
Definition at line 151 of file ClusterParamsAlg.cxx.
References GetFANNVector(), and verbose.
Referenced by SetVerbose().
void cluster::ClusterParamsAlg::RefineDirection | ( | bool | override = false | ) |
This function calculates the opening/closing angles It also makes a decision on whether or not to flip the direction the cluster. Then the start point is refined later.
override | [description] |
Definition at line 1308 of file ClusterParamsAlg.cxx.
References cluster::cluster_params::closing_angle, cluster::cluster_params::closing_angle_charge_wgt, cluster::cluster_params::end_point, fCoarseChargeProfile, fFinishedRefineDirection, fFinishedRefineStartPoints, fHitVector, fParams, fQMinRefDir, fRoughBeginPoint, fRoughEndPoint, fTimeRecord_ProcName, fTimeRecord_ProcTime, cluster::cluster_params::mean_charge, cluster::cluster_params::N_Hits, cluster::cluster_params::N_Hits_HC, cluster::cluster_params::opening_angle, cluster::cluster_params::opening_angle_charge_wgt, PI, cluster::cluster_params::start_point, cluster::cluster_params::sum_charge, util::PxPoint::t, verbose, and util::PxPoint::w.
Referenced by cluster::StandardClusterParamsAlg::EndOpeningAngle(), GetParams(), RefineStartPointAndDirection(), and cluster::StandardClusterParamsAlg::StartOpeningAngle().
void cluster::ClusterParamsAlg::RefineStartPointAndDirection | ( | bool | override = false | ) |
Definition at line 1596 of file ClusterParamsAlg.cxx.
References cluster::cluster_params::direction, cluster::cluster_params::end_point, fFinishedGetProfileInfo, fFinishedRefineStartPointAndDirection, fParams, fRoughBeginPoint, fRoughEndPoint, fTimeRecord_ProcName, fTimeRecord_ProcTime, GetProfileInfo(), RefineDirection(), RefineStartPoints(), cluster::cluster_params::start_point, util::PxPoint::t, verbose, and util::PxPoint::w.
Referenced by FillParams(), and GetParams().
void cluster::ClusterParamsAlg::RefineStartPoints | ( | bool | override = false | ) |
Calculates the following variables: length width
override | [description] |
Calculates the following variables: length width hit_density_1D hit_density_2D direction
override | [description] |
Definition at line 869 of file ClusterParamsAlg.cxx.
References util::PxHit::charge, d, cluster::cluster_params::end_point, fFinishedRefineStartPoints, fGSer, fHitVector, fParams, fRough2DSlope, fRoughBeginPoint, fRoughEndPoint, fTimeRecord_ProcName, fTimeRecord_ProcTime, util::GeometryUtilities::Get2DDistance(), cluster::cluster_params::hit_density_1D, cluster::cluster_params::hit_density_2D, cluster::cluster_params::length, n, cluster::cluster_params::N_Hits, util::PxPoint::plane, util::GeometryUtilities::SelectLocalHitlist(), cluster::cluster_params::start_point, util::PxPoint::t, verbose, util::PxPoint::w, cluster::cluster_params::width, and z.
Referenced by GetFinalSlope(), GetParams(), MultipleHitDensity(), and RefineStartPointAndDirection().
void cluster::ClusterParamsAlg::Report | ( | Stream & | stream | ) | const |
Definition at line 243 of file ClusterParamsAlg.cxx.
References fFinishedGetAverages, fFinishedGetEndCharges, fFinishedGetFinalSlope, fFinishedGetProfileInfo, fFinishedGetRoughAxis, fFinishedRefineDirection, fFinishedRefineStartPoints, fParams, cluster::cluster_params::Report(), and verbose.
Referenced by SetVerbose().
|
inline |
Definition at line 202 of file ClusterParamsAlg.h.
References fRoughEndPoint.
|
inline |
Definition at line 205 of file ClusterParamsAlg.h.
References EnableFANN(), EndCharge(), fRough2DIntercept, MultipleHitDensity(), MultipleHitWires(), and StartCharge().
|
inline |
|
inline |
Definition at line 201 of file ClusterParamsAlg.h.
References fRoughBeginPoint.
int cluster::ClusterParamsAlg::SetHits | ( | const std::vector< util::PxHit > & | inhitlist | ) |
Definition at line 52 of file ClusterParamsAlg.cxx.
References fHitVector, fMinNHits, fPlane, Initialize(), and verbose.
Referenced by ClusterParamsAlg(), MinNHits(), and cluster::StandardClusterParamsAlg::SetHits().
|
inline |
Definition at line 61 of file ClusterParamsAlg.h.
References fMinNHits.
Referenced by cmtool::CMManagerBase::SetClusters().
|
inline |
Definition at line 195 of file ClusterParamsAlg.h.
References FillPolygon(), fNeuralNetPath, GetOpeningAngle(), and s.
void cluster::ClusterParamsAlg::SetPlane | ( | int | p | ) |
Definition at line 118 of file ClusterParamsAlg.cxx.
References cluster::cluster_params::end_point, fHitVector, fParams, fPlane, fRoughBeginPoint, fRoughEndPoint, util::PxPoint::plane, and cluster::cluster_params::start_point.
Referenced by Plane().
|
inline |
|
inline |
Definition at line 71 of file ClusterParamsAlg.h.
References FillParams(), GetFANNVector(), PrintFANNVector(), Report(), TimeReport(), and verbose.
Referenced by cmtool::CMManagerBase::SetClusters(), and cluster::StandardClusterParamsAlg::SetVerbose().
double cluster::ClusterParamsAlg::StartCharge | ( | float | length = 1. , |
unsigned int | nbins = 10 |
||
) |
Returns the expected charge at the beginning of the cluster.
nbins | use at least this number of charge bins from charge profile |
length | space at the start of cluster where to collect charge, in cm the expected charge at the beginning of the cluster |
ClusterParamsAlg extracts a binned charge profile, parametrized versus the distance from the start of the cluster. All the charge on the plane orthogonal to cluster axis is collapsed into the point where that plane intersects the axis. The resulting 1D distribution is then binned.
This method returns the charge under the first length cm of the cluster.
This method considers the first nbins of this charge distribution and through a linear fit determines the expected charge at the first bin. Then, it scales the result to reflect how much charge would be deposited in a space of length centimetres, according to this linear fit.
Note that length may be 0 (charge will be 0) or negative (sort of extrapolation ahead of the cluster start).
For more details, see IntegrateFitCharge().
Definition at line 1770 of file ClusterParamsAlg.cxx.
References EndCharge(), fHitVector, and IntegrateFitCharge().
Referenced by GetEndCharges(), IntegrateFitCharge(), RoughIntercept(), and cluster::StandardClusterParamsAlg::StartCharge().
void cluster::ClusterParamsAlg::TimeReport | ( | Stream & | stream | ) | const |
Definition at line 397 of file ClusterParamsAlg.h.
References fTimeRecord_ProcName, and fTimeRecord_ProcTime.
Referenced by SetVerbose().
void cluster::ClusterParamsAlg::TrackShowerSeparation | ( | bool | override = false | ) |
Definition at line 1662 of file ClusterParamsAlg.cxx.
References enableFANN, GetFANNVector(), and verbose.
Referenced by FillParams(), and GetParams().
|
protected |
Definition at line 336 of file ClusterParamsAlg.h.
Referenced by ClusterParamsAlg(), DisableFANN(), EnableFANN(), and TrackShowerSeparation().
|
protected |
Definition at line 316 of file ClusterParamsAlg.h.
Referenced by GetProfileInfo().
|
protected |
Definition at line 293 of file ClusterParamsAlg.h.
Referenced by GetProfileInfo(), and Initialize().
|
protected |
Definition at line 299 of file ClusterParamsAlg.h.
Referenced by EndCharge(), GetFinalSlope(), GetProfileInfo(), and IntegrateFitCharge().
|
protected |
Definition at line 302 of file ClusterParamsAlg.h.
Referenced by GetFinalSlope().
|
protected |
Definition at line 300 of file ClusterParamsAlg.h.
Referenced by GetFinalSlope(), GetProfileInfo(), and RefineDirection().
|
protected |
Definition at line 306 of file ClusterParamsAlg.h.
Referenced by GetFinalSlope(), and GetProfileInfo().
|
protected |
Definition at line 317 of file ClusterParamsAlg.h.
Referenced by GetProfileInfo().
|
protected |
Definition at line 322 of file ClusterParamsAlg.h.
Referenced by GetAverages(), GetRoughAxis(), Initialize(), and Report().
|
protected |
Definition at line 330 of file ClusterParamsAlg.h.
Referenced by GetEndCharges(), Initialize(), and Report().
|
protected |
Definition at line 327 of file ClusterParamsAlg.h.
Referenced by GetFinalSlope(), Initialize(), and Report().
|
protected |
Definition at line 324 of file ClusterParamsAlg.h.
Referenced by GetProfileInfo(), Initialize(), RefineStartPointAndDirection(), and Report().
|
protected |
Definition at line 323 of file ClusterParamsAlg.h.
Referenced by GetProfileInfo(), GetRoughAxis(), Initialize(), and Report().
|
protected |
Definition at line 326 of file ClusterParamsAlg.h.
Referenced by Initialize(), RefineDirection(), and Report().
|
protected |
Definition at line 328 of file ClusterParamsAlg.h.
Referenced by Initialize(), and RefineStartPointAndDirection().
|
protected |
Definition at line 325 of file ClusterParamsAlg.h.
Referenced by GetFinalSlope(), Initialize(), RefineDirection(), RefineStartPoints(), and Report().
|
protected |
Definition at line 329 of file ClusterParamsAlg.h.
Referenced by Initialize().
|
protected |
Definition at line 277 of file ClusterParamsAlg.h.
Referenced by ClusterParamsAlg(), FillPolygon(), GetFinalSlope(), GetProfileInfo(), Initialize(), and RefineStartPoints().
|
protected |
This vector holds the pointer to hits. This should be used for computation for speed.
Definition at line 286 of file ClusterParamsAlg.h.
Referenced by EndCharge(), FillPolygon(), GetAverages(), GetFinalSlope(), GetHitVector(), GetNHits(), GetProfileInfo(), GetRoughAxis(), Initialize(), MultipleHitDensity(), MultipleHitWires(), RefineDirection(), RefineStartPoints(), SetHits(), SetPlane(), and StartCharge().
|
protected |
Definition at line 318 of file ClusterParamsAlg.h.
Referenced by GetProfileInfo().
|
protected |
Definition at line 319 of file ClusterParamsAlg.h.
Referenced by GetProfileInfo().
|
protected |
Cut value for # hits: below this value clusters are not evaluated.
Definition at line 280 of file ClusterParamsAlg.h.
Referenced by ClusterParamsAlg(), MinNHits(), SetHits(), and SetMinNHits().
std::string cluster::ClusterParamsAlg::fNeuralNetPath |
Definition at line 378 of file ClusterParamsAlg.h.
Referenced by setNeuralNetPath().
cluster::cluster_params cluster::ClusterParamsAlg::fParams |
Definition at line 376 of file ClusterParamsAlg.h.
Referenced by FillPolygon(), GetAverages(), GetEndCharges(), GetFANNVector(), GetFinalSlope(), GetParams(), GetProfileInfo(), GetRoughAxis(), Initialize(), MultipleHitDensity(), MultipleHitWires(), RefineDirection(), RefineStartPointAndDirection(), RefineStartPoints(), Report(), and SetPlane().
|
protected |
Definition at line 294 of file ClusterParamsAlg.h.
Referenced by GetProfileInfo(), Plane(), SetHits(), and SetPlane().
|
protected |
Definition at line 310 of file ClusterParamsAlg.h.
Referenced by GetProfileInfo(), and Initialize().
|
protected |
Definition at line 309 of file ClusterParamsAlg.h.
Referenced by GetProfileInfo(), and Initialize().
|
protected |
Definition at line 308 of file ClusterParamsAlg.h.
Referenced by GetProfileInfo(), and Initialize().
|
protected |
Definition at line 307 of file ClusterParamsAlg.h.
Referenced by GetFinalSlope(), and GetProfileInfo().
|
protected |
Definition at line 311 of file ClusterParamsAlg.h.
Referenced by EndCharge(), GetFinalSlope(), GetProfileInfo(), and IntegrateFitCharge().
|
protected |
Definition at line 297 of file ClusterParamsAlg.h.
Referenced by RefineDirection(), and SetRefineDirectionQMin().
|
protected |
Definition at line 333 of file ClusterParamsAlg.h.
Referenced by GetFinalSlope(), GetProfileInfo(), GetRoughAxis(), Initialize(), and RoughIntercept().
|
protected |
Definition at line 332 of file ClusterParamsAlg.h.
Referenced by GetFinalSlope(), GetProfileInfo(), GetRoughAxis(), Initialize(), RefineStartPoints(), and RoughSlope().
|
protected |
Definition at line 334 of file ClusterParamsAlg.h.
Referenced by GetProfileInfo(), Initialize(), RefineDirection(), RefineStartPointAndDirection(), RefineStartPoints(), RoughStartPoint(), and SetPlane().
|
protected |
Definition at line 335 of file ClusterParamsAlg.h.
Referenced by GetProfileInfo(), Initialize(), RefineDirection(), RefineStartPointAndDirection(), RefineStartPoints(), RoughEndPoint(), and SetPlane().
std::vector<std::string> cluster::ClusterParamsAlg::fTimeRecord_ProcName |
Definition at line 380 of file ClusterParamsAlg.h.
Referenced by FillPolygon(), GetAverages(), GetEndCharges(), GetFinalSlope(), GetProfileInfo(), GetRoughAxis(), Initialize(), RefineDirection(), RefineStartPointAndDirection(), RefineStartPoints(), and TimeReport().
std::vector<double> cluster::ClusterParamsAlg::fTimeRecord_ProcTime |
Definition at line 381 of file ClusterParamsAlg.h.
Referenced by FillPolygon(), GetAverages(), GetEndCharges(), GetFinalSlope(), GetProfileInfo(), GetRoughAxis(), Initialize(), RefineDirection(), RefineStartPointAndDirection(), RefineStartPoints(), and TimeReport().
|
protected |
Definition at line 290 of file ClusterParamsAlg.h.
Referenced by ClusterParamsAlg(), GetFinalSlope(), GetProfileInfo(), PrintFANNVector(), RefineDirection(), RefineStartPointAndDirection(), RefineStartPoints(), Report(), SetHits(), SetVerbose(), and TrackShowerSeparation().