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

ConstituentHit class. More...

#include "LArHitWidthHelper.h"

Classes

class  SortByDistanceToPoint
 SortByDistanceToPoint class. More...
 

Public Member Functions

 ConstituentHit (const pandora::CartesianVector &positionVector, const float hitWidth, const pandora::Cluster *const pParentClusterAddress)
 Constructor. More...
 
const pandora::CartesianVector & GetPositionVector () const
 Returns the constituent hit central position. More...
 
float GetHitWidth () const
 Returns the constituent hit width. More...
 
const pandora::Cluster * GetParentClusterAddress () const
 Returns the address of the parent cluster. More...
 

Private Attributes

pandora::CartesianVector m_positionVector
 The central position of the consituent hit. More...
 
float m_hitWidth
 The width of the constituent hit. More...
 
const pandora::Cluster * m_pParentClusterAddress
 The address of the cluster the constituent hit belongs to. More...
 

Detailed Description

ConstituentHit class.

Definition at line 25 of file LArHitWidthHelper.h.

Constructor & Destructor Documentation

lar_content::LArHitWidthHelper::ConstituentHit::ConstituentHit ( const pandora::CartesianVector &  positionVector,
const float  hitWidth,
const pandora::Cluster *const  pParentClusterAddress 
)

Constructor.

Parameters
positionVectorthe central position of the constituent hit
hitWidththe hit width of the constituent hit
pParentClusterAddressthe address of the original, unbroken hit to which it belongs

Definition at line 16 of file LArHitWidthHelper.cc.

Referenced by lar_content::LArHitWidthHelper::SplitHitIntoConstituents().

16  :
17  m_positionVector(positionVector),
18  m_hitWidth(hitWidth),
19  m_pParentClusterAddress(pParentClusterAddress)
20 {
21 }
float m_hitWidth
The width of the constituent hit.
pandora::CartesianVector m_positionVector
The central position of the consituent hit.
const pandora::Cluster * m_pParentClusterAddress
The address of the cluster the constituent hit belongs to.

Member Function Documentation

float lar_content::LArHitWidthHelper::ConstituentHit::GetHitWidth ( ) const
inline

Returns the constituent hit width.

Definition at line 346 of file LArHitWidthHelper.h.

References m_hitWidth.

347 {
348  return m_hitWidth;
349 }
float m_hitWidth
The width of the constituent hit.
const pandora::Cluster * lar_content::LArHitWidthHelper::ConstituentHit::GetParentClusterAddress ( ) const
inline

Returns the address of the parent cluster.

Definition at line 353 of file LArHitWidthHelper.h.

References m_pParentClusterAddress.

354 {
356 }
const pandora::Cluster * m_pParentClusterAddress
The address of the cluster the constituent hit belongs to.
const pandora::CartesianVector & lar_content::LArHitWidthHelper::ConstituentHit::GetPositionVector ( ) const
inline

Returns the constituent hit central position.

Definition at line 339 of file LArHitWidthHelper.h.

References m_positionVector.

Referenced by lar_content::LArHitWidthHelper::ConstituentHit::SortByDistanceToPoint::operator()().

340 {
341  return m_positionVector;
342 }
pandora::CartesianVector m_positionVector
The central position of the consituent hit.

Member Data Documentation

float lar_content::LArHitWidthHelper::ConstituentHit::m_hitWidth
private

The width of the constituent hit.

Definition at line 84 of file LArHitWidthHelper.h.

Referenced by GetHitWidth().

pandora::CartesianVector lar_content::LArHitWidthHelper::ConstituentHit::m_positionVector
private

The central position of the consituent hit.

Definition at line 83 of file LArHitWidthHelper.h.

Referenced by GetPositionVector().

const pandora::Cluster* lar_content::LArHitWidthHelper::ConstituentHit::m_pParentClusterAddress
private

The address of the cluster the constituent hit belongs to.

Definition at line 85 of file LArHitWidthHelper.h.

Referenced by GetParentClusterAddress().


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