LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
lar_content::FitSegment Class Reference

FitSegment class. More...

#include "LArTwoDSlidingFitObjects.h"

Public Member Functions

 FitSegment (const int startLayer, const int endLayer, const double startX, const double endX)
 Constructor. More...
 
int GetStartLayer () const
 Get start layer. More...
 
int GetEndLayer () const
 Get end layer. More...
 
double GetMinX () const
 Get the minimum x value. More...
 
double GetMaxX () const
 Get the maximum x value. More...
 
bool IsIncreasingX () const
 Whether the x coordinate increases between the start and end layers. More...
 

Private Attributes

int m_startLayer
 The start layer. More...
 
int m_endLayer
 The end layer. More...
 
double m_minX
 The minimum x value. More...
 
double m_maxX
 The maximum x value. More...
 
bool m_isIncreasingX
 Whether the x coordinate increases between the start and end layers. More...
 

Detailed Description

FitSegment class.

Definition at line 234 of file LArTwoDSlidingFitObjects.h.

Constructor & Destructor Documentation

lar_content::FitSegment::FitSegment ( const int  startLayer,
const int  endLayer,
const double  startX,
const double  endX 
)
inline

Constructor.

Parameters
startLayerthe start layer
endLayerthe end layer
startXthe x position at the start layer
endXthe x position at the end layer

Definition at line 473 of file LArTwoDSlidingFitObjects.h.

References m_isIncreasingX, m_maxX, m_minX, max, and min.

473  :
474  m_startLayer(startLayer),
475  m_endLayer(endLayer)
476 {
477  m_minX = std::min(startX, endX);
478  m_maxX = std::max(startX, endX);
479  m_isIncreasingX = (endX > startX);
480 }
int m_startLayer
The start layer.
bool m_isIncreasingX
Whether the x coordinate increases between the start and end layers.
double m_maxX
The maximum x value.
Int_t max
Definition: plot.C:27
Int_t min
Definition: plot.C:26
double m_minX
The minimum x value.

Member Function Documentation

int lar_content::FitSegment::GetEndLayer ( ) const
inline
double lar_content::FitSegment::GetMaxX ( ) const
inline

Get the maximum x value.

Returns
the maximum x value

Definition at line 505 of file LArTwoDSlidingFitObjects.h.

References m_maxX.

Referenced by lar_content::ThreeDTransverseTracksAlgorithm::GetSegmentOverlap().

506 {
507  return m_maxX;
508 }
double m_maxX
The maximum x value.
double lar_content::FitSegment::GetMinX ( ) const
inline

Get the minimum x value.

Returns
the minimum x value

Definition at line 498 of file LArTwoDSlidingFitObjects.h.

References m_minX.

Referenced by lar_content::ThreeDTransverseTracksAlgorithm::GetSegmentOverlap().

499 {
500  return m_minX;
501 }
double m_minX
The minimum x value.
int lar_content::FitSegment::GetStartLayer ( ) const
inline
bool lar_content::FitSegment::IsIncreasingX ( ) const
inline

Whether the x coordinate increases between the start and end layers.

Returns
boolean

Definition at line 512 of file LArTwoDSlidingFitObjects.h.

References m_isIncreasingX.

513 {
514  return m_isIncreasingX;
515 }
bool m_isIncreasingX
Whether the x coordinate increases between the start and end layers.

Member Data Documentation

int lar_content::FitSegment::m_endLayer
private

The end layer.

Definition at line 284 of file LArTwoDSlidingFitObjects.h.

Referenced by GetEndLayer().

bool lar_content::FitSegment::m_isIncreasingX
private

Whether the x coordinate increases between the start and end layers.

Definition at line 287 of file LArTwoDSlidingFitObjects.h.

Referenced by FitSegment(), and IsIncreasingX().

double lar_content::FitSegment::m_maxX
private

The maximum x value.

Definition at line 286 of file LArTwoDSlidingFitObjects.h.

Referenced by FitSegment(), and GetMaxX().

double lar_content::FitSegment::m_minX
private

The minimum x value.

Definition at line 285 of file LArTwoDSlidingFitObjects.h.

Referenced by FitSegment(), and GetMinX().

int lar_content::FitSegment::m_startLayer
private

The start layer.

Definition at line 283 of file LArTwoDSlidingFitObjects.h.

Referenced by GetStartLayer().


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