7 #ifndef REGCNN_REGPIXELMAP_H 8 #define REGCNN_REGPIXELMAP_H 25 RegPixelMap(
unsigned int nWire,
unsigned int nWRes,
unsigned int nTdc,
unsigned int nTRes,
const RegCNNBoundary& bound,
const bool& prongOnly);
53 void Add(
const int& wire,
const int& tdc,
const unsigned int& view,
const double& pe,
const unsigned int& tpc,
int hit_prong_tag);
55 void GetTPC(
const int& wire,
const int& tdc,
const unsigned int& view,
const unsigned int& tpc);
59 const unsigned int& view) ;
63 const unsigned int& tdc)
69 const unsigned int& view);
91 std::vector<float>
fPE;
116 #endif // CNN_PIXELMAP_H RegCNNBoundary Bound() const
Map boundary.
unsigned int GlobalToIndex(const int &wire, const int &tdc, const unsigned int &view)
Take global wire, tdc (detector) and return index in fPE vector.
std::vector< HitType > fLab
Vector of Truth labels for pixels.
unsigned int GlobalToIndexSingle(const int &wire, const int &tdc, const unsigned int &view)
Take global wire, tdc (detector) and return index in fPE vector.
unsigned int fNTdc
Number of tdcs, width of pixel map.
RegPixelMap, basic input to CNN neural net.
std::vector< int > fProngTagY
std::vector< int > fProngTagZ
unsigned int fNWire
Number of wires, length of pixel map.
std::vector< float > fPEZ
Vector of Y PE measurements for pixels.
void Add(const int &wire, const int &tdc, const unsigned int &view, const double &pe, const unsigned int &tpc, int hit_prong_tag)
std::vector< HitType > fLabY
Vector of Y Truth labels for pixels.
unsigned int NInput() const
Number of inputs for the neural net.
unsigned int NPixel() const
Total number of pixels in map.
std::vector< double > fPurY
Vector of Y purity for pixels.
TH2F * SingleViewToTH2(const unsigned int &view) const
std::vector< float > fPEX
Vector of X PE measurements for pixels.
std::vector< float > fPE
Vector of PE measurements for pixels.
std::vector< double > fPurX
Vector of X purity for pixels.
std::vector< float > fPEY
Vector of Y PE measurements for pixels.
unsigned int NTdc() const
Width in tdcs.
unsigned int NTRes() const
Number of Merged tdcs.
unsigned int NWire() const
Length in wires.
Defines an enumeration for cellhit classification.
std::vector< HitType > fLabX
Vector of X Truth labels for pixels.
RegCNNBoundary for RegCNN PixelMap modified from CVNBoundary.h.
std::vector< double > fPurZ
Vector of Y purity for pixels.
std::ostream & operator<<(std::ostream &os, const RegPixelMap3DProducer &p)
std::vector< HitType > fLabZ
Vector of Y Truth labels for pixels.
void GetTPC(const int &wire, const int &tdc, const unsigned int &view, const unsigned int &tpc)
TH2F * ToTH2() const
Return the pixel map as a 2D histogram for visualization.
void FillInputVector(float *input) const
std::vector< int > fProngTagX
unsigned int NWRes() const
Number of Merged wires.
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< double > fPur
Vector of purity for pixels.