LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
SimpleShowersTool.h
Go to the documentation of this file.
1 
8 #ifndef SIMPLE_SHOWERS_TOOL_H
9 #define SIMPLE_SHOWERS_TOOL_H 1
10 
12 
13 namespace lar_content
14 {
15 
20 {
21 public:
26 
27  bool Run(ThreeViewShowersAlgorithm *const pAlgorithm, TensorType &overlapTensor);
28 
29 private:
36  void FindBestShower(const TensorType &overlapTensor, ProtoParticleVector &protoParticleVector) const;
37 
44 
45  pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle);
46 
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.