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

HitAssociation class. More...

Public Member Functions

 HitAssociation (const pandora::CaloHit *const pPrimaryTarget, const float primaryDistanceSquared)
 Constructor. More...
 
void SetSecondaryTarget (const pandora::CaloHit *const pSecondaryTarget, const float secondaryDistanceSquared)
 Set secondary target. More...
 
const pandora::CaloHit * GetPrimaryTarget () const
 Get the primary target. More...
 
const pandora::CaloHit * GetSecondaryTarget () const
 Get the secondary target. More...
 
float GetPrimaryDistanceSquared () const
 Get the primary distance squared. More...
 
float GetSecondaryDistanceSquared () const
 Get the secondary distance squared. More...
 

Private Attributes

const pandora::CaloHit * m_pPrimaryTarget
 the primary target More...
 
const pandora::CaloHit * m_pSecondaryTarget
 the secondary target More...
 
float m_primaryDistanceSquared
 the primary distance squared More...
 
float m_secondaryDistanceSquared
 the secondary distance squared More...
 

Detailed Description

HitAssociation class.

Definition at line 33 of file TrackClusterCreationAlgorithm.h.

Constructor & Destructor Documentation

lar_content::TrackClusterCreationAlgorithm::HitAssociation::HitAssociation ( const pandora::CaloHit *const  pPrimaryTarget,
const float  primaryDistanceSquared 
)
inline

Constructor.

Parameters
pPrimaryTargetaddress of the primary target hit
primaryDistanceSquareddistance to the primary target hit squared

Definition at line 211 of file TrackClusterCreationAlgorithm.h.

211  :
212  m_pPrimaryTarget(pPrimaryTarget),
213  m_pSecondaryTarget(NULL),
214  m_primaryDistanceSquared(primaryDistanceSquared),
215  m_secondaryDistanceSquared(std::numeric_limits<float>::max())
216 {
217 }
const pandora::CaloHit * m_pSecondaryTarget
the secondary target

Member Function Documentation

float lar_content::TrackClusterCreationAlgorithm::HitAssociation::GetPrimaryDistanceSquared ( ) const
inline

Get the primary distance squared.

Returns
the primary distance squared

Definition at line 243 of file TrackClusterCreationAlgorithm.h.

References m_primaryDistanceSquared.

Referenced by lar_content::TrackClusterCreationAlgorithm::CreateSecondaryAssociation().

244 {
246 }
const pandora::CaloHit * lar_content::TrackClusterCreationAlgorithm::HitAssociation::GetPrimaryTarget ( ) const
inline

Get the primary target.

Returns
the target distance

Definition at line 229 of file TrackClusterCreationAlgorithm.h.

References m_pPrimaryTarget.

Referenced by lar_content::TrackClusterCreationAlgorithm::CreateSecondaryAssociation().

230 {
231  return m_pPrimaryTarget;
232 }
float lar_content::TrackClusterCreationAlgorithm::HitAssociation::GetSecondaryDistanceSquared ( ) const
inline

Get the secondary distance squared.

Returns
the secondary distance squared

Definition at line 250 of file TrackClusterCreationAlgorithm.h.

References m_secondaryDistanceSquared.

Referenced by lar_content::TrackClusterCreationAlgorithm::CreateSecondaryAssociation().

251 {
253 }
const pandora::CaloHit * lar_content::TrackClusterCreationAlgorithm::HitAssociation::GetSecondaryTarget ( ) const
inline

Get the secondary target.

Returns
the secondary target

Definition at line 236 of file TrackClusterCreationAlgorithm.h.

References m_pSecondaryTarget.

237 {
238  return m_pSecondaryTarget;
239 }
const pandora::CaloHit * m_pSecondaryTarget
the secondary target
void lar_content::TrackClusterCreationAlgorithm::HitAssociation::SetSecondaryTarget ( const pandora::CaloHit *const  pSecondaryTarget,
const float  secondaryDistanceSquared 
)
inline

Set secondary target.

Parameters
pSecondaryTargetaddress of the secondary target hit
secondaryDistanceSquareddistance to the primary target hit squared

Definition at line 221 of file TrackClusterCreationAlgorithm.h.

References m_pSecondaryTarget, and m_secondaryDistanceSquared.

Referenced by lar_content::TrackClusterCreationAlgorithm::CreateSecondaryAssociation().

222 {
223  m_pSecondaryTarget = pSecondaryTarget;
224  m_secondaryDistanceSquared = secondaryDistanceSquared;
225 }
const pandora::CaloHit * m_pSecondaryTarget
the secondary target

Member Data Documentation

const pandora::CaloHit* lar_content::TrackClusterCreationAlgorithm::HitAssociation::m_pPrimaryTarget
private

the primary target

Definition at line 81 of file TrackClusterCreationAlgorithm.h.

Referenced by GetPrimaryTarget().

float lar_content::TrackClusterCreationAlgorithm::HitAssociation::m_primaryDistanceSquared
private

the primary distance squared

Definition at line 83 of file TrackClusterCreationAlgorithm.h.

Referenced by GetPrimaryDistanceSquared().

const pandora::CaloHit* lar_content::TrackClusterCreationAlgorithm::HitAssociation::m_pSecondaryTarget
private

the secondary target

Definition at line 82 of file TrackClusterCreationAlgorithm.h.

Referenced by GetSecondaryTarget(), and SetSecondaryTarget().

float lar_content::TrackClusterCreationAlgorithm::HitAssociation::m_secondaryDistanceSquared
private

the secondary distance squared

Definition at line 84 of file TrackClusterCreationAlgorithm.h.

Referenced by GetSecondaryDistanceSquared(), and SetSecondaryTarget().


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