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

LArTrackState class. More...

#include "LArPfoObjects.h"

Inheritance diagram for lar_content::LArTrackState:

Public Member Functions

 LArTrackState (const pandora::CartesianVector &position, const pandora::CartesianVector &direction, const pandora::CaloHit *const pCaloHit)
 Constructor. More...
 
 LArTrackState (const pandora::CartesianVector &position, const pandora::CartesianVector &direction)
 Constructor. More...
 
const pandora::CartesianVector & GetDirection () const
 Return direction at this trajectory point. More...
 
const pandora::CaloHit * GetCaloHit () const
 Return calo hit at this trajectory point. More...
 

Private Attributes

const pandora::CaloHit * m_pCaloHit
 

Detailed Description

LArTrackState class.

Definition at line 29 of file LArPfoObjects.h.

Constructor & Destructor Documentation

lar_content::LArTrackState::LArTrackState ( const pandora::CartesianVector &  position,
const pandora::CartesianVector &  direction,
const pandora::CaloHit *const  pCaloHit 
)

Constructor.

Parameters
positionthe position
directionthe direction
pCaloHitthe address of the associated calo hit
lar_content::LArTrackState::LArTrackState ( const pandora::CartesianVector &  position,
const pandora::CartesianVector &  direction 
)

Constructor.

Parameters
positionthe position
directionthe direction

Member Function Documentation

const CaloHit * lar_content::LArTrackState::GetCaloHit ( ) const

Return calo hit at this trajectory point.

Parameters
theaddress of the calo hit at this trajectory point

Definition at line 41 of file LArPfoObjects.cc.

42 {
43  if (m_pCaloHit)
44  return m_pCaloHit;
45 
46  throw StatusCodeException(STATUS_CODE_NOT_INITIALIZED);
47 }
const pandora::CaloHit * m_pCaloHit
Definition: LArPfoObjects.h:64
const CartesianVector & lar_content::LArTrackState::GetDirection ( ) const

Return direction at this trajectory point.

Returns
the direction at this trajectory point

Definition at line 34 of file LArPfoObjects.cc.

35 {
36  return this->GetMomentum();
37 }

Member Data Documentation

const pandora::CaloHit* lar_content::LArTrackState::m_pCaloHit
private

Definition at line 64 of file LArPfoObjects.h.


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