LArSoft  v07_13_02
Liquid Argon Software toolkit - http://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 215 of file OvershootTracksTool.cc.

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

215  :
216  m_splitPosition(0.f, 0.f, 0.f),
217  m_splitPosition1(0.f, 0.f, 0.f),
218  m_splitPosition2(0.f, 0.f, 0.f)
219 {
220  const HitType commonView((elementA.GetClusterU() == elementB.GetClusterU()) ? TPC_VIEW_U :
221  (elementA.GetClusterV() == elementB.GetClusterV()) ? TPC_VIEW_V :
222  (elementA.GetClusterW() == elementB.GetClusterW()) ? TPC_VIEW_W : HIT_CUSTOM);
223 
224  if (HIT_CUSTOM == commonView)
225  throw StatusCodeException(STATUS_CODE_FAILURE);
226 
227  m_pCommonCluster = (TPC_VIEW_U == commonView) ? elementA.GetClusterU() : (TPC_VIEW_V == commonView) ? elementA.GetClusterV() : elementA.GetClusterW();
228  m_pClusterA1 = (TPC_VIEW_U == commonView) ? elementA.GetClusterV() : elementA.GetClusterU();
229  m_pClusterA2 = (TPC_VIEW_U == commonView) ? elementA.GetClusterW() : (TPC_VIEW_V == commonView) ? elementA.GetClusterW() : elementA.GetClusterV();
230  m_pClusterB1 = (TPC_VIEW_U == commonView) ? elementB.GetClusterV() : elementB.GetClusterU();
231  m_pClusterB2 = (TPC_VIEW_U == commonView) ? elementB.GetClusterW() : (TPC_VIEW_V == commonView) ? elementB.GetClusterW() : elementB.GetClusterV();
232 
234  throw StatusCodeException(STATUS_CODE_FAILURE);
235 }
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.
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: