Class containing some utility functions for all things RegCNN. More...
#include <RegCNNImageUtils.h>
Public Member Functions | |
RegCNNImageUtils () | |
RegCNNImageUtils (unsigned int nWires, unsigned int nTDCs, unsigned int nViews) | |
~RegCNNImageUtils () | |
void | SetViewReversal (bool reverseX, bool reverseY, bool reverseZ) |
Function to set any views that need reversing. More... | |
void | SetViewReversal (std::vector< bool > reverseViews) |
void | SetPixelMapSize (unsigned int nWires, unsigned int nTDCs) |
Set the input pixel map size. More... | |
float | ConvertToScaledCharge (float charge) |
void | ConvertPixelMapToImageVectorF (const RegPixelMap &pm, ImageVectorF &imageVec) |
Convert a pixel map into an image vector (float version) More... | |
void | ConvertChargeVectorsToImageVectorF (std::vector< float > &v0pe, std::vector< float > &v1pe, std::vector< float > &v2pe, ImageVectorF &imageVec) |
Float version of conversion for convenience of TF interface. More... | |
Private Member Functions | |
void | ConvertChargeVectorsToViewVectors (std::vector< float > &v0pe, std::vector< float > &v1pe, std::vector< float > &v2pe, ViewVectorF &view0, ViewVectorF &view1, ViewVectorF &view2) |
Base function for conversion of the Pixel Map to our required output format. More... | |
ImageVectorF | BuildImageVectorF (ViewVectorF v0, ViewVectorF v1, ViewVectorF v2) |
Make the image vector from the view vectors. More... | |
void | ReverseView (std::vector< float > &peVec) |
Funtion to actually reverse the view. More... | |
Private Attributes | |
unsigned int | fNViews |
Number of views of each event. More... | |
unsigned int | fPixelMapWires |
Input pixel map sizes. More... | |
unsigned int | fPixelMapTDCs |
std::vector< bool > | fViewReverse |
Vector of bools to decide if any views need to be reversed. More... | |
Class containing some utility functions for all things RegCNN.
Definition at line 22 of file RegCNNImageUtils.h.
cnn::RegCNNImageUtils::RegCNNImageUtils | ( | ) |
Definition at line 6 of file RegCNNImageUtils.cxx.
cnn::RegCNNImageUtils::RegCNNImageUtils | ( | unsigned int | nWires, |
unsigned int | nTDCs, | ||
unsigned int | nViews | ||
) |
Definition at line 13 of file RegCNNImageUtils.cxx.
cnn::RegCNNImageUtils::~RegCNNImageUtils | ( | ) |
Definition at line 17 of file RegCNNImageUtils.cxx.
|
private |
void cnn::RegCNNImageUtils::ConvertChargeVectorsToImageVectorF | ( | std::vector< float > & | v0pe, |
std::vector< float > & | v1pe, | ||
std::vector< float > & | v2pe, | ||
cnn::ImageVectorF & | imageVec | ||
) |
Float version of conversion for convenience of TF interface.
Definition at line 57 of file RegCNNImageUtils.cxx.
|
private |
Base function for conversion of the Pixel Map to our required output format.
Definition at line 71 of file RegCNNImageUtils.cxx.
void cnn::RegCNNImageUtils::ConvertPixelMapToImageVectorF | ( | const RegPixelMap & | pm, |
cnn::ImageVectorF & | imageVec | ||
) |
Convert a pixel map into an image vector (float version)
Definition at line 45 of file RegCNNImageUtils.cxx.
float cnn::RegCNNImageUtils::ConvertToScaledCharge | ( | float | charge | ) |
Definition at line 41 of file RegCNNImageUtils.cxx.
|
private |
Funtion to actually reverse the view.
Definition at line 114 of file RegCNNImageUtils.cxx.
void cnn::RegCNNImageUtils::SetPixelMapSize | ( | unsigned int | nWires, |
unsigned int | nTDCs | ||
) |
Set the input pixel map size.
Definition at line 35 of file RegCNNImageUtils.cxx.
Function to set any views that need reversing.
Definition at line 21 of file RegCNNImageUtils.cxx.
void cnn::RegCNNImageUtils::SetViewReversal | ( | std::vector< bool > | reverseViews | ) |
Definition at line 25 of file RegCNNImageUtils.cxx.
|
private |
Number of views of each event.
Definition at line 63 of file RegCNNImageUtils.h.
|
private |
Definition at line 67 of file RegCNNImageUtils.h.
|
private |
Input pixel map sizes.
Definition at line 66 of file RegCNNImageUtils.h.
|
private |
Vector of bools to decide if any views need to be reversed.
Definition at line 70 of file RegCNNImageUtils.h.