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