LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
ThreeViewRemnantsAlgorithm.h
Go to the documentation of this file.
1 
8 #ifndef LAR_THREE_VIEW_REMNANTS_ALGORITHM_H
9 #define LAR_THREE_VIEW_REMNANTS_ALGORITHM_H 1
10 
11 #include "Pandora/Algorithm.h"
12 #include "Pandora/AlgorithmTool.h"
13 
16 
17 namespace lar_content
18 {
19 
20 class RemnantTensorTool;
21 
22 //------------------------------------------------------------------------------------------------------------------------------------------
23 
27 class ThreeViewRemnantsAlgorithm : public NViewMatchingAlgorithm<ThreeViewMatchingControl<float>>
28 {
29 public:
31 
36 
37  void SelectInputClusters(const pandora::ClusterList *const pInputClusterList, pandora::ClusterList &selectedClusterList) const;
38 
39 private:
40  void CalculateOverlapResult(const pandora::Cluster *const pClusterU, const pandora::Cluster *const pClusterV, const pandora::Cluster *const pClusterW);
42 
43  pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle);
44 
45  typedef std::vector<RemnantTensorTool *> RemnantTensorToolVector;
46  RemnantTensorToolVector m_algorithmToolVector;
47 
48  unsigned int m_nMaxTensorToolRepeats;
49  unsigned int m_minClusterCaloHits;
52 };
53 
54 //------------------------------------------------------------------------------------------------------------------------------------------
55 
59 class RemnantTensorTool : public pandora::AlgorithmTool
60 {
61 public:
63  typedef std::vector<TensorType::ElementList::const_iterator> IteratorList;
64 
73  virtual bool Run(ThreeViewRemnantsAlgorithm *const pAlgorithm, TensorType &overlapTensor) = 0;
74 };
75 
76 } // namespace lar_content
77 
78 #endif // #ifndef LAR_THREE_VIEW_REMNANTS_ALGORITHM_H
NViewMatchingAlgorithm class.
float m_pseudoChi2Cut
The selection cut on the matched chi2.
void CalculateOverlapResult(const pandora::Cluster *const pClusterU, const pandora::Cluster *const pClusterV, const pandora::Cluster *const pClusterW)
Calculate cluster overlap result and store in container.
RemnantTensorToolVector m_algorithmToolVector
The algorithm tool list.
Header file for the n view matching algorithm class.
void ExamineOverlapContainer()
Examine contents of overlap container, collect together best-matching 2D particles and modify cluster...
NViewMatchingAlgorithm< ThreeViewMatchingControl< float > > BaseAlgorithm
Header file for the three view matching control class.
unsigned int m_minClusterCaloHits
The selection cut on the number of cluster calo hits.
std::vector< RemnantTensorTool * > RemnantTensorToolVector
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
ThreeViewRemnantsAlgorithm::MatchingType::TensorType TensorType
float m_xOverlapWindow
The sampling pitch in the x coordinate.
unsigned int m_nMaxTensorToolRepeats
The maximum number of repeat loops over tensor tools.
std::vector< TensorType::ElementList::const_iterator > IteratorList
void SelectInputClusters(const pandora::ClusterList *const pInputClusterList, pandora::ClusterList &selectedClusterList) const
Select a subset of input clusters for processing in this algorithm.