RegCNNBoundary3D.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file RegCNNBoundary3D.h
3 /// \brief RegCNNBoundary3D for 3D RegCNN PixelMap modified from CVNBoundary.h
4 /// \author Wenjie Wu - wenjieww@uci.edu
5 ////////////////////////////////////////////////////////////////////////
6 
7 #ifndef REGCNN_BOUNDARY3D_H
8 #define REGCNN_BOUNDARY3D_H
9 
10 #include <ostream>
11 #include <vector>
12 
13 
14 namespace cnn
15 {
16 
17  /// RegCNNBoundary object intended for use with cnn::RegPixelMap.
18  /// Stores mean of wire and TPCs
20  {
21 
22  public:
23  /// Create new RegCNNBoundary3D object based on space points
24  RegCNNBoundary3D(const int& nbinsX, const int& nbinsY, const int& nbinsZ,
25  const double& x_length, const double& y_length, const double& z_length,
26  const float& center_X, const float& center_Y, const float& center_Z);
27 
29 
30  bool IsWithin(const float& rel_x, const float& rel_y, const float& rel_z);
31 
32  double Length(const unsigned int& axis) const {return fStop[axis]-fStart[axis];};
33  int NBins(const unsigned int& axis) const {return fStopBin[axis]-fStartBin[axis];};
34  float StartPos(const unsigned int& axis) const {return fStart[axis];};
35  float StopPos(const unsigned int& axis) const {return fStop[axis];};
36  float Center(const unsigned int& axis) const {return fCenter[axis];};
37 
38  int fStartBin[3]; ///< Minimum TDC in each view, inclusive
39  int fStopBin[3]; ///< Maximum TDC in each view, inclusive
40  double fStart[3]; ///< Minimum wire, inclusive
41  double fStop[3]; ///< Maximum wire, inclusive
42  float fCenter[3];
43 
44  };
45 
46  std::ostream& operator<<(std::ostream& os, const RegCNNBoundary3D& b);
47 }
48 
49 #endif // REGCNN_BOUNDARY3D_H
float Center(const unsigned int &axis) const
double fStop[3]
Maximum wire, inclusive.
float StopPos(const unsigned int &axis) const
int fStopBin[3]
Maximum TDC in each view, inclusive.
bool IsWithin(const float &rel_x, const float &rel_y, const float &rel_z)
int fStartBin[3]
Minimum TDC in each view, inclusive.
float StartPos(const unsigned int &axis) const
int NBins(const unsigned int &axis) const
Defines an enumeration for cellhit classification.
double fStart[3]
Minimum wire, inclusive.
std::ostream & operator<<(std::ostream &os, const RegPixelMap3DProducer &p)
static bool * b
Definition: config.cpp:1043
double Length(const unsigned int &axis) const