8 #ifndef LAR_THREE_D_SHOWERS_ALGORITHM_H 9 #define LAR_THREE_D_SHOWERS_ALGORITHM_H 1 11 #include "Pandora/Algorithm.h" 21 class ShowerTensorTool;
45 void SelectInputClusters(
const pandora::ClusterList *
const pInputClusterList, pandora::ClusterList &selectedClusterList)
const;
72 pandora::StatusCode
GetBin(
const float x,
int &xBin)
const;
111 void CalculateOverlapResult(
const pandora::Cluster *
const pClusterU,
const pandora::Cluster *
const pClusterV,
const pandora::Cluster *
const pClusterW);
121 pandora::StatusCode
CalculateOverlapResult(
const pandora::Cluster *
const pClusterU,
const pandora::Cluster *
const pClusterV,
const pandora::Cluster *
const pClusterW,
138 const XSampling &xSampling, ShowerPositionMapPair &positionMapsU, ShowerPositionMapPair &positionMapsV, ShowerPositionMapPair &positionMapsW)
const;
150 unsigned int &nSampledHits,
unsigned int &nMatchedHits)
const;
153 pandora::StatusCode
ReadSettings(
const pandora::TiXmlHandle xmlHandle);
179 typedef std::vector<TensorType::ElementList::const_iterator>
IteratorList;
194 #endif // #ifndef LAR_THREE_D_SHOWERS_ALGORITHM_H
Header file for the lar two dimensional sliding shower fit result class.
ThreeDBaseAlgorithm class.
pandora::StatusCode Run()
void PreparationStep()
Perform any preparatory steps required, e.g. caching expensive fit results for clusters.
void UpdateUponDeletion(const pandora::Cluster *const pDeletedCluster)
Update to reflect cluster deletion.
ThreeDShowersAlgorithm()
Default constructor.
void UpdateForNewCluster(const pandora::Cluster *const pNewCluster)
Update to reflect addition of a new cluster to the problem space.
bool m_ignoreUnavailableClusters
Whether to ignore (skip-over) unavailable clusters.
ThreeDShowersAlgorithm::TensorType TensorType
ThreeDShowersAlgorithm class.
TwoDSlidingShowerFitResult class.
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
float m_minClusterLengthSquared
The min length (squared) in base cluster selection method.
const TwoDSlidingShowerFitResult & GetCachedSlidingFitResult(const pandora::Cluster *const pCluster) const
Get a sliding shower fit result from the algorithm cache.
std::vector< TensorType::ElementList::const_iterator > IteratorList
ShowerOverlapResult class.
Header file for the three dimension algorithm base class.
float m_wMinX
The min x value in the w view.
float m_xOverlapSpan
The x-overlap span.
float m_nPoints
The number of sampling points to be used.
float m_uMaxX
The max x value in the u view.
unsigned int m_minShowerMatchedPoints
The minimum number of matched shower sampling points to allow shower grouping.
TensorToolVector m_algorithmToolVector
The algorithm tool vector.
float m_uMinX
The min x value in the u view.
float m_vMinX
The min x value in the v view.
void SetPfoParameters(const ProtoParticle &protoParticle, PandoraContentApi::ParticleFlowObject::Parameters &pfoParameters) const
Calculate Pfo properties from proto particle.
Header file for the lar shower overlap result class.
float m_maxX
The max x value of the common x-overlap range.
void ExamineTensor()
Examine contents of tensor, collect together best-matching 2D particles and modify clusters as requir...
unsigned int m_slidingFitWindow
The layer window for the sliding linear fits.
void TidyUp()
Tidy member variables in derived class.
std::pair< ShowerPositionMap, ShowerPositionMap > ShowerPositionMapPair
std::unordered_map< const pandora::Cluster *, TwoDSlidingShowerFitResult > TwoDSlidingShowerFitResultMap
void RemoveFromSlidingFitCache(const pandora::Cluster *const pCluster)
Remova an existing sliding fit result, for the specified cluster, from the algorithm cache...
void SelectInputClusters(const pandora::ClusterList *const pInputClusterList, pandora::ClusterList &selectedClusterList) const
Select a subset of input clusters for processing in this algorithm.
std::vector< ShowerTensorTool * > TensorToolVector
TwoDSlidingShowerFitResultMap m_slidingFitResultMap
The sliding shower fit result map.
unsigned int m_nMaxTensorToolRepeats
The maximum number of repeat loops over tensor tools.
pandora::StatusCode GetBin(const float x, int &xBin) const
Convert an x position into a sampling bin.
void CalculateOverlapResult(const pandora::Cluster *const pClusterU, const pandora::Cluster *const pClusterV, const pandora::Cluster *const pClusterW)
Calculate cluster overlap result and store in tensor.
void AddToSlidingFitCache(const pandora::Cluster *const pCluster)
Add a new sliding fit result, for the specified cluster, to the algorithm cache.
float m_wMaxX
The max x value in the w view.
void GetBestHitOverlapFraction(const pandora::Cluster *const pCluster, const XSampling &xSampling, const ShowerPositionMapPair &positionMaps, unsigned int &nSampledHits, unsigned int &nMatchedHits) const
Get the best fraction of hits, in the common x-overlap range, contained within the provided pair of s...
void GetShowerPositionMaps(const TwoDSlidingShowerFitResult &fitResultU, const TwoDSlidingShowerFitResult &fitResultV, const TwoDSlidingShowerFitResult &fitResultW, const XSampling &xSampling, ShowerPositionMapPair &positionMapsU, ShowerPositionMapPair &positionMapsV, ShowerPositionMapPair &positionMapsW) const
Get the shower position maps.
unsigned int m_minClusterCaloHits
The min number of hits in base cluster selection method.
XSampling(const TwoDSlidingFitResult &fitResultU, const TwoDSlidingFitResult &fitResultV, const TwoDSlidingFitResult &fitResultW)
Constructor.
float m_vMaxX
The max x value in the v view.
TwoDSlidingFitResult class.
float m_minShowerMatchedFraction
The minimum shower matched sampling fraction to allow shower grouping.
float m_minX
The min x value of the common x-overlap range.