Public Member Functions | Private Attributes | List of all members
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 464 of file LArTwoDSlidingFitObjects.h.

464  :
465  m_startLayer(startLayer),
466  m_endLayer(endLayer)
467 {
468  m_minX = std::min(startX, endX);
469  m_maxX = std::max(startX, endX);
470  m_isIncreasingX = (endX > startX);
471 }
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.
static int max(int a, int b)
T min(sqlite3 *const db, std::string const &table_name, std::string const &column_name)
Definition: statistics.h:55
double m_minX
The minimum x value.

Member Function Documentation

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

Get end layer.

Returns
the end layer

Definition at line 482 of file LArTwoDSlidingFitObjects.h.

483 {
484  return m_endLayer;
485 }
double lar_content::FitSegment::GetMaxX ( ) const
inline

Get the maximum x value.

Returns
the maximum x value

Definition at line 496 of file LArTwoDSlidingFitObjects.h.

497 {
498  return m_maxX;
499 }
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 489 of file LArTwoDSlidingFitObjects.h.

490 {
491  return m_minX;
492 }
double m_minX
The minimum x value.
int lar_content::FitSegment::GetStartLayer ( ) const
inline

Get start layer.

Returns
the start layer

Definition at line 475 of file LArTwoDSlidingFitObjects.h.

476 {
477  return m_startLayer;
478 }
int m_startLayer
The start layer.
bool lar_content::FitSegment::IsIncreasingX ( ) const
inline

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

Returns
boolean

Definition at line 503 of file LArTwoDSlidingFitObjects.h.

504 {
505  return m_isIncreasingX;
506 }
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.

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.

double lar_content::FitSegment::m_maxX
private

The maximum x value.

Definition at line 286 of file LArTwoDSlidingFitObjects.h.

double lar_content::FitSegment::m_minX
private

The minimum x value.

Definition at line 285 of file LArTwoDSlidingFitObjects.h.

int lar_content::FitSegment::m_startLayer
private

The start layer.

Definition at line 283 of file LArTwoDSlidingFitObjects.h.


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