LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
lar_content::UndershootTracksTool::Particle Class Reference

Particle class. More...

Public Member Functions

 Particle (const TensorType::Element &elementA, const TensorType::Element &elementB)
 Constructor. More...
 

Public Attributes

const pandora::Cluster * m_pClusterA
 Address of non-shared cluster in element A. More...
 
const pandora::Cluster * m_pClusterB
 Address of non-shared cluster in element B. More...
 
const pandora::Cluster * m_pCommonCluster1
 Address of the common cluster in view 1. More...
 
const pandora::Cluster * m_pCommonCluster2
 Address of the common cluster in view 2. More...
 

Detailed Description

Particle class.

Definition at line 31 of file UndershootTracksTool.h.

Constructor & Destructor Documentation

lar_content::UndershootTracksTool::Particle::Particle ( const TensorType::Element &  elementA,
const TensorType::Element &  elementB 
)

Constructor.

Parameters
elementAthe tensor element A
elementBthe tensor element B

Definition at line 188 of file UndershootTracksTool.cc.

189 {
190  m_pClusterA = (elementA.GetClusterU() != elementB.GetClusterU()) ? elementA.GetClusterU() :
191  (elementA.GetClusterV() != elementB.GetClusterV()) ? elementA.GetClusterV() : elementA.GetClusterW();
192  m_pClusterB = (elementA.GetClusterU() != elementB.GetClusterU()) ? elementB.GetClusterU() :
193  (elementA.GetClusterV() != elementB.GetClusterV()) ? elementB.GetClusterV() : elementB.GetClusterW();
194  m_pCommonCluster1 = (elementA.GetClusterU() == elementB.GetClusterU()) ? elementA.GetClusterU() :
195  (elementA.GetClusterV() == elementB.GetClusterV()) ? elementA.GetClusterV() : elementA.GetClusterW();
196  m_pCommonCluster2 = ((m_pClusterA != elementA.GetClusterU()) && (m_pCommonCluster1 != elementA.GetClusterU())) ? elementA.GetClusterU() :
197  ((m_pClusterA != elementA.GetClusterV()) && (m_pCommonCluster1 != elementA.GetClusterV())) ? elementA.GetClusterV() : elementA.GetClusterW();
198 
200  throw StatusCodeException(STATUS_CODE_FAILURE);
201 }
const pandora::Cluster * m_pClusterA
Address of non-shared cluster in element A.
const pandora::Cluster * m_pCommonCluster1
Address of the common cluster in view 1.
const pandora::Cluster * m_pClusterB
Address of non-shared cluster in element B.
const pandora::Cluster * m_pCommonCluster2
Address of the common cluster in view 2.

Member Data Documentation

const pandora::Cluster* lar_content::UndershootTracksTool::Particle::m_pClusterA

Address of non-shared cluster in element A.

Definition at line 42 of file UndershootTracksTool.h.

Referenced by lar_content::UndershootTracksTool::GetIteratorListModifications(), and lar_content::UndershootTracksTool::IsThreeDKink().

const pandora::Cluster* lar_content::UndershootTracksTool::Particle::m_pClusterB

Address of non-shared cluster in element B.

Definition at line 43 of file UndershootTracksTool.h.

Referenced by lar_content::UndershootTracksTool::GetIteratorListModifications(), and lar_content::UndershootTracksTool::IsThreeDKink().

const pandora::Cluster* lar_content::UndershootTracksTool::Particle::m_pCommonCluster1

Address of the common cluster in view 1.

Definition at line 44 of file UndershootTracksTool.h.

Referenced by lar_content::UndershootTracksTool::GetIteratorListModifications(), and lar_content::UndershootTracksTool::IsThreeDKink().

const pandora::Cluster* lar_content::UndershootTracksTool::Particle::m_pCommonCluster2

Address of the common cluster in view 2.

Definition at line 45 of file UndershootTracksTool.h.

Referenced by lar_content::UndershootTracksTool::GetIteratorListModifications(), and lar_content::UndershootTracksTool::IsThreeDKink().


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