LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
sim::UniquePosition Class Reference

#include "MCRecoEdep.h"

Public Member Functions

 UniquePosition (double x=0, double y=0, double z=0)
 
bool operator< (const UniquePosition &rhs) const
 

Public Attributes

double _x
 
double _y
 
double _z
 

Detailed Description

Definition at line 48 of file MCRecoEdep.h.

Constructor & Destructor Documentation

sim::UniquePosition::UniquePosition ( double  x = 0,
double  y = 0,
double  z = 0 
)
inline

Definition at line 53 of file MCRecoEdep.h.

References x, y, and z.

54  {
55  _x = x;
56  _y = y;
57  _z = z;
58  }
Float_t x
Definition: compare.C:6
Float_t y
Definition: compare.C:6
Double_t z
Definition: plot.C:276

Member Function Documentation

bool sim::UniquePosition::operator< ( const UniquePosition rhs) const
inline

Definition at line 60 of file MCRecoEdep.h.

References _x, _y, and _z.

61  {
62  if (_x < rhs._x) return true;
63  if (rhs._x < _x) return false;
64  if (_y < rhs._y) return true;
65  if (rhs._y < _y) return false;
66  if (_z < rhs._z) return true;
67  if (rhs._z < _z) return false;
68  return false;
69  }

Member Data Documentation

double sim::UniquePosition::_x

Definition at line 50 of file MCRecoEdep.h.

Referenced by operator<().

double sim::UniquePosition::_y

Definition at line 50 of file MCRecoEdep.h.

Referenced by operator<().

double sim::UniquePosition::_z

Definition at line 50 of file MCRecoEdep.h.

Referenced by operator<().


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