LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
lar_pandora::Slice Class Reference

Slice class. More...

#include "Slice.h"

Public Member Functions

 Slice (const float nuScore, const PFParticleVector &nuHypothesis, const PFParticleVector &crHypothesis, const bool isNeutrino=false)
 Default constructor. More...
 
float GetNeutrinoScore () const
 Get the neutrino score for the slice. More...
 
const PFParticleVectorGetNeutrinoHypothesis () const
 Get the slice as reconstructed under the neutrino hypothesis. More...
 
const PFParticleVectorGetCosmicRayHypothesis () const
 Get the slice as reconstructed under the cosmic-ray hypothesis. More...
 
bool IsTaggedAsNeutrino () const
 Check if the slice has been identified as a neutrino. More...
 
void TagAsNeutrino ()
 Tag the slice as a neutrino. More...
 
void TagAsCosmic ()
 Tag the slice as a cosmic. More...
 

Private Attributes

float m_nuScore
 The neutrino score from Pandora. More...
 
PFParticleVector m_nuHypothesis
 The slice as reconstructed under the neutrino hypothesis. More...
 
PFParticleVector m_crHypothesis
 The slice as reconstructed under the cosmic-ray hypothesis. More...
 
bool m_isNeutrino
 If the slice has been identified as a neutrino. More...
 

Detailed Description

Slice class.

Definition at line 18 of file Slice.h.

Constructor & Destructor Documentation

lar_pandora::Slice::Slice ( const float  nuScore,
const PFParticleVector nuHypothesis,
const PFParticleVector crHypothesis,
const bool  isNeutrino = false 
)
inline

Default constructor.

Parameters
nuScorethe neutrino score from Pandora
nuHypothesisthe slice as reconstructed under the neutrino hypothesis
crHypothesisthe slice as reconstructed under the cosmic-ray hypothesis
isNeutrinoif the slice has been identified as a neutrino

Definition at line 72 of file Slice.h.

72  :
73  m_nuScore(nuScore),
74  m_nuHypothesis(nuHypothesis),
75  m_crHypothesis(crHypothesis),
76  m_isNeutrino(isNeutrino)
77 {
78 }
float m_nuScore
The neutrino score from Pandora.
Definition: Slice.h:62
PFParticleVector m_nuHypothesis
The slice as reconstructed under the neutrino hypothesis.
Definition: Slice.h:63
PFParticleVector m_crHypothesis
The slice as reconstructed under the cosmic-ray hypothesis.
Definition: Slice.h:64
bool m_isNeutrino
If the slice has been identified as a neutrino.
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.

References m_crHypothesis.

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::GetNeutrinoHypothesis ( ) const
inline

Get the slice as reconstructed under the neutrino hypothesis.

Definition at line 89 of file Slice.h.

References m_nuHypothesis.

90 {
91  return m_nuHypothesis;
92 }
PFParticleVector m_nuHypothesis
The slice as reconstructed under the neutrino hypothesis.
Definition: Slice.h:63
float lar_pandora::Slice::GetNeutrinoScore ( ) const
inline

Get the neutrino score for the slice.

Definition at line 82 of file Slice.h.

References m_nuScore.

83 {
84  return m_nuScore;
85 }
float m_nuScore
The neutrino score from Pandora.
Definition: Slice.h:62
bool lar_pandora::Slice::IsTaggedAsNeutrino ( ) const
inline

Check if the slice has been identified as a neutrino.

Definition at line 103 of file Slice.h.

References m_isNeutrino.

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

Tag the slice as a cosmic.

Definition at line 117 of file Slice.h.

References m_isNeutrino.

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

Tag the slice as a neutrino.

Definition at line 110 of file Slice.h.

References m_isNeutrino.

111 {
112  m_isNeutrino = true;
113 }
bool m_isNeutrino
If the slice has been identified as a neutrino.
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.

Referenced by GetCosmicRayHypothesis().

bool lar_pandora::Slice::m_isNeutrino
private

If the slice has been identified as a neutrino.

Definition at line 65 of file Slice.h.

Referenced by IsTaggedAsNeutrino(), TagAsCosmic(), and TagAsNeutrino().

PFParticleVector lar_pandora::Slice::m_nuHypothesis
private

The slice as reconstructed under the neutrino hypothesis.

Definition at line 63 of file Slice.h.

Referenced by GetNeutrinoHypothesis().

float lar_pandora::Slice::m_nuScore
private

The neutrino score from Pandora.

Definition at line 62 of file Slice.h.

Referenced by GetNeutrinoScore().


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