LArSoft  v06_85_00
Liquid Argon Software toolkit - http://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 380 of file MissingTrackSegmentTool.cc.

References lar_content::LArClusterHelper::GetClusterHitType(), max, and min.

381 {
382  const XOverlap &xOverlap(element.GetOverlapResult().GetXOverlap());
383 
384  m_shortHitType = ((xOverlap.GetXSpanU() < xOverlap.GetXSpanV()) && (xOverlap.GetXSpanU() < xOverlap.GetXSpanW())) ? TPC_VIEW_U :
385  ((xOverlap.GetXSpanV() < xOverlap.GetXSpanU()) && (xOverlap.GetXSpanV() < xOverlap.GetXSpanW())) ? TPC_VIEW_V :
386  ((xOverlap.GetXSpanW() < xOverlap.GetXSpanU()) && (xOverlap.GetXSpanW() < xOverlap.GetXSpanV())) ? TPC_VIEW_W : HIT_CUSTOM;
387 
388  if (HIT_CUSTOM == m_shortHitType)
389  throw StatusCodeException(STATUS_CODE_FAILURE);
390 
391  m_pShortCluster = (TPC_VIEW_U == m_shortHitType) ? element.GetClusterU() : (TPC_VIEW_V == m_shortHitType) ? element.GetClusterV() : element.GetClusterW();
392  m_pCluster1 = (TPC_VIEW_U == m_shortHitType) ? element.GetClusterV() : element.GetClusterU();
393  m_pCluster2 = (TPC_VIEW_W == m_shortHitType) ? element.GetClusterV() : element.GetClusterW();
394  m_shortMinX = (TPC_VIEW_U == m_shortHitType) ? xOverlap.GetUMinX() : (TPC_VIEW_V == m_shortHitType) ? xOverlap.GetVMinX() : xOverlap.GetWMinX();
395  m_shortMaxX = (TPC_VIEW_U == m_shortHitType) ? xOverlap.GetUMaxX() : (TPC_VIEW_V == m_shortHitType) ? xOverlap.GetVMaxX() : xOverlap.GetWMaxX();
396  m_longMinX = (TPC_VIEW_U == m_shortHitType) ? std::min(xOverlap.GetVMinX(), xOverlap.GetWMinX()) : (TPC_VIEW_V == m_shortHitType) ? std::min(xOverlap.GetUMinX(), xOverlap.GetWMinX()) : std::min(xOverlap.GetUMinX(), xOverlap.GetVMinX());
397  m_longMaxX = (TPC_VIEW_U == m_shortHitType) ? std::max(xOverlap.GetVMaxX(), xOverlap.GetWMaxX()) : (TPC_VIEW_V == m_shortHitType) ? std::max(xOverlap.GetUMaxX(), xOverlap.GetWMaxX()) : std::max(xOverlap.GetUMaxX(), xOverlap.GetVMaxX());
398 
401 }
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.
Int_t max
Definition: plot.C:27
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.
Int_t min
Definition: plot.C:26
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: