Pandora
Pandora source code navigator
Loading...
Searching...
No Matches
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
13namespace lar_content
14{
15
20{
21public:
26
27 bool Run(ThreeViewShowersAlgorithm *const pAlgorithm, TensorType &overlapTensor);
28
29private:
36 void FindBestShower(const TensorType &overlapTensor, ProtoParticleVector &protoParticleVector) const;
37
43 bool PassesElementCuts(TensorType::ElementList::const_iterator eIter) const;
44
46
50};
51
52} // namespace lar_content
53
54#endif // #ifndef SIMPLE_SHOWERS_TOOL_H
Header file for the three view showers algorithm class.
ThreeViewShowersAlgorithm::MatchingType::TensorType TensorType
SimpleShowersTool class.
unsigned int m_minMatchedSamplingPoints
The min number of matched sampling points for particle creation.
float m_minMatchedFraction
The min matched sampling point fraction for particle creation.
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
Read the algorithm settings.
SimpleShowersTool()
Default constructor.
float m_minXOverlapFraction
The min x overlap fraction (in each view) for particle creation.
bool Run(ThreeViewShowersAlgorithm *const pAlgorithm, TensorType &overlapTensor)
Run the algorithm tool.
void FindBestShower(const TensorType &overlapTensor, ProtoParticleVector &protoParticleVector) const
Find best shower match as a simple way to (try to) resolve ambiguities in the tensor.
bool PassesElementCuts(TensorType::ElementList::const_iterator eIter) const
Whether a provided (iterator to a) tensor element passes the selection cuts for particle creation.
std::vector< ProtoParticle > ProtoParticleVector
StatusCode
The StatusCode enum.