Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
srcs
larpandoracontent
larpandoracontent
LArThreeDReco
LArShowerMatching
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
11
#include "
larpandoracontent/LArThreeDReco/LArShowerMatching/ThreeViewShowersAlgorithm.h
"
12
13
namespace
lar_content
14
{
15
16
/**
17
* @brief SimpleShowersTool class
18
*/
19
class
SimpleShowersTool
:
public
ShowerTensorTool
20
{
21
public
:
22
/**
23
* @brief Default constructor
24
*/
25
SimpleShowersTool
();
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
*/
43
bool
PassesElementCuts
(
TensorType::ElementList::const_iterator
eIter)
const
;
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
lar_content::ShowerTensorTool
ShowerTensorTool class.
Definition:
ThreeViewShowersAlgorithm.h:171
lar_content::OverlapTensor< ShowerOverlapResult >
lar_content::ProtoParticleVector
std::vector< ProtoParticle > ProtoParticleVector
Definition:
MatchingBaseAlgorithm.h:30
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::ThreeViewShowersAlgorithm
ThreeViewShowersAlgorithm class.
Definition:
ThreeViewShowersAlgorithm.h:29
lar_content::SimpleShowersTool::SimpleShowersTool
SimpleShowersTool()
Default constructor.
Definition:
SimpleShowersTool.cc:18
lar_content::SimpleShowersTool::Run
bool Run(ThreeViewShowersAlgorithm *const pAlgorithm, TensorType &overlapTensor)
Run the algorithm tool.
Definition:
SimpleShowersTool.cc:24
lar_content::SimpleShowersTool::m_minMatchedFraction
float m_minMatchedFraction
The min matched sampling point fraction for particle creation.
Definition:
SimpleShowersTool.h:47
lar_content::SimpleShowersTool
SimpleShowersTool class.
Definition:
SimpleShowersTool.h:19
lar_content::SimpleShowersTool::ReadSettings
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
Definition:
SimpleShowersTool.cc:97
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_minXOverlapFraction
float m_minXOverlapFraction
The min x overlap fraction (in each view) for particle creation.
Definition:
SimpleShowersTool.h:49
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
ThreeViewShowersAlgorithm.h
Header file for the three view showers algorithm class.
lar_content::OverlapTensor< ShowerOverlapResult >::const_iterator
TheTensor::const_iterator const_iterator
Definition:
LArOverlapTensor.h:160
Generated by
1.8.5