Public Member Functions | Public Attributes | List of all members
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.

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())
226  ? TPC_VIEW_U
227  : (elementA.GetClusterV() == elementB.GetClusterV())
228  ? TPC_VIEW_V
229  : (elementA.GetClusterW() == elementB.GetClusterW()) ? TPC_VIEW_W : HIT_CUSTOM);
230 
231  if (HIT_CUSTOM == commonView)
232  throw StatusCodeException(STATUS_CODE_FAILURE);
233 
235  (TPC_VIEW_U == commonView) ? elementA.GetClusterU() : (TPC_VIEW_V == commonView) ? elementA.GetClusterV() : elementA.GetClusterW();
236  m_pClusterA1 = (TPC_VIEW_U == commonView) ? elementA.GetClusterV() : elementA.GetClusterU();
237  m_pClusterA2 = (TPC_VIEW_U == commonView) ? elementA.GetClusterW() : (TPC_VIEW_V == commonView) ? elementA.GetClusterW() : elementA.GetClusterV();
238  m_pClusterB1 = (TPC_VIEW_U == commonView) ? elementB.GetClusterV() : elementB.GetClusterU();
239  m_pClusterB2 = (TPC_VIEW_U == commonView) ? elementB.GetClusterW() : (TPC_VIEW_V == commonView) ? elementB.GetClusterW() : elementB.GetClusterV();
240 
242  throw StatusCodeException(STATUS_CODE_FAILURE);
243 }
pandora::CartesianVector m_splitPosition2
The candidate split position in view 2.
enum cvn::HType HitType
const pandora::Cluster * m_pCommonCluster
Address of the common cluster.
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

Address of cluster in element A, view 1.

Definition at line 43 of file OvershootTracksTool.h.

const pandora::Cluster* lar_content::OvershootTracksTool::Particle::m_pClusterA2

Address of cluster in element A, view 2.

Definition at line 44 of file OvershootTracksTool.h.

const pandora::Cluster* lar_content::OvershootTracksTool::Particle::m_pClusterB1

Address of cluster in element B, view 1.

Definition at line 45 of file OvershootTracksTool.h.

const pandora::Cluster* lar_content::OvershootTracksTool::Particle::m_pClusterB2

Address of cluster in element B, view 2.

Definition at line 46 of file OvershootTracksTool.h.

const pandora::Cluster* lar_content::OvershootTracksTool::Particle::m_pCommonCluster

Address of the common cluster.

Definition at line 42 of file OvershootTracksTool.h.

pandora::CartesianVector lar_content::OvershootTracksTool::Particle::m_splitPosition

The candidate split position for the common cluster.

Definition at line 47 of file OvershootTracksTool.h.

pandora::CartesianVector lar_content::OvershootTracksTool::Particle::m_splitPosition1

The candidate split position in view 1.

Definition at line 48 of file OvershootTracksTool.h.

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

The candidate split position in view 2.

Definition at line 49 of file OvershootTracksTool.h.


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