LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
lar_content::LArPointingCluster::Vertex Class Reference

Vertex class. More...

#include "LArPointingCluster.h"

Public Member Functions

 Vertex ()
 Default constructor. More...
 
 Vertex (const pandora::Cluster *const pCluster, const pandora::CartesianVector &position, const pandora::CartesianVector &direction, const float rms, const bool isInner)
 Constructor. More...
 
 Vertex (const Vertex &rhs)
 Copy constructor. More...
 
 ~Vertex ()
 Destructor. More...
 
const pandora::Cluster * GetCluster () const
 Get the address of the cluster. More...
 
const pandora::CartesianVector & GetPosition () const
 Get the vertex position. More...
 
const pandora::CartesianVector & GetDirection () const
 Get the vertex direction. More...
 
float GetRms () const
 Get rms from vertex fit. More...
 
bool IsInnerVertex () const
 Is this the inner vertex. More...
 
bool IsInitialized () const
 Whether the vertex has been initialized. More...
 
Vertexoperator= (const Vertex &rhs)
 Vertex assigment operator. More...
 

Private Attributes

const pandora::Cluster * m_pCluster
 The address of the cluster. More...
 
pandora::CartesianVector m_position
 The vertex position. More...
 
pandora::CartesianVector m_direction
 The vertex direction. More...
 
float m_rms
 Rms from vertex fit. More...
 
bool m_isInner
 Whether this is the inner vertex. More...
 
bool m_isInitialized
 Whether the vertex has been initialized. More...
 

Detailed Description

Vertex class.

Definition at line 26 of file LArPointingCluster.h.

Constructor & Destructor Documentation

lar_content::LArPointingCluster::Vertex::Vertex ( )

Default constructor.

Definition at line 97 of file LArPointingCluster.cc.

References m_direction, m_isInitialized, m_isInner, m_pCluster, m_position, and m_rms.

97  :
98  m_pCluster(NULL),
99  m_position(0.f, 0.f, 0.f),
100  m_direction(0.f, 0.f, 0.f),
101  m_rms(std::numeric_limits<float>::max()),
102  m_isInner(false),
103  m_isInitialized(false)
104 {
105 }
TFile f
Definition: plotHisto.C:6
const pandora::Cluster * m_pCluster
The address of the cluster.
bool m_isInner
Whether this is the inner vertex.
bool m_isInitialized
Whether the vertex has been initialized.
pandora::CartesianVector m_direction
The vertex direction.
pandora::CartesianVector m_position
The vertex position.
lar_content::LArPointingCluster::Vertex::Vertex ( const pandora::Cluster *const  pCluster,
const pandora::CartesianVector &  position,
const pandora::CartesianVector &  direction,
const float  rms,
const bool  isInner 
)

Constructor.

Parameters
pClusteraddress of the cluster
positionthe vertex position
directionthe vertex direction
rmsthe rms from vertex fit
isInnerwhether this is a cluster inner or outer vertex
lar_content::LArPointingCluster::Vertex::Vertex ( const Vertex rhs)

Copy constructor.

Parameters
rhsthe vertex instance to copy

Definition at line 122 of file LArPointingCluster.cc.

122  :
123  m_pCluster(rhs.m_pCluster),
124  m_position(rhs.m_position),
125  m_direction(rhs.m_direction),
126  m_rms(rhs.m_rms),
127  m_isInner(rhs.m_isInner),
128  m_isInitialized(rhs.m_isInitialized)
129 {
130 }
const pandora::Cluster * m_pCluster
The address of the cluster.
bool m_isInner
Whether this is the inner vertex.
bool m_isInitialized
Whether the vertex has been initialized.
pandora::CartesianVector m_direction
The vertex direction.
pandora::CartesianVector m_position
The vertex position.
lar_content::LArPointingCluster::Vertex::~Vertex ( )

Destructor.

Definition at line 134 of file LArPointingCluster.cc.

135 {
136 }

Member Function Documentation

const pandora::Cluster * lar_content::LArPointingCluster::Vertex::GetCluster ( ) const
inline

Get the address of the cluster.

Returns
the address of the cluster

Definition at line 237 of file LArPointingCluster.h.

References m_isInitialized, and m_pCluster.

Referenced by lar_content::LArPointingClusterHelper::GetAssociatedEnergy(), lar_content::LArPointingClusterHelper::GetAverageDirection(), and lar_content::CrossGapsExtensionAlgorithm::IsAssociated().

238 {
239  if (!m_isInitialized)
240  throw pandora::StatusCodeException(pandora::STATUS_CODE_NOT_INITIALIZED);
241 
242  return m_pCluster;
243 }
const pandora::Cluster * m_pCluster
The address of the cluster.
bool m_isInitialized
Whether the vertex has been initialized.
const pandora::CartesianVector & lar_content::LArPointingCluster::Vertex::GetDirection ( ) const
inline
const pandora::CartesianVector & lar_content::LArPointingCluster::Vertex::GetPosition ( ) const
inline

Get the vertex position.

Returns
the vertex position

Definition at line 247 of file LArPointingCluster.h.

References m_isInitialized, and m_position.

