LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
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 17 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 74 of file Slice.h.

78  : m_topologicalScore(topologicalScore)
79  , m_targetHypothesis(targetHypothesis)
80  , m_crHypothesis(crHypothesis)
81  , m_isTarget(isTarget)
82  {}
float m_topologicalScore
The topological neutrino / beam particle score from Pandora.
Definition: Slice.h:63
PFParticleVector m_crHypothesis
The slice as reconstructed under the cosmic-ray hypothesis.
Definition: Slice.h:66
PFParticleVector m_targetHypothesis
The slice as reconstructed under the neutrino / beam particle hypothesis.
Definition: Slice.h:65
bool m_isTarget
If the slice has been identified as a neutrino / beam particle.
Definition: Slice.h:67

Member Function Documentation

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

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

Definition at line 100 of file Slice.h.

References m_crHypothesis.

Referenced by lar_pandora::LArPandoraSliceIdHelper::GetReconstructedHitsInSlice().

101  {
102  return m_crHypothesis;
103  }
PFParticleVector m_crHypothesis
The slice as reconstructed under the cosmic-ray hypothesis.
Definition: Slice.h:66
const PFParticleVector & lar_pandora::Slice::GetTargetHypothesis ( ) const
inline

Get the slice as reconstructed under the target hypothesis.

Definition at line 93 of file Slice.h.

References m_targetHypothesis.

Referenced by lar_pandora::LArPandoraSliceIdHelper::GetReconstructedHitsInSlice().

94  {
95  return m_targetHypothesis;
96  }
PFParticleVector m_targetHypothesis
The slice as reconstructed under the neutrino / beam particle hypothesis.
Definition: Slice.h:65
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 86 of file Slice.h.

References m_topologicalScore.

87  {
88  return m_topologicalScore;
89  }
float m_topologicalScore
The topological neutrino / beam particle score from Pandora.
Definition: Slice.h:63
bool lar_pandora::Slice::IsTaggedAsTarget ( ) const
inline

Check if the slice has been identified as a target.

Definition at line 107 of file Slice.h.

References m_isTarget.

108  {
109  return m_isTarget;
110  }
bool m_isTarget
If the slice has been identified as a neutrino / beam particle.
Definition: Slice.h:67
void lar_pandora::Slice::TagAsCosmic ( )
inline

Tag the slice as a cosmic.

Definition at line 121 of file Slice.h.

References m_isTarget.

122  {
123  m_isTarget = false;
124  }
bool m_isTarget
If the slice has been identified as a neutrino / beam particle.
Definition: Slice.h:67
void lar_pandora::Slice::TagAsTarget ( )
inline

Tag the slice as a neutrino / test beam particle.

Definition at line 114 of file Slice.h.

References m_isTarget.

115  {
116  m_isTarget = true;
117  }
bool m_isTarget
If the slice has been identified as a neutrino / beam particle.
Definition: Slice.h:67

Member Data Documentation

PFParticleVector lar_pandora::Slice::m_crHypothesis
private

The slice as reconstructed under the cosmic-ray hypothesis.

Definition at line 66 of file Slice.h.

Referenced by GetCosmicRayHypothesis().

bool lar_pandora::Slice::m_isTarget
private

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

Definition at line 67 of file Slice.h.

Referenced by IsTaggedAsTarget(), TagAsCosmic(), and TagAsTarget().

PFParticleVector lar_pandora::Slice::m_targetHypothesis
private

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

Definition at line 65 of file Slice.h.

Referenced by GetTargetHypothesis().

float lar_pandora::Slice::m_topologicalScore
private

The topological neutrino / beam particle score from Pandora.

Definition at line 63 of file Slice.h.

Referenced by GetTopologicalScore().


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