RegPixelMap, basic input to CNN neural net. More...
#include <RegPixelMap.h>
Public Member Functions | |
RegPixelMap (unsigned int nWire, unsigned int nWRes, unsigned int nTdc, unsigned int nTRes, const RegCNNBoundary &bound, const bool &prongOnly) | |
RegPixelMap () | |
unsigned int | NWire () const |
Length in wires. More... | |
unsigned int | NWRes () const |
Number of Merged wires. More... | |
unsigned int | NTdc () const |
Width in tdcs. More... | |
unsigned int | NTRes () const |
Number of Merged tdcs. More... | |
unsigned int | NPixel () const |
Total number of pixels in map. More... | |
RegCNNBoundary | Bound () const |
Map boundary. More... | |
unsigned int | NInput () const |
Number of inputs for the neural net. More... | |
void | FillInputVector (float *input) const |
void | Add (const int &wire, const int &tdc, const unsigned int &view, const double &pe, const unsigned int &tpc, int hit_prong_tag) |
void | GetTPC (const int &wire, const int &tdc, const unsigned int &view, const unsigned int &tpc) |
unsigned int | GlobalToIndex (const int &wire, const int &tdc, const unsigned int &view) |
Take global wire, tdc (detector) and return index in fPE vector. More... | |
unsigned int | LocalToIndex (const unsigned int &wire, const unsigned int &tdc) const |
Take local wire, tdc (within map) and return index in fPE vector. More... | |
unsigned int | GlobalToIndexSingle (const int &wire, const int &tdc, const unsigned int &view) |
Take global wire, tdc (detector) and return index in fPE vector. More... | |
void | Print () |
TH2F * | ToTH2 () const |
Return the pixel map as a 2D histogram for visualization. More... | |
TH2F * | ToLabTH2 () const |
TH2F * | SingleViewToTH2 (const unsigned int &view) const |
void | Finish () |
Public Attributes | |
unsigned int | fNWire |
Number of wires, length of pixel map. More... | |
unsigned int | fNWRes |
unsigned int | fNTdc |
Number of tdcs, width of pixel map. More... | |
unsigned int | fNTRes |
unsigned int | fInPM |
unsigned int | fTPC |
double | fdist |
std::vector< float > | fPE |
Vector of PE measurements for pixels. More... | |
std::vector< float > | fPEX |
Vector of X PE measurements for pixels. More... | |
std::vector< float > | fPEY |
Vector of Y PE measurements for pixels. More... | |
std::vector< float > | fPEZ |
Vector of Y PE measurements for pixels. More... | |
std::vector< double > | fPur |
Vector of purity for pixels. More... | |
std::vector< double > | fPurX |
Vector of X purity for pixels. More... | |
std::vector< double > | fPurY |
Vector of Y purity for pixels. More... | |
std::vector< double > | fPurZ |
Vector of Y purity for pixels. More... | |
std::vector< HitType > | fLab |
Vector of Truth labels for pixels. More... | |
std::vector< HitType > | fLabX |
Vector of X Truth labels for pixels. More... | |
std::vector< HitType > | fLabY |
Vector of Y Truth labels for pixels. More... | |
std::vector< HitType > | fLabZ |
Vector of Y Truth labels for pixels. More... | |
RegCNNBoundary | fBound |
bool | fProngOnly |
std::vector< int > | fProngTagX |
std::vector< int > | fProngTagY |
std::vector< int > | fProngTagZ |
RegPixelMap, basic input to CNN neural net.
Definition at line 22 of file RegPixelMap.h.
cnn::RegPixelMap::RegPixelMap | ( | unsigned int | nWire, |
unsigned int | nWRes, | ||
unsigned int | nTdc, | ||
unsigned int | nTRes, | ||
const RegCNNBoundary & | bound, | ||
const bool & | prongOnly | ||
) |
Definition at line 18 of file RegPixelMap.cxx.
|
inline |
Definition at line 26 of file RegPixelMap.h.
void cnn::RegPixelMap::Add | ( | const int & | wire, |
const int & | tdc, | ||
const unsigned int & | view, | ||
const double & | pe, | ||
const unsigned int & | tpc, | ||
int | hit_prong_tag | ||
) |
Add a hit to the map if it is contained within the wire, tdc rcnne Could be expanded later to add to overflow accordingly.
Definition at line 60 of file RegPixelMap.cxx.
|
inline |
void cnn::RegPixelMap::FillInputVector | ( | float * | input | ) | const |
Definition at line 48 of file RegPixelMap.cxx.
void cnn::RegPixelMap::Finish | ( | ) |
Definition at line 98 of file RegPixelMap.cxx.
void cnn::RegPixelMap::GetTPC | ( | const int & | wire, |
const int & | tdc, | ||
const unsigned int & | view, | ||
const unsigned int & | tpc | ||
) |
Definition at line 182 of file RegPixelMap.cxx.
unsigned int cnn::RegPixelMap::GlobalToIndex | ( | const int & | wire, |
const int & | tdc, | ||
const unsigned int & | view | ||
) |
Take global wire, tdc (detector) and return index in fPE vector.
Definition at line 124 of file RegPixelMap.cxx.
unsigned int cnn::RegPixelMap::GlobalToIndexSingle | ( | const int & | wire, |
const int & | tdc, | ||
const unsigned int & | view | ||
) |
Take global wire, tdc (detector) and return index in fPE vector.
Definition at line 157 of file RegPixelMap.cxx.
unsigned int cnn::RegPixelMap::LocalToIndex | ( | const unsigned int & | wire, |
const unsigned int & | tdc | ||
) | const |
Take local wire, tdc (within map) and return index in fPE vector.
Definition at line 148 of file RegPixelMap.cxx.
|
inline |
Number of inputs for the neural net.
Definition at line 47 of file RegPixelMap.h.
|
inline |
Total number of pixels in map.
Definition at line 41 of file RegPixelMap.h.
|
inline |
Width in tdcs.
Definition at line 35 of file RegPixelMap.h.
|
inline |
|
inline |
Length in wires.
Definition at line 29 of file RegPixelMap.h.
|
inline |
void cnn::RegPixelMap::Print | ( | ) |
Draw pixel map to the screen. This is pretty hokey and the aspect ratio is totally unrealistic.
Definition at line 201 of file RegPixelMap.cxx.
TH2F * cnn::RegPixelMap::SingleViewToTH2 | ( | const unsigned int & | view | ) | const |
Definition at line 283 of file RegPixelMap.cxx.
TH2F * cnn::RegPixelMap::ToLabTH2 | ( | ) | const |
Definition at line 263 of file RegPixelMap.cxx.
TH2F * cnn::RegPixelMap::ToTH2 | ( | ) | const |
Return the pixel map as a 2D histogram for visualization.
Definition at line 243 of file RegPixelMap.cxx.
RegCNNBoundary cnn::RegPixelMap::fBound |
Definition at line 104 of file RegPixelMap.h.
double cnn::RegPixelMap::fdist |
Definition at line 90 of file RegPixelMap.h.
unsigned int cnn::RegPixelMap::fInPM |
Definition at line 88 of file RegPixelMap.h.
std::vector<HitType> cnn::RegPixelMap::fLab |
Vector of Truth labels for pixels.
Definition at line 99 of file RegPixelMap.h.
std::vector<HitType> cnn::RegPixelMap::fLabX |
Vector of X Truth labels for pixels.
Definition at line 100 of file RegPixelMap.h.
std::vector<HitType> cnn::RegPixelMap::fLabY |
Vector of Y Truth labels for pixels.
Definition at line 101 of file RegPixelMap.h.
std::vector<HitType> cnn::RegPixelMap::fLabZ |
Vector of Y Truth labels for pixels.
Definition at line 102 of file RegPixelMap.h.
unsigned int cnn::RegPixelMap::fNTdc |
Number of tdcs, width of pixel map.
Definition at line 86 of file RegPixelMap.h.
unsigned int cnn::RegPixelMap::fNTRes |
Definition at line 87 of file RegPixelMap.h.
unsigned int cnn::RegPixelMap::fNWire |
Number of wires, length of pixel map.
Definition at line 84 of file RegPixelMap.h.
unsigned int cnn::RegPixelMap::fNWRes |
Definition at line 85 of file RegPixelMap.h.
std::vector<float> cnn::RegPixelMap::fPE |
Vector of PE measurements for pixels.
Definition at line 91 of file RegPixelMap.h.
std::vector<float> cnn::RegPixelMap::fPEX |
Vector of X PE measurements for pixels.
Definition at line 92 of file RegPixelMap.h.
std::vector<float> cnn::RegPixelMap::fPEY |
Vector of Y PE measurements for pixels.
Definition at line 93 of file RegPixelMap.h.
std::vector<float> cnn::RegPixelMap::fPEZ |
Vector of Y PE measurements for pixels.
Definition at line 94 of file RegPixelMap.h.
bool cnn::RegPixelMap::fProngOnly |
Definition at line 105 of file RegPixelMap.h.
std::vector<int> cnn::RegPixelMap::fProngTagX |
Definition at line 106 of file RegPixelMap.h.
std::vector<int> cnn::RegPixelMap::fProngTagY |
Definition at line 107 of file RegPixelMap.h.
std::vector<int> cnn::RegPixelMap::fProngTagZ |
Definition at line 108 of file RegPixelMap.h.
std::vector<double> cnn::RegPixelMap::fPur |
Vector of purity for pixels.
Definition at line 95 of file RegPixelMap.h.
std::vector<double> cnn::RegPixelMap::fPurX |
Vector of X purity for pixels.
Definition at line 96 of file RegPixelMap.h.
std::vector<double> cnn::RegPixelMap::fPurY |
Vector of Y purity for pixels.
Definition at line 97 of file RegPixelMap.h.
std::vector<double> cnn::RegPixelMap::fPurZ |
Vector of Y purity for pixels.
Definition at line 98 of file RegPixelMap.h.
unsigned int cnn::RegPixelMap::fTPC |
Definition at line 89 of file RegPixelMap.h.