LArSoft  v10_06_00
Liquid Argon Software toolkit - https://larsoft.org/
lar_dl_content::ExtremalPoint Class Reference

ExtremalPoint class. More...

#include "LArHierarchyPfo.h"

Public Member Functions

 ExtremalPoint ()
 Default constructor. More...
 
 ExtremalPoint (const ExtremalPoint &extremalPoint)
 Copy constructor. More...
 
const pandora::CartesianVector & GetPosition () const
 Get the position. More...
 
const pandora::CartesianVector & GetDirection () const
 Get the direction at the extremal point. More...
 
void Set (const pandora::CartesianVector &position, const pandora::CartesianVector &direction)
 Set the the extremal point's position and direction. More...
 
bool IsSet () const
 Whether extremal point object has been set. More...
 
ExtremalPointoperator= (const ExtremalPoint &rhs)
 Assignment operator. More...
 

Private Attributes

bool m_isSet
 whether the extremal point object has been set More...
 
pandora::CartesianVector m_position
 the extremal point position More...
 
pandora::CartesianVector m_direction
 the extremal point direction (pointing into the particle) More...
 

Detailed Description

ExtremalPoint class.

Definition at line 24 of file LArHierarchyPfo.h.

Constructor & Destructor Documentation

lar_dl_content::ExtremalPoint::ExtremalPoint ( )
inline

Default constructor.

Definition at line 265 of file LArHierarchyPfo.h.

265  :
266  m_isSet(false),
267  m_position(-999.f, -999.f, -999.f),
268  m_direction(-999.f, -999.f, -999.f)
269 {
270 }
pandora::CartesianVector m_position
the extremal point position
pandora::CartesianVector m_direction
the extremal point direction (pointing into the particle)
TFile f
Definition: plotHisto.C:6
bool m_isSet
whether the extremal point object has been set
lar_dl_content::ExtremalPoint::ExtremalPoint ( const ExtremalPoint extremalPoint)
inline

Copy constructor.

Definition at line 274 of file LArHierarchyPfo.h.

274  :
275  m_isSet(extremalPoint.m_isSet),
276  m_position(extremalPoint.m_position),
277  m_direction(extremalPoint.m_direction)
278 {
279 }
pandora::CartesianVector m_position
the extremal point position
pandora::CartesianVector m_direction
the extremal point direction (pointing into the particle)
bool m_isSet
whether the extremal point object has been set

Member Function Documentation

const pandora::CartesianVector & lar_dl_content::ExtremalPoint::GetDirection ( ) const
inline

Get the direction at the extremal point.

Returns
the direction

Definition at line 290 of file LArHierarchyPfo.h.

References m_direction.

Referenced by lar_dl_content::DLPrimaryHierarchyTool::CalculateConnectionDistances(), lar_dl_content::DLLaterTierHierarchyTool::ExtrapolateChildToParent(), lar_dl_content::DLPrimaryHierarchyTool::SetConnectionParams(), and lar_dl_content::DLLaterTierHierarchyTool::SetOvershootParams().

291 {
292  return m_direction;
293 }
pandora::CartesianVector m_direction
the extremal point direction (pointing into the particle)
bool lar_dl_content::ExtremalPoint::IsSet ( ) const
inline

Whether extremal point object has been set.

Returns
whether the extremal point object has been set

Definition at line 306 of file LArHierarchyPfo.h.

References m_isSet.

Referenced by lar_dl_content::DLLaterTierHierarchyTool::IsShowerVertexUpstream().

307 {
308  return m_isSet;
309 }
bool m_isSet
whether the extremal point object has been set
ExtremalPoint & lar_dl_content::ExtremalPoint::operator= ( const ExtremalPoint rhs)
inline

Assignment operator.

Definition at line 313 of file LArHierarchyPfo.h.

References m_direction, m_isSet, and m_position.

314 {
315  this->m_isSet = rhs.m_isSet;
316  this->m_position = rhs.m_position;
317  this->m_direction = rhs.m_direction;
318 
319  return *this;
320 }
pandora::CartesianVector m_position
the extremal point position
pandora::CartesianVector m_direction
the extremal point direction (pointing into the particle)
bool m_isSet
whether the extremal point object has been set
void lar_dl_content::ExtremalPoint::Set ( const pandora::CartesianVector &  position,
const pandora::CartesianVector &  direction 
)
inline

Set the the extremal point's position and direction.

Parameters
positionthe position
directionthe direction

Definition at line 297 of file LArHierarchyPfo.h.

References m_direction, m_isSet, and m_position.

Referenced by lar_dl_content::DLNeutrinoHierarchyAlgorithm::GetExtremalVerticesAndDirections().

298 {
299  m_isSet = true;
300  m_position = position;
301  m_direction = direction;
302 }
pandora::CartesianVector m_position
the extremal point position
pandora::CartesianVector m_direction
the extremal point direction (pointing into the particle)
bool m_isSet
whether the extremal point object has been set

Member Data Documentation

pandora::CartesianVector lar_dl_content::ExtremalPoint::m_direction
private

the extremal point direction (pointing into the particle)

Definition at line 74 of file LArHierarchyPfo.h.

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

bool lar_dl_content::ExtremalPoint::m_isSet
private

whether the extremal point object has been set

Definition at line 72 of file LArHierarchyPfo.h.

Referenced by IsSet(), operator=(), and Set().

pandora::CartesianVector lar_dl_content::ExtremalPoint::m_position
private

the extremal point position

Definition at line 73 of file LArHierarchyPfo.h.

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


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