All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
lar_pandora::Slice Class Reference

Slice class. More...

#include <Slice.h>

Public Member Functions

 Slice (const float topologicalScore, const PFParticleVector &targetHypothesis, const PFParticleVector &crHypothesis, const bool isTarget=false)
 Default constructor. More...
 
float GetTopologicalScore () const
 Get the topological score for the slice - closer to 1 means more likely to be the target slice. More...
 
const PFParticleVector & GetTargetHypothesis () const
 Get the slice as reconstructed under the target hypothesis. More...
 
const PFParticleVector & GetCosmicRayHypothesis () const
 Get the slice as reconstructed under the cosmic-ray hypothesis. More...
 
bool IsTaggedAsTarget () const
 Check if the slice has been identified as a target. More...
 
void TagAsTarget ()
 Tag the slice as a neutrino / test beam particle. More...
 
void TagAsCosmic ()
 Tag the slice as a cosmic. More...
 

Private Attributes

float m_topologicalScore
 The topological neutrino / beam particle score from Pandora. More...
 
PFParticleVector m_targetHypothesis
 The slice as reconstructed under the neutrino / beam particle hypothesis. More...
 
PFParticleVector m_crHypothesis
 The slice as reconstructed under the cosmic-ray hypothesis. More...
 
bool m_isTarget
 If the slice has been identified as a neutrino / beam particle. More...
 

Detailed Description

Slice class.

Definition at line 18 of file larpandora/larpandora/LArPandoraEventBuilding/Slice.h.

Constructor & Destructor Documentation

lar_pandora::Slice::Slice ( const float  topologicalScore,
const PFParticleVector &  targetHypothesis,
const PFParticleVector &  crHypothesis,
const bool  isTarget = false 
)
inline

Default constructor.

Parameters
topologicalScorethe topological score from Pandora
targetHypothesisthe slice as reconstructed under the target hypothesis
crHypothesisthe slice as reconstructed under the cosmic-ray hypothesis
isTargetif the slice has been identified as a target

Definition at line 72 of file larpandora/larpandora/LArPandoraEventBuilding/Slice.h.

72  :
73  m_topologicalScore(topologicalScore),
74  m_targetHypothesis(targetHypothesis),
75  m_crHypothesis(crHypothesis),
76  m_isTarget(isTarget)
77 {
78 }
float m_topologicalScore
The topological neutrino / beam particle score from Pandora.
PFParticleVector m_crHypothesis
The slice as reconstructed under the cosmic-ray hypothesis.
PFParticleVector m_targetHypothesis
The slice as reconstructed under the neutrino / beam particle hypothesis.
bool m_isTarget
If the slice has been identified as a neutrino / beam particle.

Member Function Documentation

const PFParticleVector & lar_pandora::Slice::GetCosmicRayHypothesis ( ) const
inline

Get the slice as reconstructed under the cosmic-ray hypothesis.

Definition at line 96 of file larpandora/larpandora/LArPandoraEventBuilding/Slice.h.

97 {
98  return m_crHypothesis;
99 }
PFParticleVector m_crHypothesis
The slice as reconstructed under the cosmic-ray hypothesis.
const PFParticleVector & lar_pandora::Slice::GetTargetHypothesis ( ) const
inline

Get the slice as reconstructed under the target hypothesis.

Definition at line 89 of file larpandora/larpandora/LArPandoraEventBuilding/Slice.h.

90 {
91  return m_targetHypothesis;
92 }
PFParticleVector m_targetHypothesis
The slice as reconstructed under the neutrino / beam particle hypothesis.
float lar_pandora::Slice::GetTopologicalScore ( ) const
inline

Get the topological score for the slice - closer to 1 means more likely to be the target slice.

Definition at line 82 of file larpandora/larpandora/LArPandoraEventBuilding/Slice.h.

83 {
84  return m_topologicalScore;
85 }
float m_topologicalScore
The topological neutrino / beam particle score from Pandora.
bool lar_pandora::Slice::IsTaggedAsTarget ( ) const
inline

Check if the slice has been identified as a target.

Definition at line 103 of file larpandora/larpandora/LArPandoraEventBuilding/Slice.h.

104 {
105  return m_isTarget;
106 }
bool m_isTarget
If the slice has been identified as a neutrino / beam particle.
void lar_pandora::Slice::TagAsCosmic ( )
inline

Tag the slice as a cosmic.

Definition at line 117 of file larpandora/larpandora/LArPandoraEventBuilding/Slice.h.

118 {
119  m_isTarget = false;
120 }
bool m_isTarget
If the slice has been identified as a neutrino / beam particle.
void lar_pandora::Slice::TagAsTarget ( )
inline

Tag the slice as a neutrino / test beam particle.

Definition at line 110 of file larpandora/larpandora/LArPandoraEventBuilding/Slice.h.

111 {
112  m_isTarget = true;
113 }
bool m_isTarget
If the slice has been identified as a neutrino / beam particle.

Member Data Documentation

PFParticleVector lar_pandora::Slice::m_crHypothesis
private

The slice as reconstructed under the cosmic-ray hypothesis.

Definition at line 64 of file larpandora/larpandora/LArPandoraEventBuilding/Slice.h.

bool lar_pandora::Slice::m_isTarget
private

If the slice has been identified as a neutrino / beam particle.

Definition at line 65 of file larpandora/larpandora/LArPandoraEventBuilding/Slice.h.

PFParticleVector lar_pandora::Slice::m_targetHypothesis
private

The slice as reconstructed under the neutrino / beam particle hypothesis.

Definition at line 63 of file larpandora/larpandora/LArPandoraEventBuilding/Slice.h.

float lar_pandora::Slice::m_topologicalScore
private

The topological neutrino / beam particle score from Pandora.

Definition at line 62 of file larpandora/larpandora/LArPandoraEventBuilding/Slice.h.


The documentation for this class was generated from the following file: