RegPixelMap3D, input to 3D CNN neural net.
More...
#include <RegPixelMap3D.h>
RegPixelMap3D, input to 3D CNN neural net.
Definition at line 22 of file RegPixelMap3D.h.
Definition at line 16 of file RegPixelMap3D.cxx.
std::vector< int > fProngTag
float StopPos(const unsigned int &axis) const
float StartPos(const unsigned int &axis) const
int NBins(const unsigned int &axis) const
std::vector< float > fPECropped
cnn::RegPixelMap3D::RegPixelMap3D |
( |
| ) |
|
|
inline |
void cnn::RegPixelMap3D::AddHit |
( |
float |
rel_x, |
|
|
float |
rel_y, |
|
|
float |
rel_z, |
|
|
float |
charge, |
|
|
int |
hit_prong_tag |
|
) |
| |
Definition at line 30 of file RegPixelMap3D.cxx.
34 int xbin =
x_axis.FindBin(rel_x);
35 int ybin =
y_axis.FindBin(rel_y);
36 int zbin =
z_axis.FindBin(rel_z);
std::vector< int > fProngTag
bool IsWithin(const float &rel_x, const float &rel_y, const float &rel_z)
unsigned int LocalToIndex(const unsigned int &bin_x, const unsigned int &bin_y, const unsigned int &bin_z) const
void cnn::RegPixelMap3D::Finish |
( |
| ) |
|
Definition at line 42 of file RegPixelMap3D.cxx.
56 std::cout<<
"Do Prong Only selection ......"<<
std::endl;
57 for (
unsigned int i_p= 0; i_p<
fPE.size(); ++i_p) {
64 std::cout<<
"Crop pixel size to 32x32x32 ......"<<
std::endl;
65 int cropped_xbin_low = 50 - 16;
66 int cropped_ybin_low = 50 - 16;
67 int cropped_zbin_low = 0;
68 for (
int i_x= 0; i_x< 32; ++i_x) {
69 for (
int i_y= 0; i_y< 32; ++i_y) {
70 for (
int i_z= 0; i_z< 32; ++i_z) {
71 int cropped_index = i_x*32*32 + i_y*32 + i_z%32;
72 int ii_x = i_x + cropped_xbin_low;
73 int ii_y = i_y + cropped_ybin_low;
74 int ii_z = i_z + cropped_zbin_low;
std::vector< int > fProngTag
unsigned int LocalToIndex(const unsigned int &bin_x, const unsigned int &bin_y, const unsigned int &bin_z) const
std::vector< float > fPECropped
QTextStream & endl(QTextStream &s)
std::vector<float> cnn::RegPixelMap3D::GetCroppedPM |
( |
| ) |
const |
|
inline |
bool cnn::RegPixelMap3D::IsCroppedPM |
( |
| ) |
const |
|
inline |
unsigned int cnn::RegPixelMap3D::LocalToIndex |
( |
const unsigned int & |
bin_x, |
|
|
const unsigned int & |
bin_y, |
|
|
const unsigned int & |
bin_z |
|
) |
| const |
Definition at line 83 of file RegPixelMap3D.cxx.
87 assert(index <
fPE.size());
int NBins(const unsigned int &axis) const
TH3F * cnn::RegPixelMap3D::ToCroppedTH3 |
( |
| ) |
const |
Definition at line 106 of file RegPixelMap3D.cxx.
108 TH3F*
hist =
new TH3F(
"RegCroppedPixelMap3D",
"X:Y:Z", 32, 0, 32*
x_axis.GetBinWidth(0),
109 32, 0, 32*
y_axis.GetBinWidth(0),
110 32, 0, 32*
z_axis.GetBinWidth(0));
111 for (
int ix= 0; ix< 32; ++ix) {
112 for (
int iy= 0; iy< 32; ++iy) {
113 for (
int iz= 0; iz< 32; ++iz) {
114 int cropped_index = ix*32*32 + iy*32 + iz%32;
115 hist->SetBinContent(ix+1, iy+1, iz+1,
fPECropped[cropped_index]);
std::vector< float > fPECropped
TH3F * cnn::RegPixelMap3D::ToTH3 |
( |
| ) |
const |
Definition at line 91 of file RegPixelMap3D.cxx.
float StopPos(const unsigned int &axis) const
float StartPos(const unsigned int &axis) const
unsigned int LocalToIndex(const unsigned int &bin_x, const unsigned int &bin_y, const unsigned int &bin_z) const
int NBins(const unsigned int &axis) const
bool cnn::RegPixelMap3D::fCropped |
unsigned int cnn::RegPixelMap3D::fInPM |
bool cnn::RegPixelMap3D::fProngOnly |
TAxis cnn::RegPixelMap3D::x_axis |
|
private |
TAxis cnn::RegPixelMap3D::y_axis |
|
private |
TAxis cnn::RegPixelMap3D::z_axis |
|
private |
The documentation for this class was generated from the following files: