LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
lar_content::MissingTrackSegmentTool::Particle Class Reference

Particle class. More...

Public Member Functions

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

Public Attributes

const pandora::Cluster * m_pShortCluster
 Address of the short cluster. More...
 
const pandora::Cluster * m_pCluster1
 Address of long cluster in view 1. More...
 
const pandora::Cluster * m_pCluster2
 Address of long cluster in view 2. More...
 
pandora::HitType m_shortHitType
 The hit type of the short cluster. More...
 
pandora::HitType m_hitType1
 The hit type of the long cluster in view 1. More...
 
pandora::HitType m_hitType2
 The hit type of the long cluster in view 2. More...
 
float m_shortMinX
 The min x coordinate of the short cluster. More...
 
float m_shortMaxX
 The max x coordinate of the short cluster. More...
 
float m_longMinX
 The min x coordinate of the long clusters. More...
 
float m_longMaxX
 The max x coordinate of the long clusters. More...
 

Detailed Description

Particle class.

Definition at line 35 of file MissingTrackSegmentTool.h.

Constructor & Destructor Documentation

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

Constructor.

Parameters
elementthe tensor element

Definition at line 384 of file MissingTrackSegmentTool.cc.

References lar_content::LArClusterHelper::GetClusterHitType().

385 {
386  const XOverlap &xOverlap(element.GetOverlapResult().GetXOverlap());
387 
388  m_shortHitType = ((xOverlap.GetXSpanU() < xOverlap.GetXSpanV()) && (xOverlap.GetXSpanU() < xOverlap.GetXSpanW())) ? TPC_VIEW_U
389  : ((xOverlap.GetXSpanV() < xOverlap.GetXSpanU()) && (xOverlap.GetXSpanV() < xOverlap.GetXSpanW())) ? TPC_VIEW_V
390  : ((xOverlap.GetXSpanW() < xOverlap.GetXSpanU()) && (xOverlap.GetXSpanW() < xOverlap.GetXSpanV())) ? TPC_VIEW_W
391  : HIT_CUSTOM;
392 
393  if (HIT_CUSTOM == m_shortHitType)
394  throw StatusCodeException(STATUS_CODE_FAILURE);
395 
396  m_pShortCluster = (TPC_VIEW_U == m_shortHitType) ? element.GetClusterU()
397  : (TPC_VIEW_V == m_shortHitType) ? element.GetClusterV()
398  : element.GetClusterW();
399  m_pCluster1 = (TPC_VIEW_U == m_shortHitType) ? element.GetClusterV() : element.GetClusterU();
400  m_pCluster2 = (TPC_VIEW_W == m_shortHitType) ? element.GetClusterV() : element.GetClusterW();
401  m_shortMinX = (TPC_VIEW_U == m_shortHitType) ? xOverlap.GetUMinX()
402  : (TPC_VIEW_V == m_shortHitType) ? xOverlap.GetVMinX()
403  : xOverlap.GetWMinX();
404  m_shortMaxX = (TPC_VIEW_U == m_shortHitType) ? xOverlap.GetUMaxX()
405  : (TPC_VIEW_V == m_shortHitType) ? xOverlap.GetVMaxX()
406  : xOverlap.GetWMaxX();
407  m_longMinX = (TPC_VIEW_U == m_shortHitType) ? std::min(xOverlap.GetVMinX(), xOverlap.GetWMinX())
408  : (TPC_VIEW_V == m_shortHitType) ? std::min(xOverlap.GetUMinX(), xOverlap.GetWMinX())
409  : std::min(xOverlap.GetUMinX(), xOverlap.GetVMinX());
410  m_longMaxX = (TPC_VIEW_U == m_shortHitType) ? std::max(xOverlap.GetVMaxX(), xOverlap.GetWMaxX())
411  : (TPC_VIEW_V == m_shortHitType) ? std::max(xOverlap.GetUMaxX(), xOverlap.GetWMaxX())
412  : std::max(xOverlap.GetUMaxX(), xOverlap.GetVMaxX());
413 
416 }
float m_longMaxX
The max x coordinate of the long clusters.
const pandora::Cluster * m_pShortCluster
Address of the short cluster.
static pandora::HitType GetClusterHitType(const pandora::Cluster *const pCluster)
Get the hit type associated with a two dimensional cluster.
const pandora::Cluster * m_pCluster1
Address of long cluster in view 1.
const pandora::Cluster * m_pCluster2
Address of long cluster in view 2.
pandora::HitType m_hitType1
The hit type of the long cluster in view 1.
float m_longMinX
The min x coordinate of the long clusters.
pandora::HitType m_shortHitType
The hit type of the short cluster.
float m_shortMaxX
The max x coordinate of the short cluster.
float m_shortMinX
The min x coordinate of the short cluster.
pandora::HitType m_hitType2
The hit type of the long cluster in view 2.

Member Data Documentation

pandora::HitType lar_content::MissingTrackSegmentTool::Particle::m_hitType1

The hit type of the long cluster in view 1.

Definition at line 49 of file MissingTrackSegmentTool.h.

Referenced by lar_content::MissingTrackSegmentTool::GetSegmentOverlapMap().

pandora::HitType lar_content::MissingTrackSegmentTool::Particle::m_hitType2

The hit type of the long cluster in view 2.

Definition at line 50 of file MissingTrackSegmentTool.h.

Referenced by lar_content::MissingTrackSegmentTool::GetSegmentOverlapMap().

float lar_content::MissingTrackSegmentTool::Particle::m_longMaxX
float lar_content::MissingTrackSegmentTool::Particle::m_longMinX
const pandora::Cluster* lar_content::MissingTrackSegmentTool::Particle::m_pCluster1

Address of long cluster in view 1.

Definition at line 46 of file MissingTrackSegmentTool.h.

Referenced by lar_content::MissingTrackSegmentTool::GetSegmentOverlapMap().

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

Address of long cluster in view 2.

Definition at line 47 of file MissingTrackSegmentTool.h.

Referenced by lar_content::MissingTrackSegmentTool::GetSegmentOverlapMap().

const pandora::Cluster* lar_content::MissingTrackSegmentTool::Particle::m_pShortCluster
pandora::HitType lar_content::MissingTrackSegmentTool::Particle::m_shortHitType

The hit type of the short cluster.

Definition at line 48 of file MissingTrackSegmentTool.h.

Referenced by lar_content::MissingTrackSegmentTool::GetCandidateClusters().

float lar_content::MissingTrackSegmentTool::Particle::m_shortMaxX
float lar_content::MissingTrackSegmentTool::Particle::m_shortMinX

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