All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
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.

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 }
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.

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

Get the vertex direction.

Returns
the vertex direction

Definition at line 257 of file LArPointingCluster.h.

258 {
259  if (!m_isInitialized)
260  throw pandora::StatusCodeException(pandora::STATUS_CODE_NOT_INITIALIZED);
261 
262  return m_direction;
263 }
bool m_isInitialized
Whether the vertex has been initialized.
pandora::CartesianVector m_direction
The vertex direction.
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.

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.

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.

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

Is this the inner vertex.

Returns
boolean

Definition at line 277 of file LArPointingCluster.h.

278 {
279  if (!m_isInitialized)
280  throw pandora::StatusCodeException(pandora::STATUS_CODE_NOT_INITIALIZED);
281 
282  return m_isInner;
283 }
bool m_isInner
Whether this is the inner vertex.
bool m_isInitialized
Whether the vertex has been initialized.
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.

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.

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

Whether the vertex has been initialized.

Definition at line 114 of file LArPointingCluster.h.

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

Whether this is the inner vertex.

Definition at line 113 of file LArPointingCluster.h.

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

The address of the cluster.

Definition at line 109 of file LArPointingCluster.h.

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

The vertex position.

Definition at line 110 of file LArPointingCluster.h.

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

Rms from vertex fit.

Definition at line 112 of file LArPointingCluster.h.


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