Public Member Functions | Public Attributes | List of all members
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())
194  ? elementA.GetClusterU()
195  : (elementA.GetClusterV() != elementB.GetClusterV()) ? elementA.GetClusterV() : elementA.GetClusterW();
196  m_pClusterB = (elementA.GetClusterU() != elementB.GetClusterU())
197  ? elementB.GetClusterU()
198  : (elementA.GetClusterV() != elementB.GetClusterV()) ? elementB.GetClusterV() : elementB.GetClusterW();
199  m_pCommonCluster1 = (elementA.GetClusterU() == elementB.GetClusterU())
200  ? elementA.GetClusterU()
201  : (elementA.GetClusterV() == elementB.GetClusterV()) ? elementA.GetClusterV() : elementA.GetClusterW();
202  m_pCommonCluster2 = ((m_pClusterA != elementA.GetClusterU()) && (m_pCommonCluster1 != elementA.GetClusterU()))
203  ? elementA.GetClusterU()
204  : ((m_pClusterA != elementA.GetClusterV()) && (m_pCommonCluster1 != elementA.GetClusterV()))
205  ? elementA.GetClusterV()
206  : elementA.GetClusterW();
207 
209  throw StatusCodeException(STATUS_CODE_FAILURE);
210 }
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.

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.

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.

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.


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