PixelMap, basic input to CVN neural net. More...
#include <PixelMap.h>
Public Member Functions | |
| PixelMap (unsigned int nWire, unsigned int nTdc, const Boundary &bound) | |
| PixelMap () | |
| unsigned int | NWire () const |
| Length in wires. More... | |
| unsigned int | NTdc () const |
| Width in tdcs. More... | |
| unsigned int | NPixel () const |
| Total number of pixels in map. More... | |
| Boundary | 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 unsigned int &wire, const double &tdc, const unsigned int &view, const double &pe) |
| unsigned int | GlobalToIndex (const unsigned int &wire, const double &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 unsigned int &wire, const double &tdc, const unsigned int &view) |
| Take global wire, tdc (detector) and return index in fPE vector. More... | |
| void | SetTotHits (unsigned int tothits) |
| unsigned int | GetTotHits () |
| void | Print () const |
| TH2F * | ToTH2 () const |
| Return the pixel map as a 2D histogram for visualization. More... | |
| TH2F * | ToLabTH2 () const |
| TH2F * | SingleViewToTH2 (const unsigned int &view) const |
Public Attributes | |
| unsigned int | fNWire |
| Number of wires, length of pixel map. More... | |
| unsigned int | fNTdc |
| Number of tdcs, width of pixel map. More... | |
| 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... | |
| unsigned int | fTotHits |
| Number of hits that make up the pixel map. More... | |
| Boundary | fBound |
PixelMap, basic input to CVN neural net.
Definition at line 22 of file PixelMap.h.
| cvn::PixelMap::PixelMap | ( | unsigned int | nWire, |
| unsigned int | nTdc, | ||
| const Boundary & | bound | ||
| ) |
Definition at line 15 of file PixelMap.cxx.
|
inline |
Definition at line 26 of file PixelMap.h.
| void cvn::PixelMap::Add | ( | const unsigned int & | wire, |
| const double & | tdc, | ||
| const unsigned int & | view, | ||
| const double & | pe | ||
| ) |
Add a hit to the map if it is contained within the wire, tdc rcvne Could be expanded later to add to overflow accordingly.
Definition at line 46 of file PixelMap.cxx.
|
inline |
| void cvn::PixelMap::FillInputVector | ( | float * | input | ) | const |
Definition at line 34 of file PixelMap.cxx.
|
inline |
Definition at line 68 of file PixelMap.h.
| unsigned int cvn::PixelMap::GlobalToIndex | ( | const unsigned int & | wire, |
| const double & | tdc, | ||
| const unsigned int & | view | ||
| ) |
Take global wire, tdc (detector) and return index in fPE vector.
Definition at line 72 of file PixelMap.cxx.
| unsigned int cvn::PixelMap::GlobalToIndexSingle | ( | const unsigned int & | wire, |
| const double & | tdc, | ||
| const unsigned int & | view | ||
| ) |
Take global wire, tdc (detector) and return index in fPE vector.
Definition at line 102 of file PixelMap.cxx.
| unsigned int cvn::PixelMap::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 93 of file PixelMap.cxx.
|
inline |
Number of inputs for the neural net.
Definition at line 41 of file PixelMap.h.
|
inline |
Total number of pixels in map.
Definition at line 35 of file PixelMap.h.
|
inline |
|
inline |
Length in wires.
Definition at line 29 of file PixelMap.h.
| void cvn::PixelMap::Print | ( | ) | const |
Draw pixel map to the screen. This is pretty hokey and the aspect ratio is totally unrealistic.
Definition at line 124 of file PixelMap.cxx.
|
inline |
Definition at line 67 of file PixelMap.h.
| TH2F * cvn::PixelMap::SingleViewToTH2 | ( | const unsigned int & | view | ) | const |
Definition at line 206 of file PixelMap.cxx.
| TH2F * cvn::PixelMap::ToLabTH2 | ( | ) | const |
Definition at line 186 of file PixelMap.cxx.
| TH2F * cvn::PixelMap::ToTH2 | ( | ) | const |
Return the pixel map as a 2D histogram for visualization.
Definition at line 166 of file PixelMap.cxx.
| Boundary cvn::PixelMap::fBound |
Definition at line 94 of file PixelMap.h.
| std::vector<HitType> cvn::PixelMap::fLab |
Vector of Truth labels for pixels.
Definition at line 88 of file PixelMap.h.
| std::vector<HitType> cvn::PixelMap::fLabX |
Vector of X Truth labels for pixels.
Definition at line 89 of file PixelMap.h.
| std::vector<HitType> cvn::PixelMap::fLabY |
Vector of Y Truth labels for pixels.
Definition at line 90 of file PixelMap.h.
| std::vector<HitType> cvn::PixelMap::fLabZ |
Vector of Y Truth labels for pixels.
Definition at line 91 of file PixelMap.h.
| unsigned int cvn::PixelMap::fNTdc |
Number of tdcs, width of pixel map.
Definition at line 79 of file PixelMap.h.
| unsigned int cvn::PixelMap::fNWire |
Number of wires, length of pixel map.
Definition at line 78 of file PixelMap.h.
| std::vector<float> cvn::PixelMap::fPE |
Vector of PE measurements for pixels.
Definition at line 80 of file PixelMap.h.
| std::vector<float> cvn::PixelMap::fPEX |
Vector of X PE measurements for pixels.
Definition at line 81 of file PixelMap.h.
| std::vector<float> cvn::PixelMap::fPEY |
Vector of Y PE measurements for pixels.
Definition at line 82 of file PixelMap.h.
| std::vector<float> cvn::PixelMap::fPEZ |
Vector of Y PE measurements for pixels.
Definition at line 83 of file PixelMap.h.
| std::vector<double> cvn::PixelMap::fPur |
Vector of purity for pixels.
Definition at line 84 of file PixelMap.h.
| std::vector<double> cvn::PixelMap::fPurX |
Vector of X purity for pixels.
Definition at line 85 of file PixelMap.h.
| std::vector<double> cvn::PixelMap::fPurY |
Vector of Y purity for pixels.
Definition at line 86 of file PixelMap.h.
| std::vector<double> cvn::PixelMap::fPurZ |
Vector of Y purity for pixels.
Definition at line 87 of file PixelMap.h.
| unsigned int cvn::PixelMap::fTotHits |
Number of hits that make up the pixel map.
Definition at line 92 of file PixelMap.h.
1.8.11