All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TwoViewSimpleTracksTool.h
Go to the documentation of this file.
1 /**
2  * @file larpandoracontent/LArThreeDReco/LArTrackMatching/TwoViewSimpleTracksTool.h
3  *
4  * @brief Header file for the simple showers tool class.
5  *
6  * $Log: $
7  */
8 #ifndef TWO_VIEW_SIMPLE_TRACKS_TOOL_H
9 #define TWO_VIEW_SIMPLE_TRACKS_TOOL_H 1
10 
12 
13 namespace lar_content
14 {
15 
16 /**
17  * @brief TwoViewSimpleTracksTool class
18  */
20 {
21 public:
22  /**
23  * @brief Default constructor
24  */
26 
27  bool Run(TwoViewTransverseTracksAlgorithm *const pAlgorithm, MatrixType &overlapMatrix);
28 
29 private:
30  /**
31  * @brief Find best track match as a simple way to (try to) resolve ambiguities in the matrix
32  *
33  * @param overlapMatrix the overlap matrix
34  * @param protoParticleVector to receive the list of proto particles
35  */
36  void FindBestTrack(const MatrixType &overlapMatrix, ProtoParticleVector &protoParticleVector) const;
37 
38  /**
39  * @brief Whether a provided (iterator to a) matrix element passes the selection cuts for particle creation
40  *
41  * @param eIter the iterator to the matrix element
42  */
43  bool PassesElementCuts(MatrixType::ElementList::const_reverse_iterator eIter) const;
44 
45  pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle);
46 
47  float m_minMatchedFraction; ///< The min matched sampling point fraction for particle creation
48  float m_minMatchingScore; ///< The min global matching score for particle creation
49  unsigned int m_minMatchedSamplingPoints; ///< The min number of matched sampling points for particle creation
50  float m_minXOverlapFraction; ///< The min x overlap fraction (in each view) for particle creation
51 };
52 
53 } // namespace lar_content
54 
55 #endif // #ifndef TWO_VIEW_SIMPLE_TRACKS_TOOL_H
std::vector< ProtoParticle > ProtoParticleVector
bool Run(TwoViewTransverseTracksAlgorithm *const pAlgorithm, MatrixType &overlapMatrix)
Run the algorithm tool.
float m_minMatchingScore
The min global matching score for particle creation.
unsigned int m_minMatchedSamplingPoints
The min number of matched sampling points for particle creation.
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
bool PassesElementCuts(MatrixType::ElementList::const_reverse_iterator eIter) const
Whether a provided (iterator to a) matrix element passes the selection cuts for particle creation...
Header file for the two view transverse tracks algorithm class.
TwoViewSimpleTracksTool class.
float m_minMatchedFraction
The min matched sampling point fraction for particle creation.
float m_minXOverlapFraction
The min x overlap fraction (in each view) for particle creation.
void FindBestTrack(const MatrixType &overlapMatrix, ProtoParticleVector &protoParticleVector) const
Find best track match as a simple way to (try to) resolve ambiguities in the matrix.