LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 191 of file UndershootTracksTool.cc.

192 {
193  m_pClusterA = (elementA.GetClusterU() != elementB.GetClusterU()) ? elementA.GetClusterU()
194  : (elementA.GetClusterV() != elementB.GetClusterV()) ? elementA.GetClusterV()
195  : elementA.GetClusterW();
196  m_pClusterB = (elementA.GetClusterU() != elementB.GetClusterU()) ? elementB.GetClusterU()
197  : (elementA.GetClusterV() != elementB.GetClusterV()) ? elementB.GetClusterV()
198  : elementB.GetClusterW();
199  m_pCommonCluster1 = (elementA.GetClusterU() == elementB.GetClusterU()) ? elementA.GetClusterU()
200  : (elementA.GetClusterV() == elementB.GetClusterV()) ? elementA.GetClusterV()
201  : elementA.GetClusterW();
202  m_pCommonCluster2 = ((m_pClusterA != elementA.GetClusterU()) && (m_pCommonCluster1 != elementA.GetClusterU())) ? elementA.GetClusterU()
203  : ((m_pClusterA != elementA.GetClusterV()) && (m_pCommonCluster1 != elementA.GetClusterV())) ? elementA.GetClusterV()
204  : elementA.GetClusterW();
205 
207  throw StatusCodeException(STATUS_CODE_FAILURE);
208 }
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: