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 PFParticleVectorGetTargetHypothesis () const
 Get the slice as reconstructed under the target hypothesis. More...
 
const PFParticleVectorGetCosmicRayHypothesis () 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 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 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.
Definition: Slice.h:62
PFParticleVector m_crHypothesis
The slice as reconstructed under the cosmic-ray hypothesis.
Definition: Slice.h:64
PFParticleVector m_targetHypothesis
The slice as reconstructed under the neutrino / beam particle hypothesis.
Definition: Slice.h:63
bool m_isTarget
If the slice has been identified as a neutrino / beam particle.
Definition: Slice.h:65

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 Slice.h.

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

Get the slice as reconstructed under the target hypothesis.

Definition at line 89 of file Slice.h.

90 {
91  return m_targetHypothesis;
92 }
PFParticleVector m_targetHypothesis
The slice as reconstructed under the neutrino / beam particle hypothesis.
Definition: Slice.h:63
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 Slice.h.

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

Check if the slice has been identified as a target.

Definition at line 103 of file Slice.h.

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

Tag the slice as a cosmic.

Definition at line 117 of file Slice.h.

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

Tag the slice as a neutrino / test beam particle.

Definition at line 110 of file Slice.h.

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

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 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 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 Slice.h.

float lar_pandora::Slice::m_topologicalScore
private

The topological neutrino / beam particle score from Pandora.

Definition at line 62 of file Slice.h.


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