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

231 {
232  const XOverlap &xOverlap(element.GetOverlapResult().GetXOverlap());
233 
234  const HitType longHitType =
235  ((xOverlap.GetXSpanU() > xOverlap.GetXSpanV()) && (xOverlap.GetXSpanU() > xOverlap.GetXSpanW()))
236  ? TPC_VIEW_U
237  : ((xOverlap.GetXSpanV() > xOverlap.GetXSpanU()) && (xOverlap.GetXSpanV() > xOverlap.GetXSpanW()))
238  ? TPC_VIEW_V
239  : ((xOverlap.GetXSpanW() > xOverlap.GetXSpanU()) && (xOverlap.GetXSpanW() > xOverlap.GetXSpanV())) ? TPC_VIEW_W : HIT_CUSTOM;
240 
241  if (HIT_CUSTOM == longHitType)
242  throw StatusCodeException(STATUS_CODE_FAILURE);
243 
245  (TPC_VIEW_U == longHitType) ? element.GetClusterU() : (TPC_VIEW_V == longHitType) ? element.GetClusterV() : element.GetClusterW();
246  m_pCluster1 = (TPC_VIEW_U == longHitType) ? element.GetClusterV() : element.GetClusterU();
247  m_pCluster2 = (TPC_VIEW_W == longHitType) ? element.GetClusterV() : element.GetClusterW();
248  m_longMinX = (TPC_VIEW_U == longHitType) ? xOverlap.GetUMinX() : (TPC_VIEW_V == longHitType) ? xOverlap.GetVMinX() : xOverlap.GetWMinX();
249  m_longMaxX = (TPC_VIEW_U == longHitType) ? xOverlap.GetUMaxX() : (TPC_VIEW_V == longHitType) ? xOverlap.GetVMaxX() : xOverlap.GetWMaxX();
250  m_short1MinX = (TPC_VIEW_U == longHitType) ? xOverlap.GetVMinX() : xOverlap.GetUMinX();
251  m_short1MaxX = (TPC_VIEW_U == longHitType) ? xOverlap.GetVMaxX() : xOverlap.GetUMaxX();
252  m_short2MinX = (TPC_VIEW_W == longHitType) ? xOverlap.GetVMinX() : xOverlap.GetWMinX();
253  m_short2MaxX = (TPC_VIEW_W == longHitType) ? xOverlap.GetVMaxX() : xOverlap.GetWMaxX();
254 }
enum cvn::HType HitType
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.

float lar_content::TrackSplittingTool::Particle::m_longMinX

The min x coordinate of the long cluster.

Definition at line 46 of file TrackSplittingTool.h.

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

Address of short cluster in view 1.

Definition at line 44 of file TrackSplittingTool.h.

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

Address of short cluster in view 2.

Definition at line 45 of file TrackSplittingTool.h.

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

Address of the long cluster.

Definition at line 43 of file TrackSplittingTool.h.

float lar_content::TrackSplittingTool::Particle::m_short1MaxX

The max x coordinate of short cluster 1.

Definition at line 49 of file TrackSplittingTool.h.

float lar_content::TrackSplittingTool::Particle::m_short1MinX

The min x coordinate of short cluster 1.

Definition at line 48 of file TrackSplittingTool.h.

float lar_content::TrackSplittingTool::Particle::m_short2MaxX

The max x coordinate of short cluster 2.

Definition at line 51 of file TrackSplittingTool.h.

float lar_content::TrackSplittingTool::Particle::m_short2MinX

The min x coordinate of short cluster 2.

Definition at line 50 of file TrackSplittingTool.h.


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