Public Member Functions | Public Attributes | List of all members
cnn::RegCNNBoundary3D Class Reference

#include <RegCNNBoundary3D.h>

Public Member Functions

 RegCNNBoundary3D (const int &nbinsX, const int &nbinsY, const int &nbinsZ, const double &x_length, const double &y_length, const double &z_length, const float &center_X, const float &center_Y, const float &center_Z)
 Create new RegCNNBoundary3D object based on space points. More...
 
 RegCNNBoundary3D ()
 
bool IsWithin (const float &rel_x, const float &rel_y, const float &rel_z)
 
double Length (const unsigned int &axis) const
 
int NBins (const unsigned int &axis) const
 
float StartPos (const unsigned int &axis) const
 
float StopPos (const unsigned int &axis) const
 
float Center (const unsigned int &axis) const
 

Public Attributes

int fStartBin [3]
 Minimum TDC in each view, inclusive. More...
 
int fStopBin [3]
 Maximum TDC in each view, inclusive. More...
 
double fStart [3]
 Minimum wire, inclusive. More...
 
double fStop [3]
 Maximum wire, inclusive. More...
 
float fCenter [3]
 

Detailed Description

RegCNNBoundary object intended for use with cnn::RegPixelMap. Stores mean of wire and TPCs

Definition at line 19 of file RegCNNBoundary3D.h.

Constructor & Destructor Documentation

cnn::RegCNNBoundary3D::RegCNNBoundary3D ( const int &  nbinsX,
const int &  nbinsY,
const int &  nbinsZ,
const double &  x_length,
const double &  y_length,
const double &  z_length,
const float &  center_X,
const float &  center_Y,
const float &  center_Z 
)

Create new RegCNNBoundary3D object based on space points.

Definition at line 18 of file RegCNNBoundary3D.cxx.

26  :
27  fStartBin{0, 0, 0},
28  fStopBin{nbinsX, nbinsY, nbinsZ},
29  fStart{0, 0, 0},
30  fStop{x_length, y_length, z_length},
31  fCenter{center_X, center_Y, center_Z}
32  {
33  }
double fStop[3]
Maximum wire, inclusive.
int fStopBin[3]
Maximum TDC in each view, inclusive.
int fStartBin[3]
Minimum TDC in each view, inclusive.
double fStart[3]
Minimum wire, inclusive.
cnn::RegCNNBoundary3D::RegCNNBoundary3D ( )
inline

Definition at line 28 of file RegCNNBoundary3D.h.

28 {};

Member Function Documentation

float cnn::RegCNNBoundary3D::Center ( const unsigned int &  axis) const
inline

Definition at line 36 of file RegCNNBoundary3D.h.

36 {return fCenter[axis];};
bool cnn::RegCNNBoundary3D::IsWithin ( const float &  rel_x,
const float &  rel_y,
const float &  rel_z 
)

Definition at line 35 of file RegCNNBoundary3D.cxx.

36  {
37  bool inX = (rel_x >= fStart[0]) && (rel_x < fStop[0]);
38  bool inY = (rel_y >= fStart[1]) && (rel_y < fStop[1]);
39  bool inZ = (rel_z >= fStart[2]) && (rel_z < fStop[2]);
40 
41  return inX && inY && inZ;
42  }
double fStop[3]
Maximum wire, inclusive.
double fStart[3]
Minimum wire, inclusive.
double cnn::RegCNNBoundary3D::Length ( const unsigned int &  axis) const
inline

Definition at line 32 of file RegCNNBoundary3D.h.

32 {return fStop[axis]-fStart[axis];};
double fStop[3]
Maximum wire, inclusive.
double fStart[3]
Minimum wire, inclusive.
int cnn::RegCNNBoundary3D::NBins ( const unsigned int &  axis) const
inline

Definition at line 33 of file RegCNNBoundary3D.h.

33 {return fStopBin[axis]-fStartBin[axis];};
int fStopBin[3]
Maximum TDC in each view, inclusive.
int fStartBin[3]
Minimum TDC in each view, inclusive.
float cnn::RegCNNBoundary3D::StartPos ( const unsigned int &  axis) const
inline

Definition at line 34 of file RegCNNBoundary3D.h.

34 {return fStart[axis];};
double fStart[3]
Minimum wire, inclusive.
float cnn::RegCNNBoundary3D::StopPos ( const unsigned int &  axis) const
inline

Definition at line 35 of file RegCNNBoundary3D.h.

35 {return fStop[axis];};
double fStop[3]
Maximum wire, inclusive.

Member Data Documentation

float cnn::RegCNNBoundary3D::fCenter[3]

Definition at line 42 of file RegCNNBoundary3D.h.

double cnn::RegCNNBoundary3D::fStart[3]

Minimum wire, inclusive.

Definition at line 40 of file RegCNNBoundary3D.h.

int cnn::RegCNNBoundary3D::fStartBin[3]

Minimum TDC in each view, inclusive.

Definition at line 36 of file RegCNNBoundary3D.h.

double cnn::RegCNNBoundary3D::fStop[3]

Maximum wire, inclusive.

Definition at line 41 of file RegCNNBoundary3D.h.

int cnn::RegCNNBoundary3D::fStopBin[3]

Maximum TDC in each view, inclusive.

Definition at line 39 of file RegCNNBoundary3D.h.


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