7 #ifndef RegCNN_IMAGE_UTILS_H 8 #define RegCNN_IMAGE_UTILS_H 26 RegCNNImageUtils(
unsigned int nWires,
unsigned int nTDCs,
unsigned int nViews);
46 std::vector<float> &v2pe, ImageVectorF &imageVec);
53 ViewVectorF& view0, ViewVectorF& view1, ViewVectorF& view2);
76 #endif // RegCNN_IMAGE_UTILS_H 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.
std::vector< bool > fViewReverse
Vector of bools to decide if any views need to be reversed.
void ReverseView(std::vector< float > &peVec)
Funtion to actually reverse the view.
RegPixelMap, basic input to CNN neural net.
void SetPixelMapSize(unsigned int nWires, unsigned int nTDCs)
Set the input pixel map size.
std::vector< std::vector< float > > ViewVectorF
Useful typedefs.
void SetViewReversal(bool reverseX, bool reverseY, bool reverseZ)
Function to set any views that need reversing.
unsigned int fPixelMapWires
Input pixel map sizes.
std::vector< ViewVectorF > ImageVectorF
float ConvertToScaledCharge(float charge)
void ConvertPixelMapToImageVectorF(const RegPixelMap &pm, ImageVectorF &imageVec)
Convert a pixel map into an image vector (float version)
ImageVectorF BuildImageVectorF(ViewVectorF v0, ViewVectorF v1, ViewVectorF v2)
Make the image vector from the view vectors.
Defines an enumeration for cellhit classification.
unsigned int fNViews
Number of views of each event.
unsigned int fPixelMapTDCs
Class containing some utility functions for all things RegCNN.
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.
RegPixelMap for RegCNN modified from PixelMap.h.