All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
flashmatch::QPoint_t Struct Reference

Struct to represent an energy deposition point in 3D space. More...

#include <OpT0FinderTypes.h>

Public Member Functions

 QPoint_t ()
 Default ctor assigns invalid values. More...
 
 QPoint_t (double xvalue, double yvalue, double zvalue, double qvalue)
 Alternative ctor. More...
 
double dist (const QPoint_t &pt)
 distance More...
 

Public Attributes

double x
 
double y
 
double z
 Spatial position in [cm]. More...
 
double q
 

Detailed Description

Struct to represent an energy deposition point in 3D space.

Definition at line 65 of file OpT0FinderTypes.h.

Constructor & Destructor Documentation

flashmatch::QPoint_t::QPoint_t ( )
inline

Default ctor assigns invalid values.

Definition at line 70 of file OpT0FinderTypes.h.

75  {}
const double kINVALID_DOUBLE
Utility: invalid value for double.
double z
Spatial position in [cm].
flashmatch::QPoint_t::QPoint_t ( double  xvalue,
double  yvalue,
double  zvalue,
double  qvalue 
)
inline

Alternative ctor.

Definition at line 77 of file OpT0FinderTypes.h.

81  : x(xvalue)
82  , y(yvalue)
83  , z(zvalue)
84  , q(qvalue)
85  {}
double z
Spatial position in [cm].

Member Function Documentation

double flashmatch::QPoint_t::dist ( const QPoint_t pt)
inline

distance

Definition at line 87 of file OpT0FinderTypes.h.

88  { return sqrt(pow(pt.x-x,2)+pow(pt.y-y,2)+pow(pt.z-z,2)); }
double z
Spatial position in [cm].

Member Data Documentation

double flashmatch::QPoint_t::q

Charge in an arbitrary unit

Definition at line 68 of file OpT0FinderTypes.h.

double flashmatch::QPoint_t::x

Definition at line 67 of file OpT0FinderTypes.h.

double flashmatch::QPoint_t::y

Definition at line 67 of file OpT0FinderTypes.h.

double flashmatch::QPoint_t::z

Spatial position in [cm].

Definition at line 67 of file OpT0FinderTypes.h.


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