AmbiguousDeltaRayTool.h
Go to the documentation of this file.
1 /**
2  * @file larpandoracontent/LArThreeDReco/LArCosmicRay/AmbiguousDeltaRayTool.h
3  *
4  * @brief Header file for the ambiguous delta ray tool class.
5  *
6  * $Log: $
7  */
8 #ifndef AMBIGUOUS_DELTA_RAY_TOOL_H
9 #define AMBIGUOUS_DELTA_RAY_TOOL_H 1
10 
12 
13 namespace lar_content
14 {
15 /**
16  * @brief AmbiguousDeltaRayTool class
17  */
19 {
20 public:
21  /**
22  * @brief Default constructor
23  */
25 
26 private:
27  bool Run(ThreeViewDeltaRayMatchingAlgorithm *const pAlgorithm, TensorType &overlapTensor);
28  pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle);
29 
30  /**
31  * @brief Identify ambiguous matches (e.g. 3:2:1) and, if possible, create pfos out of the best 1:1:1 cluster match
32  *
33  * @param overlapTensor the overlap tensor
34  */
35  void ExamineConnectedElements(TensorType &overlapTensor) const;
36 
37  /**
38  * @brief Identify the best 1:1:1 match in a group of connected elements and from it create a pfo
39  *
40  * @param elementList the tensor element list
41  * @param usedClusters the output list of clusters contained within to be created pfos
42  * @param protoParticleVector the output vector of ProtoParticles
43  */
44  void PickOutGoodMatches(const TensorType::ElementList &elementList, pandora::ClusterSet &usedClusters, ProtoParticleVector &protoParticleVector) const;
45 
46  float m_maxGoodMatchReducedChiSquared; ///< The maximum reduced chi squared value of a good 1:1:1 match
47 };
48 
49 } // namespace lar_content
50 
51 #endif // #ifndef AMBIGUOUS_DELTA_RAY_TOOL_H
std::vector< ProtoParticle > ProtoParticleVector
void ExamineConnectedElements(TensorType &overlapTensor) const
Identify ambiguous matches (e.g. 3:2:1) and, if possible, create pfos out of the best 1:1:1 cluster m...
AmbiguousDeltaRayTool class.
float m_maxGoodMatchReducedChiSquared
The maximum reduced chi squared value of a good 1:1:1 match.
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
void PickOutGoodMatches(const TensorType::ElementList &elementList, pandora::ClusterSet &usedClusters, ProtoParticleVector &protoParticleVector) const
Identify the best 1:1:1 match in a group of connected elements and from it create a pfo...
AmbiguousDeltaRayTool()
Default constructor.
bool Run(ThreeViewDeltaRayMatchingAlgorithm *const pAlgorithm, TensorType &overlapTensor)
Run the algorithm tool.