7 #ifndef LCVN_PIXELMAP_H 8 #define LCVN_PIXELMAP_H 44 void Add(
const unsigned int& wire,
46 const unsigned int& view,
52 const unsigned int& view);
55 unsigned int LocalToIndex(
const unsigned int& wire,
const unsigned int& tdc)
const;
60 const unsigned int& view);
73 std::vector<float>
fPE;
98 #endif // CVN_PIXELMAP_H 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.
unsigned int GetTotHits()
void FillInputVector(float *input) const
std::vector< float > fPE
Vector of PE measurements for pixels.
std::vector< HitType > fLab
Vector of Truth labels for pixels.
std::vector< double > fPurY
Vector of Y purity for pixels.
void SetTotHits(unsigned int tothits)
PixelMap, basic input to CVN neural net.
Utility class for truth labels.
std::vector< double > fPurX
Vector of X purity for pixels.
TH2F * ToTH2() const
Return the pixel map as a 2D histogram for visualization.
std::vector< double > fPur
Vector of purity for pixels.
unsigned int LocalToIndex(const unsigned int &wire, const unsigned int &tdc) const
Take local wire, tdc (within map) and return index in fPE vector.
std::vector< float > fPEX
Vector of X PE measurements for pixels.
unsigned int NWire() const
Length in wires.
std::vector< HitType > fLabX
Vector of X Truth labels for pixels.
std::vector< float > fPEZ
Vector of Y PE measurements for pixels.
std::ostream & operator<<(std::ostream &os, const Boundary &b)
std::vector< HitType > fLabZ
Vector of Y Truth labels for pixels.
std::vector< double > fPurZ
Vector of Y purity for pixels.
unsigned int fTotHits
Number of hits that make up the pixel map.
TH2F * SingleViewToTH2(const unsigned int &view) const
void Add(const unsigned int &wire, const double &tdc, const unsigned int &view, const double &pe)
Boundary Bound() const
Map boundary.
unsigned int NTdc() const
Width in tdcs.
unsigned int fNWire
Number of wires, length of pixel map.
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.
unsigned int NInput() const
Number of inputs for the neural net.
Boundary for CVN PixelMap.
std::vector< float > fPEY
Vector of Y PE measurements for pixels.
unsigned int fNTdc
Number of tdcs, width of pixel map.
unsigned int NPixel() const
Total number of pixels in map.
std::vector< HitType > fLabY
Vector of Y Truth labels for pixels.