LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
lar_content::OvershootTracksTool::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_pCommonCluster
 Address of the common cluster. More...
 
const pandora::Cluster * m_pClusterA1
 Address of cluster in element A, view 1. More...
 
const pandora::Cluster * m_pClusterA2
 Address of cluster in element A, view 2. More...
 
const pandora::Cluster * m_pClusterB1
 Address of cluster in element B, view 1. More...
 
const pandora::Cluster * m_pClusterB2
 Address of cluster in element B, view 2. More...
 
pandora::CartesianVector m_splitPosition
 The candidate split position for the common cluster. More...
 
pandora::CartesianVector m_splitPosition1
 The candidate split position in view 1. More...
 
pandora::CartesianVector m_splitPosition2
 The candidate split position in view 2. More...
 

Detailed Description

Particle class.

Definition at line 31 of file OvershootTracksTool.h.

Constructor & Destructor Documentation

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

Constructor.

Parameters
elementAthe tensor element A
elementBthe tensor element B

Definition at line 220 of file OvershootTracksTool.cc.

References m_pClusterA1, m_pClusterA2, m_pClusterB1, m_pClusterB2, and m_pCommonCluster.

220  :
221  m_splitPosition(0.f, 0.f, 0.f),
222  m_splitPosition1(0.f, 0.f, 0.f),
223  m_splitPosition2(0.f, 0.f, 0.f)
224 {
225  const HitType commonView((elementA.GetClusterU() == elementB.GetClusterU()) ? TPC_VIEW_U
226  : (elementA.GetClusterV() == elementB.GetClusterV()) ? TPC_VIEW_V
227  : (elementA.GetClusterW() == elementB.GetClusterW()) ? TPC_VIEW_W
228  : HIT_CUSTOM);
229 
230  if (HIT_CUSTOM == commonView)
231  throw StatusCodeException(STATUS_CODE_FAILURE);
232 
233  m_pCommonCluster = (TPC_VIEW_U == commonView) ? elementA.GetClusterU()
234  : (TPC_VIEW_V == commonView) ? elementA.GetClusterV()
235  : elementA.GetClusterW();
236  m_pClusterA1 = (TPC_VIEW_U == commonView) ? elementA.GetClusterV() : elementA.GetClusterU();
237  m_pClusterA2 = (TPC_VIEW_U == commonView) ? elementA.GetClusterW()
238  : (TPC_VIEW_V == commonView) ? elementA.GetClusterW()
239  : elementA.GetClusterV();
240  m_pClusterB1 = (TPC_VIEW_U == commonView) ? elementB.GetClusterV() : elementB.GetClusterU();
241  m_pClusterB2 = (TPC_VIEW_U == commonView) ? elementB.GetClusterW()
242  : (TPC_VIEW_V == commonView) ? elementB.GetClusterW()
243  : elementB.GetClusterV();
244 
246  throw StatusCodeException(STATUS_CODE_FAILURE);
247 }
pandora::CartesianVector m_splitPosition2
The candidate split position in view 2.
const pandora::Cluster * m_pCommonCluster
Address of the common cluster.
TFile f
Definition: plotHisto.C:6
const pandora::Cluster * m_pClusterA1
Address of cluster in element A, view 1.
const pandora::Cluster * m_pClusterB2
Address of cluster in element B, view 2.
pandora::CartesianVector m_splitPosition
The candidate split position for the common cluster.
HitType
Definition: HitType.h:12
pandora::CartesianVector m_splitPosition1
The candidate split position in view 1.
const pandora::Cluster * m_pClusterA2
Address of cluster in element A, view 2.
const pandora::Cluster * m_pClusterB1
Address of cluster in element B, view 1.

Member Data Documentation

const pandora::Cluster* lar_content::OvershootTracksTool::Particle::m_pClusterA1
const pandora::Cluster* lar_content::OvershootTracksTool::Particle::m_pClusterA2
const pandora::Cluster* lar_content::OvershootTracksTool::Particle::m_pClusterB1
const pandora::Cluster* lar_content::OvershootTracksTool::Particle::m_pClusterB2
const pandora::Cluster* lar_content::OvershootTracksTool::Particle::m_pCommonCluster
pandora::CartesianVector lar_content::OvershootTracksTool::Particle::m_splitPosition
pandora::CartesianVector lar_content::OvershootTracksTool::Particle::m_splitPosition1

The candidate split position in view 1.

Definition at line 48 of file OvershootTracksTool.h.

Referenced by lar_content::OvershootTracksTool::IsThreeDKink(), and lar_content::OvershootTracksTool::SetSplitPosition().

pandora::CartesianVector lar_content::OvershootTracksTool::Particle::m_splitPosition2

The candidate split position in view 2.

Definition at line 49 of file OvershootTracksTool.h.

Referenced by lar_content::OvershootTracksTool::IsThreeDKink(), and lar_content::OvershootTracksTool::SetSplitPosition().


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