Public Member Functions | Private Attributes | List of all members
lar_content::DeltaRayMatchingAlgorithm::Particle Class Reference

Particle class. More...

Public Member Functions

 Particle (const pandora::Cluster *const pCluster1, const pandora::Cluster *const pCluster2, const pandora::Cluster *const pCluster3, const pandora::ParticleFlowObject *const pPfo)
 Constructor. More...
 
const pandora::Cluster * GetClusterU () const
 Get cluster in U view. More...
 
const pandora::Cluster * GetClusterV () const
 Get cluster in V view. More...
 
const pandora::Cluster * GetClusterW () const
 Get cluster in W view. More...
 
const pandora::ParticleFlowObject * GetParentPfo () const
 Get parent Pfo. More...
 
unsigned int GetNViews () const
 Get number of views. More...
 
unsigned int GetNCaloHits () const
 Get number of calo hits. More...
 

Private Attributes

const pandora::Cluster * m_pClusterU
 Address of cluster in U view. More...
 
const pandora::Cluster * m_pClusterV
 Address of cluster in V view. More...
 
const pandora::Cluster * m_pClusterW
 Address of cluster in W view. More...
 
const pandora::ParticleFlowObject * m_pParentPfo
 Address of parent Pfo. More...
 

Detailed Description

Particle class.

Definition at line 42 of file DeltaRayMatchingAlgorithm.h.

Constructor & Destructor Documentation

lar_content::DeltaRayMatchingAlgorithm::Particle::Particle ( const pandora::Cluster *const  pCluster1,
const pandora::Cluster *const  pCluster2,
const pandora::Cluster *const  pCluster3,
const pandora::ParticleFlowObject *const  pPfo 
)

Constructor.

Parameters
pCluster1the first cluster
pCluster2the second cluster
pCluster3the third cluster
pPfothe parent Pfo

Definition at line 720 of file DeltaRayMatchingAlgorithm.cc.

721  :
722  m_pClusterU(NULL),
723  m_pClusterV(NULL),
724  m_pClusterW(NULL),
725  m_pParentPfo(NULL)
726 {
727  const HitType hitType1(NULL != pCluster1 ? LArClusterHelper::GetClusterHitType(pCluster1) : HIT_CUSTOM);
728  const HitType hitType2(NULL != pCluster2 ? LArClusterHelper::GetClusterHitType(pCluster2) : HIT_CUSTOM);
729  const HitType hitType3(NULL != pCluster3 ? LArClusterHelper::GetClusterHitType(pCluster3) : HIT_CUSTOM);
730 
731  m_pClusterU = ((TPC_VIEW_U == hitType1) ? pCluster1 : (TPC_VIEW_U == hitType2) ? pCluster2 : (TPC_VIEW_U == hitType3) ? pCluster3 : NULL);
732  m_pClusterV = ((TPC_VIEW_V == hitType1) ? pCluster1 : (TPC_VIEW_V == hitType2) ? pCluster2 : (TPC_VIEW_V == hitType3) ? pCluster3 : NULL);
733  m_pClusterW = ((TPC_VIEW_W == hitType1) ? pCluster1 : (TPC_VIEW_W == hitType2) ? pCluster2 : (TPC_VIEW_W == hitType3) ? pCluster3 : NULL);
734  m_pParentPfo = pPfo;
735 
736  if (NULL == m_pClusterU && NULL == m_pClusterV && NULL == m_pClusterW)
737  throw StatusCodeException(STATUS_CODE_FAILURE);
738 }
enum cvn::HType HitType
static pandora::HitType GetClusterHitType(const pandora::Cluster *const pCluster)
Get the hit type associated with a two dimensional cluster.
const pandora::Cluster * m_pClusterU
Address of cluster in U view.
const pandora::ParticleFlowObject * m_pParentPfo
Address of parent Pfo.
const pandora::Cluster * m_pClusterV
Address of cluster in V view.
const pandora::Cluster * m_pClusterW
Address of cluster in W view.

Member Function Documentation

