LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 229 of file TrackSplittingTool.cc.

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