Referenced by lar_content::CosmicRayVertexBuildingAlgorithm::BuildCosmicRayParent(), lar_content::NeutrinoDaughterVerticesAlgorithm::BuildDaughterTrack(), lar_content::OvershootSplittingAlgorithm::BuildIntersectionMap(), lar_content::LArStitchingHelper::CalculateX0(), lar_content::StitchingCosmicRayMergingTool::CalculateX0(), lar_content::EventSlicingTool::CheckClosestApproach(), lar_content::LArPointingClusterHelper::CollectAssociatedClusters(), lar_content::StitchingCosmicRayMergingTool::CreatePfoMatches(), lar_content::LongitudinalExtensionAlgorithm::FillClusterAssociationMatrix(), lar_content::CosmicRayExtensionAlgorithm::FillClusterAssociationMatrix(), lar_content::LArPointingClusterHelper::GetAssociatedEnergy(), lar_content::LArPointingClusterHelper::GetAverageDirection(), lar_content::LArStitchingHelper::GetClosestVertices(), lar_content::LArVertexHelper::GetClusterDirectionInZ(), lar_content::SlidingConePfoMopUpAlgorithm::GetClusterMergeMap(), lar_content::LArPointingClusterHelper::GetImpactParameters(), lar_content::LArPointingClusterHelper::GetImpactParametersInYZ(), lar_content::VertexBasedPfoRecoveryAlgorithm::GetInnerVertex(), lar_content::LArPointingCluster::GetLengthSquared(), lar_content::ThreeDKinkBaseTool::IsALowestInX(), lar_content::TwoViewThreeDKinkTool::IsALowestInX(), lar_content::CrossGapsExtensionAlgorithm::IsAssociated(), lar_content::LArPointingClusterHelper::IsEmission(), lar_content::EventSlicingTool::IsEmission(), lar_content::LArPointingClusterHelper::IsNode(), lar_content::EventSlicingTool::IsNode(), lar_content::NViewTrackMatchingAlgorithm< T >::MakeClusterSplit(), lar_content::CosmicRayTrackRecoveryAlgorithm::MatchClusters(), lar_content::VertexBasedPfoRecoveryAlgorithm::MatchTwoViews(), lar_content::TrackSplittingTool::PassesChecks(), lar_content::VertexAssociatedPfosTool::Run(), lar_content::OvershootTracksTool::SetSplitPosition(), and lar_content::ParticleRecoveryAlgorithm::VertexClusterSelection().

248 {
249  if (!m_isInitialized)
250  throw pandora::StatusCodeException(pandora::STATUS_CODE_NOT_INITIALIZED);
251 
252  return m_position;
253 }
bool m_isInitialized
Whether the vertex has been initialized.
pandora::CartesianVector m_position
The vertex position.
float lar_content::LArPointingCluster::Vertex::GetRms ( ) const
inline

Get rms from vertex fit.

Returns
the rms

Definition at line 267 of file LArPointingCluster.h.

References m_isInitialized, and m_rms.

Referenced by lar_content::LongitudinalExtensionAlgorithm::FillClusterAssociationMatrix().

268 {
269  if (!m_isInitialized)
270  throw pandora::StatusCodeException(pandora::STATUS_CODE_NOT_INITIALIZED);
271 
272  return m_rms;
273 }
bool m_isInitialized
Whether the vertex has been initialized.
bool lar_content::LArPointingCluster::Vertex::IsInitialized ( ) const
inline

Whether the vertex has been initialized.

Returns
boolean

Definition at line 287 of file LArPointingCluster.h.

References m_isInitialized.

Referenced by lar_content::LongitudinalExtensionAlgorithm::FillClusterAssociationMatrix(), and lar_content::CosmicRayExtensionAlgorithm::FillClusterAssociationMatrix().

288 {
289  return m_isInitialized;
290 }
bool m_isInitialized
Whether the vertex has been initialized.
bool lar_content::LArPointingCluster::Vertex::IsInnerVertex ( ) const
inline
LArPointingCluster::Vertex & lar_content::LArPointingCluster::Vertex::operator= ( const Vertex rhs)

Vertex assigment operator.

Parameters
rhsthe vertex to assign

Definition at line 140 of file LArPointingCluster.cc.

References m_direction, m_isInitialized, m_isInner, m_pCluster, m_position, and m_rms.

141 {
142  m_pCluster = rhs.m_pCluster;
143  m_position = rhs.m_position;
144  m_direction = rhs.m_direction;
145  m_rms = rhs.m_rms;
146  m_isInner = rhs.m_isInner;
147  m_isInitialized = rhs.m_isInitialized;
148 
149  return *this;
150 }
const pandora::Cluster * m_pCluster
The address of the cluster.
bool m_isInner
Whether this is the inner vertex.
bool m_isInitialized
Whether the vertex has been initialized.
pandora::CartesianVector m_direction
The vertex direction.
pandora::CartesianVector m_position
The vertex position.

Member Data Documentation

pandora::CartesianVector lar_content::LArPointingCluster::Vertex::m_direction
private

The vertex direction.

Definition at line 111 of file LArPointingCluster.h.

Referenced by GetDirection(), operator=(), and Vertex().

bool lar_content::LArPointingCluster::Vertex::m_isInitialized
private

Whether the vertex has been initialized.

Definition at line 114 of file LArPointingCluster.h.

Referenced by GetCluster(), GetDirection(), GetPosition(), GetRms(), IsInitialized(), IsInnerVertex(), operator=(), and Vertex().

bool lar_content::LArPointingCluster::Vertex::m_isInner
private

Whether this is the inner vertex.

Definition at line 113 of file LArPointingCluster.h.

Referenced by IsInnerVertex(), operator=(), and Vertex().

const pandora::Cluster* lar_content::LArPointingCluster::Vertex::m_pCluster
private

The address of the cluster.

Definition at line 109 of file LArPointingCluster.h.

Referenced by GetCluster(), lar_content::LArPointingCluster::GetCluster(), operator=(), and Vertex().

pandora::CartesianVector lar_content::LArPointingCluster::Vertex::m_position
private

The vertex position.

Definition at line 110 of file LArPointingCluster.h.

Referenced by GetPosition(), operator=(), and Vertex().

float lar_content::LArPointingCluster::Vertex::m_rms
private

Rms from vertex fit.

Definition at line 112 of file LArPointingCluster.h.

Referenced by GetRms(), operator=(), and Vertex().


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