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

210  :
211  m_pPrimaryTarget(pPrimaryTarget),
212  m_pSecondaryTarget(NULL),
213  m_primaryDistanceSquared(primaryDistanceSquared),
214  m_secondaryDistanceSquared(std::numeric_limits<float>::max())
215 {
216 }
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 242 of file TrackClusterCreationAlgorithm.h.

243 {
245 }
const pandora::CaloHit * lar_content::TrackClusterCreationAlgorithm::HitAssociation::GetPrimaryTarget ( ) const
inline

Get the primary target.

Returns
the target distance

Definition at line 228 of file TrackClusterCreationAlgorithm.h.

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

Get the secondary distance squared.

Returns
the secondary distance squared

Definition at line 249 of file TrackClusterCreationAlgorithm.h.

250 {
252 }
const pandora::CaloHit * lar_content::TrackClusterCreationAlgorithm::HitAssociation::GetSecondaryTarget ( ) const
inline

Get the secondary target.

Returns
the secondary target

Definition at line 235 of file TrackClusterCreationAlgorithm.h.

236 {
237  return m_pSecondaryTarget;
238 }
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 220 of file TrackClusterCreationAlgorithm.h.

221 {
222  m_pSecondaryTarget = pSecondaryTarget;
223  m_secondaryDistanceSquared = secondaryDistanceSquared;
224 }
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.

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

the primary distance squared

Definition at line 83 of file TrackClusterCreationAlgorithm.h.

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

the secondary target

Definition at line 82 of file TrackClusterCreationAlgorithm.h.

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

the secondary distance squared

Definition at line 84 of file TrackClusterCreationAlgorithm.h.


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