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
11
#include "
larpandoracontent/LArThreeDReco/LArShowerMatching/ThreeViewShowersAlgorithm.h
"
12
13
namespace
lar_content
14
{
15
19
class
SimpleShowersTool
:
public
ShowerTensorTool
20
{
21
public
:
25
SimpleShowersTool
();
26
27
bool
Run
(
ThreeViewShowersAlgorithm
*
const
pAlgorithm,
TensorType
&overlapTensor);
28
29
private
:
36
void
FindBestShower
(
const
TensorType
&overlapTensor,
ProtoParticleVector
&protoParticleVector)
const
;
37
43
bool
PassesElementCuts
(TensorType::ElementList::const_iterator eIter)
const
;
44
45
pandora::StatusCode
ReadSettings
(
const
pandora::TiXmlHandle
xmlHandle);
46
47
float
m_minMatchedFraction
;
48
unsigned
int
m_minMatchedSamplingPoints
;
49
float
m_minXOverlapFraction
;
50
};
51
52
}
// namespace lar_content
53
54
#endif
// #ifndef SIMPLE_SHOWERS_TOOL_H
ThreeViewShowersAlgorithm.h
Header file for the three view showers algorithm class.
lar_content::ShowerTensorTool
ShowerTensorTool class.
Definition
ThreeViewShowersAlgorithm.h:172
lar_content::ShowerTensorTool::TensorType
ThreeViewShowersAlgorithm::MatchingType::TensorType TensorType
Definition
ThreeViewShowersAlgorithm.h:174
lar_content::SimpleShowersTool
SimpleShowersTool class.
Definition
SimpleShowersTool.h:20
lar_content::SimpleShowersTool::m_minMatchedSamplingPoints
unsigned int m_minMatchedSamplingPoints
The min number of matched sampling points for particle creation.
Definition
SimpleShowersTool.h:48
lar_content::SimpleShowersTool::m_minMatchedFraction
float m_minMatchedFraction
The min matched sampling point fraction for particle creation.
Definition
SimpleShowersTool.h:47
lar_content::SimpleShowersTool::ReadSettings
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
Read the algorithm settings.
Definition
SimpleShowersTool.cc:97
lar_content::SimpleShowersTool::SimpleShowersTool
SimpleShowersTool()
Default constructor.
Definition
SimpleShowersTool.cc:18
lar_content::SimpleShowersTool::m_minXOverlapFraction
float m_minXOverlapFraction
The min x overlap fraction (in each view) for particle creation.
Definition
SimpleShowersTool.h:49
lar_content::SimpleShowersTool::Run
bool Run(ThreeViewShowersAlgorithm *const pAlgorithm, TensorType &overlapTensor)
Run the algorithm tool.
Definition
SimpleShowersTool.cc:24
lar_content::SimpleShowersTool::FindBestShower
void FindBestShower(const TensorType &overlapTensor, ProtoParticleVector &protoParticleVector) const
Find best shower match as a simple way to (try to) resolve ambiguities in the tensor.
Definition
SimpleShowersTool.cc:38
lar_content::SimpleShowersTool::PassesElementCuts
bool PassesElementCuts(TensorType::ElementList::const_iterator eIter) const
Whether a provided (iterator to a) tensor element passes the selection cuts for particle creation.
Definition
SimpleShowersTool.cc:75
lar_content::ThreeViewShowersAlgorithm
ThreeViewShowersAlgorithm class.
Definition
ThreeViewShowersAlgorithm.h:30
pandora::TiXmlHandle
Definition
tinyxml.h:1646
lar_content
Definition
CheatingBeamParticleIdTool.cc:19
lar_content::ProtoParticleVector
std::vector< ProtoParticle > ProtoParticleVector
Definition
MatchingBaseAlgorithm.h:30
pandora::StatusCode
StatusCode
The StatusCode enum.
Definition
StatusCodes.h:100
LArContent
larpandoracontent
LArThreeDReco
LArShowerMatching
SimpleShowersTool.h