8 #ifndef LAR_PEAK_DIRECTION_FINDER_TOOL_H 9 #define LAR_PEAK_DIRECTION_FINDER_TOOL_H 1 11 #include "Pandora/AlgorithmHeaders.h" 12 #include "Pandora/AlgorithmTool.h" 25 pandora::StatusCode
Run(
const pandora::ParticleFlowObject *
const pShowerPfo,
const pandora::CartesianVector &nuVertex3D,
26 const pandora::CaloHitList *
const pViewHitList,
const pandora::HitType hitType, pandora::CartesianPointVector &peakDirectionVector);
31 pandora::StatusCode
ReadSettings(
const pandora::TiXmlHandle xmlHandle);
42 void CollectHitsWithinROI(
const pandora::CaloHitList &showerHitList,
const pandora::CaloHitList *
const pViewHitList,
43 const pandora::CartesianVector &nuVertex2D, pandora::CaloHitList &viewROIHits)
const;
53 void GetAngularExtrema(
const pandora::CaloHitList &showerHitList,
const pandora::CartesianVector &nuVertex2D,
float &lowestTheta,
54 float &highestTheta)
const;
65 void CollectHitsWithinExtrema(
const pandora::CaloHitList *
const pViewHitList,
const pandora::CartesianVector &nuVertex2D,
66 const float lowestTheta,
const float highestTheta, pandora::CaloHitList &viewROIHits)
const;
76 AngularDecompositionMap &angularDecompositionMap)
const;
91 void RetrievePeakDirections(
const AngularDecompositionMap &angularDecompositionMap, pandora::CartesianPointVector &peakDirectionVector)
const;
102 #endif // #ifndef LAR_PEAK_DIRECTION_FINDER_TOOL_H
float m_theta0XZBinSize
The angular distribution bin size.
void FillAngularDecompositionMap(const pandora::CaloHitList &viewShowerHitList, const pandora::CartesianVector &nuVertex2D, AngularDecompositionMap &angularDecompositionMap) const
Determine the angular distribution of the ROI hits.
void CollectHitsWithinROI(const pandora::CaloHitList &showerHitList, const pandora::CaloHitList *const pViewHitList, const pandora::CartesianVector &nuVertex2D, pandora::CaloHitList &viewROIHits) const
Collect the 2D hits within a region of interest (m_ambiguousParticleMode ? hits not in the shower : h...
pandora::StatusCode Run(const pandora::ParticleFlowObject *const pShowerPfo, const pandora::CartesianVector &nuVertex3D, const pandora::CaloHitList *const pViewHitList, const pandora::HitType hitType, pandora::CartesianPointVector &peakDirectionVector)
void CollectHitsWithinExtrema(const pandora::CaloHitList *const pViewHitList, const pandora::CartesianVector &nuVertex2D, const float lowestTheta, const float highestTheta, pandora::CaloHitList &viewROIHits) const
Collect the hits that lie within the initial shower cone (originating from the nu vertex) ...
int m_smoothingWindow
On each side, the number of neighbouring bins with which each bin is averaged.
std::map< int, float > AngularDecompositionMap
float m_pathwaySearchRegion
The initial shower cone distance.
void SmoothAngularDecompositionMap(AngularDecompositionMap &angularDecompositionMap) const
Smooth the ROI angular angular distribution.
void RetrievePeakDirections(const AngularDecompositionMap &angularDecompositionMap, pandora::CartesianPointVector &peakDirectionVector) const
Obtain a vector of directions from the angular distribution peaks.
PeakDirectionFinderTool()
Default constructor.
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
void GetAngularExtrema(const pandora::CaloHitList &showerHitList, const pandora::CartesianVector &nuVertex2D, float &lowestTheta, float &highestTheta) const
Determine the angle (from the +ve drift-axis) of the shower cone boundaries (originating from the nu ...
bool m_ambiguousParticleMode
Whether to find the initial pathway direction of the shower or of the other event particles...