LArSoft  v06_85_00
Liquid Argon Software toolkit - http://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 207 of file TrackClusterCreationAlgorithm.h.

207  :
208  m_pPrimaryTarget(pPrimaryTarget),
209  m_pSecondaryTarget(NULL),
210  m_primaryDistanceSquared(primaryDistanceSquared),
212 {
213 }
const pandora::CaloHit * m_pSecondaryTarget
the secondary target
Int_t max
Definition: plot.C:27

Member Function Documentation

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

Get the primary distance squared.

Returns
the primary distance squared

Definition at line 239 of file TrackClusterCreationAlgorithm.h.

References m_primaryDistanceSquared.

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

240 {
242 }
const pandora::CaloHit * lar_content::TrackClusterCreationAlgorithm::HitAssociation::GetPrimaryTarget ( ) const
inline

Get the primary target.

Returns
the target distance

Definition at line 225 of file TrackClusterCreationAlgorithm.h.

References m_pPrimaryTarget.

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

226 {
227  return m_pPrimaryTarget;
228 }
float lar_content::TrackClusterCreationAlgorithm::HitAssociation::GetSecondaryDistanceSquared ( ) const
inline

Get the secondary distance squared.

Returns
the secondary distance squared

Definition at line 246 of file TrackClusterCreationAlgorithm.h.

References m_secondaryDistanceSquared.

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

247 {
249 }
const pandora::CaloHit * lar_content::TrackClusterCreationAlgorithm::HitAssociation::GetSecondaryTarget ( ) const
inline

Get the secondary target.

Returns
the secondary target

Definition at line 232 of file TrackClusterCreationAlgorithm.h.

References m_pSecondaryTarget.

233 {
234  return m_pSecondaryTarget;
235 }
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 217 of file TrackClusterCreationAlgorithm.h.

References m_pSecondaryTarget, and m_secondaryDistanceSquared.

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

218 {
219  m_pSecondaryTarget = pSecondaryTarget;
220  m_secondaryDistanceSquared = secondaryDistanceSquared;
221 }
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: