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

XOverlap class. More...

#include "LArXOverlap.h"

Public Member Functions

 XOverlap (const float uMinX, const float uMaxX, const float vMinX, const float vMaxX, const float wMinX, const float wMaxX, const float xOverlapSpan)
 Constructor. More...
 
float GetUMinX () const
 Get the min x value in the u view. More...
 
float GetUMaxX () const
 Get the max x value in the u view. More...
 
float GetVMinX () const
 Get the min x value in the v view. More...
 
float GetVMaxX () const
 Get the max x value in the v view. More...
 
float GetWMinX () const
 Get the min x value in the w view. More...
 
float GetWMaxX () const
 Get the max x value in the w view. More...
 
float GetXSpanU () const
 Get the x span in the u view. More...
 
float GetXSpanV () const
 Get the x span in the v view. More...
 
float GetXSpanW () const
 Get the x span in the w view. More...
 
float GetXOverlapSpan () const
 Get the x overlap span. More...
 

Private Attributes

float m_uMinX
 The min x value in the u view. More...
 
float m_uMaxX
 The max x value in the u view. More...
 
float m_vMinX
 The min x value in the v view. More...
 
float m_vMaxX
 The max x value in the v view. More...
 
float m_wMinX
 The min x value in the w view. More...
 
float m_wMaxX
 The max x value in the w view. More...
 
float m_xOverlapSpan
 The x overlap span. More...
 

Detailed Description

XOverlap class.

Definition at line 17 of file LArXOverlap.h.

Constructor & Destructor Documentation

lar_content::XOverlap::XOverlap ( const float  uMinX,
const float  uMaxX,
const float  vMinX,
const float  vMaxX,
const float  wMinX,
const float  wMaxX,
const float  xOverlapSpan 
)
inline

Constructor.

Parameters
uMinXmin x value in the u view
uMaxXmax x value in the u view
vMinXmin x value in the v view
vMaxXmax x value in the v view
wMinXmin x value in the w view
wMaxXmax x value in the w view
xOverlapSpanthe x overlap span

Definition at line 123 of file LArXOverlap.h.

Referenced by lar_content::operator+().

124  :
125  m_uMinX(uMinX),
126  m_uMaxX(uMaxX),
127  m_vMinX(vMinX),
128  m_vMaxX(vMaxX),
129  m_wMinX(wMinX),
130  m_wMaxX(wMaxX),
131  m_xOverlapSpan(xOverlapSpan)
132 {
133 }
float m_wMinX
The min x value in the w view.
Definition: LArXOverlap.h:108
float m_vMinX
The min x value in the v view.
Definition: LArXOverlap.h:106
float m_xOverlapSpan
The x overlap span.
Definition: LArXOverlap.h:110
float m_vMaxX
The max x value in the v view.
Definition: LArXOverlap.h:107
float m_wMaxX
The max x value in the w view.
Definition: LArXOverlap.h:109
float m_uMinX
The min x value in the u view.
Definition: LArXOverlap.h:104
float m_uMaxX
The max x value in the u view.
Definition: LArXOverlap.h:105

Member Function Documentation

float lar_content::XOverlap::GetUMaxX ( ) const
inline

Get the max x value in the u view.

Returns
the max x value in the u view

Definition at line 144 of file LArXOverlap.h.

References m_uMaxX.

Referenced by lar_content::operator+().

145 {
146  return m_uMaxX;
147 }
float m_uMaxX
The max x value in the u view.
Definition: LArXOverlap.h:105
float lar_content::XOverlap::GetUMinX ( ) const
inline

Get the min x value in the u view.

Returns
the min x value in the u view

Definition at line 137 of file LArXOverlap.h.

References m_uMinX.

Referenced by lar_content::operator+().

138 {
139  return m_uMinX;
140 }
float m_uMinX
The min x value in the u view.
Definition: LArXOverlap.h:104
float lar_content::XOverlap::GetVMaxX ( ) const
inline

Get the max x value in the v view.

Returns
the max x value in the v view

Definition at line 158 of file LArXOverlap.h.

References m_vMaxX.

Referenced by lar_content::operator+().

159 {
160  return m_vMaxX;
161 }
float m_vMaxX
The max x value in the v view.
Definition: LArXOverlap.h:107
float lar_content::XOverlap::GetVMinX ( ) const
inline

Get the min x value in the v view.

Returns
the min x value in the v view

Definition at line 151 of file LArXOverlap.h.

References m_vMinX.

Referenced by lar_content::operator+().

152 {
153  return m_vMinX;
154 }
float m_vMinX
The min x value in the v view.
Definition: LArXOverlap.h:106
float lar_content::XOverlap::GetWMaxX ( ) const
inline

Get the max x value in the w view.

Returns
the max x value in the w view

Definition at line 172 of file LArXOverlap.h.

References m_wMaxX.

Referenced by lar_content::operator+().

173 {
174  return m_wMaxX;
175 }
float m_wMaxX
The max x value in the w view.
Definition: LArXOverlap.h:109
float lar_content::XOverlap::GetWMinX ( ) const
inline

Get the min x value in the w view.

Returns
the min x value in the w view

Definition at line 165 of file LArXOverlap.h.

References m_wMinX.

Referenced by lar_content::operator+().

166 {
167  return m_wMinX;
168 }
float m_wMinX
The min x value in the w view.
Definition: LArXOverlap.h:108
float lar_content::XOverlap::GetXOverlapSpan ( ) const
inline

Get the x overlap span.

Returns
the x overlap span

Definition at line 200 of file LArXOverlap.h.

References m_xOverlapSpan.

Referenced by lar_content::ShowerOverlapResult::operator<().

201 {
202  return m_xOverlapSpan;
203 }
float m_xOverlapSpan
The x overlap span.
Definition: LArXOverlap.h:110
float lar_content::XOverlap::GetXSpanU ( ) const
inline

Get the x span in the u view.

Returns
the x span in the u view

Definition at line 179 of file LArXOverlap.h.

References m_uMaxX, and m_uMinX.

Referenced by lar_content::ShowerOverlapResult::operator<().

180 {
181  return std::fabs(m_uMaxX - m_uMinX);
182 }
float m_uMinX
The min x value in the u view.
Definition: LArXOverlap.h:104
float m_uMaxX
The max x value in the u view.
Definition: LArXOverlap.h:105
float lar_content::XOverlap::GetXSpanV ( ) const
inline

Get the x span in the v view.

Returns
the x span in the v view

Definition at line 186 of file LArXOverlap.h.

References m_vMaxX, and m_vMinX.

Referenced by lar_content::ShowerOverlapResult::operator<().

187 {
188  return std::fabs(m_vMaxX - m_vMinX);
189 }
float m_vMinX
The min x value in the v view.
Definition: LArXOverlap.h:106
float m_vMaxX
The max x value in the v view.
Definition: LArXOverlap.h:107
float lar_content::XOverlap::GetXSpanW ( ) const
inline

Get the x span in the w view.

Returns
the x span in the w view

Definition at line 193 of file LArXOverlap.h.

References m_wMaxX, and m_wMinX.

Referenced by lar_content::ShowerOverlapResult::operator<().

194 {
195  return std::fabs(m_wMaxX - m_wMinX);
196 }
float m_wMinX
The min x value in the w view.
Definition: LArXOverlap.h:108
float m_wMaxX
The max x value in the w view.
Definition: LArXOverlap.h:109

Member Data Documentation

float lar_content::XOverlap::m_uMaxX
private

The max x value in the u view.

Definition at line 105 of file LArXOverlap.h.

Referenced by GetUMaxX(), and GetXSpanU().

float lar_content::XOverlap::m_uMinX
private

The min x value in the u view.

Definition at line 104 of file LArXOverlap.h.

Referenced by GetUMinX(), and GetXSpanU().

float lar_content::XOverlap::m_vMaxX
private

The max x value in the v view.

Definition at line 107 of file LArXOverlap.h.

Referenced by GetVMaxX(), and GetXSpanV().

float lar_content::XOverlap::m_vMinX
private

The min x value in the v view.

Definition at line 106 of file LArXOverlap.h.

Referenced by GetVMinX(), and GetXSpanV().

float lar_content::XOverlap::m_wMaxX
private

The max x value in the w view.

Definition at line 109 of file LArXOverlap.h.

Referenced by GetWMaxX(), and GetXSpanW().

float lar_content::XOverlap::m_wMinX
private

The min x value in the w view.

Definition at line 108 of file LArXOverlap.h.

Referenced by GetWMinX(), and GetXSpanW().

float lar_content::XOverlap::m_xOverlapSpan
private

The x overlap span.

Definition at line 110 of file LArXOverlap.h.

Referenced by GetXOverlapSpan().


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