LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
lar_content::TrackSplittingTool::Particle Class Reference

Particle class. More...

Public Member Functions

 Particle (const TensorType::Element &element)
 Constructor. More...
 

Public Attributes

const pandora::Cluster * m_pLongCluster
 Address of the long cluster. More...
 
const pandora::Cluster * m_pCluster1
 Address of short cluster in view 1. More...
 
const pandora::Cluster * m_pCluster2
 Address of short cluster in view 2. More...
 
float m_longMinX
 The min x coordinate of the long cluster. More...
 
float m_longMaxX
 The max x coordinate of the long cluster. More...
 
float m_short1MinX
 The min x coordinate of short cluster 1. More...
 
float m_short1MaxX
 The max x coordinate of short cluster 1. More...
 
float m_short2MinX
 The min x coordinate of short cluster 2. More...
 
float m_short2MaxX
 The max x coordinate of short cluster 2. More...
 

Detailed Description

Particle class.

Definition at line 33 of file TrackSplittingTool.h.

Constructor & Destructor Documentation

lar_content::TrackSplittingTool::Particle::Particle ( const TensorType::Element &  element)

Constructor.

Parameters
elementthe tensor element

Definition at line 209 of file TrackSplittingTool.cc.

210 {
211  const XOverlap &xOverlap(element.GetOverlapResult().GetXOverlap());
212 
213  const HitType longHitType = ((xOverlap.GetXSpanU() > xOverlap.GetXSpanV()) && (xOverlap.GetXSpanU() > xOverlap.GetXSpanW())) ? TPC_VIEW_U :
214  ((xOverlap.GetXSpanV() > xOverlap.GetXSpanU()) && (xOverlap.GetXSpanV() > xOverlap.GetXSpanW())) ? TPC_VIEW_V :
215  ((xOverlap.GetXSpanW() > xOverlap.GetXSpanU()) && (xOverlap.GetXSpanW() > xOverlap.GetXSpanV())) ? TPC_VIEW_W : HIT_CUSTOM;
216 
217  if (HIT_CUSTOM == longHitType)
218  throw StatusCodeException(STATUS_CODE_FAILURE);
219 
220  m_pLongCluster = (TPC_VIEW_U == longHitType) ? element.GetClusterU() : (TPC_VIEW_V == longHitType) ? element.GetClusterV() : element.GetClusterW();
221  m_pCluster1 = (TPC_VIEW_U == longHitType) ? element.GetClusterV() : element.GetClusterU();
222  m_pCluster2 = (TPC_VIEW_W == longHitType) ? element.GetClusterV() : element.GetClusterW();
223  m_longMinX = (TPC_VIEW_U == longHitType) ? xOverlap.GetUMinX() : (TPC_VIEW_V == longHitType) ? xOverlap.GetVMinX() : xOverlap.GetWMinX();
224  m_longMaxX = (TPC_VIEW_U == longHitType) ? xOverlap.GetUMaxX() : (TPC_VIEW_V == longHitType) ? xOverlap.GetVMaxX() : xOverlap.GetWMaxX();
225  m_short1MinX = (TPC_VIEW_U == longHitType) ? xOverlap.GetVMinX() : xOverlap.GetUMinX();
226  m_short1MaxX = (TPC_VIEW_U == longHitType) ? xOverlap.GetVMaxX() : xOverlap.GetUMaxX();
227  m_short2MinX = (TPC_VIEW_W == longHitType) ? xOverlap.GetVMinX() : xOverlap.GetWMinX();
228  m_short2MaxX = (TPC_VIEW_W == longHitType) ? xOverlap.GetVMaxX() : xOverlap.GetWMaxX();
229 }
const pandora::Cluster * m_pCluster2
Address of short cluster in view 2.
float m_short2MinX
The min x coordinate of short cluster 2.
float m_longMinX
The min x coordinate of the long cluster.
float m_longMaxX
The max x coordinate of the long cluster.
float m_short2MaxX
The max x coordinate of short cluster 2.
const pandora::Cluster * m_pCluster1
Address of short cluster in view 1.
float m_short1MaxX
The max x coordinate of short cluster 1.
float m_short1MinX
The min x coordinate of short cluster 1.
const pandora::Cluster * m_pLongCluster
Address of the long cluster.

Member Data Documentation

float lar_content::TrackSplittingTool::Particle::m_longMaxX

The max x coordinate of the long cluster.

Definition at line 47 of file TrackSplittingTool.h.

Referenced by lar_content::TrackSplittingTool::PassesChecks().

float lar_content::TrackSplittingTool::Particle::m_longMinX

The min x coordinate of the long cluster.

Definition at line 46 of file TrackSplittingTool.h.

Referenced by lar_content::TrackSplittingTool::PassesChecks().

const pandora::Cluster* lar_content::TrackSplittingTool::Particle::m_pCluster1

Address of short cluster in view 1.

Definition at line 44 of file TrackSplittingTool.h.

Referenced by lar_content::TrackSplittingTool::PassesChecks().

const pandora::Cluster* lar_content::TrackSplittingTool::Particle::m_pCluster2

Address of short cluster in view 2.

Definition at line 45 of file TrackSplittingTool.h.

Referenced by lar_content::TrackSplittingTool::PassesChecks().

const pandora::Cluster* lar_content::TrackSplittingTool::Particle::m_pLongCluster

Address of the long cluster.

Definition at line 43 of file TrackSplittingTool.h.

Referenced by lar_content::TrackSplittingTool::PassesChecks().

float lar_content::TrackSplittingTool::Particle::m_short1MaxX

The max x coordinate of short cluster 1.

Definition at line 49 of file TrackSplittingTool.h.

Referenced by lar_content::TrackSplittingTool::PassesChecks().

float lar_content::TrackSplittingTool::Particle::m_short1MinX

The min x coordinate of short cluster 1.

Definition at line 48 of file TrackSplittingTool.h.

Referenced by lar_content::TrackSplittingTool::PassesChecks().

float lar_content::TrackSplittingTool::Particle::m_short2MaxX

The max x coordinate of short cluster 2.

Definition at line 51 of file TrackSplittingTool.h.

Referenced by lar_content::TrackSplittingTool::PassesChecks().

float lar_content::TrackSplittingTool::Particle::m_short2MinX

The min x coordinate of short cluster 2.

Definition at line 50 of file TrackSplittingTool.h.

Referenced by lar_content::TrackSplittingTool::PassesChecks().


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