All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MatchedEndPointsTool.h
Go to the documentation of this file.
1 /**
2  * @file larpandoracontent/LArThreeDReco/LArLongitudinalTrackMatching/MatchedEndPointsTool.h
3  *
4  * @brief Header file for the matched end points tool class.
5  *
6  * $Log: $
7  */
8 #ifndef MATCHED_END_POINTS_TOOL_H
9 #define MATCHED_END_POINTS_TOOL_H 1
10 
12 
13 namespace lar_content
14 {
15 
16 /**
17  * @brief MatchedEndPointsTool class
18  */
20 {
21 public:
22  /**
23  * @brief Default constructor
24  */
26 
27  bool Run(ThreeViewLongitudinalTracksAlgorithm *const pAlgorithm, TensorType &overlapTensor);
28 
29 private:
30  pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle);
31 
32  /**
33  * @brief Find matched tracks, hidden by ambiguities in the tensor
34  *
35  * @param overlapTensor the overlap tensor
36  * @param protoParticleVector to receive the list of proto particles
37  */
38  void FindMatchedTracks(const TensorType &overlapTensor, ProtoParticleVector &protoParticleVector) const;
39 
40  /**
41  * @brief Sort tensor elements by chi-squared
42  *
43  * @param lhs the first tensor element
44  * @param rhs the second tensor element
45  *
46  * @return boolean
47  */
48  static bool SortByChiSquared(const TensorType::Element &lhs, const TensorType::Element &rhs);
49 
50  float m_minMatchedFraction; ///< The min matched sampling point fraction for particle creation
51  float m_maxEndPointChi2; ///< The max chi2 of matched vertex and end points for particle creation
52 };
53 
54 } // namespace lar_content
55 
56 #endif // #ifndef MATCHED_END_POINTS_TOOL_H
std::vector< ProtoParticle > ProtoParticleVector
MatchedEndPointsTool()
Default constructor.
float m_maxEndPointChi2
The max chi2 of matched vertex and end points for particle creation.
void FindMatchedTracks(const TensorType &overlapTensor, ProtoParticleVector &protoParticleVector) const
Find matched tracks, hidden by ambiguities in the tensor.
float m_minMatchedFraction
The min matched sampling point fraction for particle creation.
bool Run(ThreeViewLongitudinalTracksAlgorithm *const pAlgorithm, TensorType &overlapTensor)
Run the algorithm tool.
static bool SortByChiSquared(const TensorType::Element &lhs, const TensorType::Element &rhs)
Sort tensor elements by chi-squared.
Header file for the three view longitudinal tracks algorithm class.
MatchedEndPointsTool class.
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)