LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
ClearShowersTool.h
Go to the documentation of this file.
1 
8 #ifndef CLEAR_SHOWERS_TOOL_H
9 #define CLEAR_SHOWERS_TOOL_H 1
10 
12 
13 namespace lar_content
14 {
15 
20 {
21 public:
26 
35  static bool HasLargeDirectConnections(IteratorList::const_iterator iIter, const IteratorList &iteratorList);
36 
47  const unsigned int minMatchedSamplingPointRatio, const float minXOverlapSpanRatio, const pandora::ClusterSet &usedClusters);
48 
49  bool Run(ThreeDShowersAlgorithm *const pAlgorithm, TensorType &overlapTensor);
50 
51 private:
52  pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle);
53 
60  void FindClearShowers(const TensorType &overlapTensor, ProtoParticleVector &protoParticleVector) const;
61 
69  void SelectLargeShowerElements(const TensorType::ElementList &elementList, const pandora::ClusterSet &usedClusters,
70  IteratorList &iteratorList) const;
71 
77 };
78 
79 } // namespace lar_content
80 
81 #endif // #ifndef CLEAR_SHOWERS_TOOL_H
std::vector< ProtoParticle > ProtoParticleVector
void FindClearShowers(const TensorType &overlapTensor, ProtoParticleVector &protoParticleVector) const
Find clear shower matches, hidden by simple ambiguities in the tensor.
static bool IsLargerThanDirectConnections(IteratorList::const_iterator iIter, const TensorType::ElementList &elementList, const unsigned int minMatchedSamplingPointRatio, const float minXOverlapSpanRatio, const pandora::ClusterSet &usedClusters)
Whether a large shower-like element is significantly larger that other elements with which it shares ...
void SelectLargeShowerElements(const TensorType::ElementList &elementList, const pandora::ClusterSet &usedClusters, IteratorList &iteratorList) const
Select a list of large shower-like elements from a set of connected tensor elements.
float m_minMatchedFraction
The min matched sampling point fraction for particle creation.
float m_minXOverlapSpanRatio
The min ratio between 1st and 2nd highest x-overlap spans for simple ambiguity resolution.
ClearShowersTool()
Default constructor.
ThreeDShowersAlgorithm class.
ClearShowersTool class.
std::vector< TensorType::ElementList::const_iterator > IteratorList
intermediate_table::const_iterator const_iterator
static bool HasLargeDirectConnections(IteratorList::const_iterator iIter, const IteratorList &iteratorList)
Whether a large shower-like element shares clusters with any other long elements. ...
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
bool Run(ThreeDShowersAlgorithm *const pAlgorithm, TensorType &overlapTensor)
Run the algorithm tool.
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.
Header file for the three dimensional showers algorithm class.
unsigned int m_minMatchedSamplingPointRatio
The min ratio between 1st and 2nd highest msps for simple ambiguity resolution.