const pandora::Cluster * lar_content::DeltaRayMatchingAlgorithm::Particle::GetClusterU ( ) const
inline

Get cluster in U view.

Definition at line 320 of file DeltaRayMatchingAlgorithm.h.

321 {
322  return m_pClusterU;
323 }
const pandora::Cluster * m_pClusterU
Address of cluster in U view.
const pandora::Cluster * lar_content::DeltaRayMatchingAlgorithm::Particle::GetClusterV ( ) const
inline

Get cluster in V view.

Definition at line 326 of file DeltaRayMatchingAlgorithm.h.

327 {
328  return m_pClusterV;
329 }
const pandora::Cluster * m_pClusterV
Address of cluster in V view.
const pandora::Cluster * lar_content::DeltaRayMatchingAlgorithm::Particle::GetClusterW ( ) const
inline

Get cluster in W view.

Definition at line 332 of file DeltaRayMatchingAlgorithm.h.

333 {
334  return m_pClusterW;
335 }
const pandora::Cluster * m_pClusterW
Address of cluster in W view.
unsigned int lar_content::DeltaRayMatchingAlgorithm::Particle::GetNCaloHits ( ) const

Get number of calo hits.

Definition at line 760 of file DeltaRayMatchingAlgorithm.cc.

761 {
762  unsigned int numCaloHits(0);
763 
764  if (NULL != m_pClusterU)
765  numCaloHits += m_pClusterU->GetNCaloHits();
766 
767  if (NULL != m_pClusterV)
768  numCaloHits += m_pClusterV->GetNCaloHits();
769 
770  if (NULL != m_pClusterW)
771  numCaloHits += m_pClusterW->GetNCaloHits();
772 
773  return numCaloHits;
774 }
const pandora::Cluster * m_pClusterU
Address of cluster in U view.
const pandora::Cluster * m_pClusterV
Address of cluster in V view.
const pandora::Cluster * m_pClusterW
Address of cluster in W view.
unsigned int lar_content::DeltaRayMatchingAlgorithm::Particle::GetNViews ( ) const

Get number of views.

Definition at line 742 of file DeltaRayMatchingAlgorithm.cc.

743 {
744  unsigned int numViews(0);
745 
746  if (NULL != m_pClusterU)
747  numViews += 1;
748 
749  if (NULL != m_pClusterV)
750  numViews += 1;
751 
752  if (NULL != m_pClusterW)
753  numViews += 1;
754 
755  return numViews;
756 }
const pandora::Cluster * m_pClusterU
Address of cluster in U view.
const pandora::Cluster * m_pClusterV
Address of cluster in V view.
const pandora::Cluster * m_pClusterW
Address of cluster in W view.
const pandora::ParticleFlowObject * lar_content::DeltaRayMatchingAlgorithm::Particle::GetParentPfo ( ) const
inline

Get parent Pfo.

Definition at line 338 of file DeltaRayMatchingAlgorithm.h.

339 {
340  return m_pParentPfo;
341 }
const pandora::ParticleFlowObject * m_pParentPfo
Address of parent Pfo.

Member Data Documentation

const pandora::Cluster* lar_content::DeltaRayMatchingAlgorithm::Particle::m_pClusterU
private

Address of cluster in U view.

Definition at line 87 of file DeltaRayMatchingAlgorithm.h.

const pandora::Cluster* lar_content::DeltaRayMatchingAlgorithm::Particle::m_pClusterV
private

Address of cluster in V view.

Definition at line 88 of file DeltaRayMatchingAlgorithm.h.

const pandora::Cluster* lar_content::DeltaRayMatchingAlgorithm::Particle::m_pClusterW
private

Address of cluster in W view.

Definition at line 89 of file DeltaRayMatchingAlgorithm.h.

const pandora::ParticleFlowObject* lar_content::DeltaRayMatchingAlgorithm::Particle::m_pParentPfo
private

Address of parent Pfo.

Definition at line 90 of file DeltaRayMatchingAlgorithm.h.


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