#include <SparsePixelMap.h>
|
| SparsePixelMap (unsigned int dim, unsigned int views, bool usePixelTruth=false) |
|
| SparsePixelMap () |
|
| ~SparsePixelMap () |
|
void | AddHit (unsigned int view, std::vector< float > coordinates, std::vector< float > features) |
| Default AddHit implementation, which just adds pixel value and coordinates. More...
|
|
void | AddHit (unsigned int view, std::vector< float > coordinates, std::vector< float > features, std::vector< int > pdgs, std::vector< int > tracks, std::vector< float > energies, std::vector< std::string > processes) |
| AddHit function that includes per-pixel truth labelling for segmentation. More...
|
|
unsigned int | GetDim () const |
|
unsigned int | GetViews () const |
|
std::vector< unsigned int > | GetNPixels () const |
|
unsigned int | GetNPixels (size_t view) const |
|
std::vector< std::vector< std::vector< float > > > | GetCoordinates () const |
|
std::vector< std::vector< float > > | GetCoordinates (size_t view) const |
|
std::vector< std::vector< std::vector< float > > > | GetFeatures () const |
|
std::vector< std::vector< float > > | GetFeatures (size_t view) const |
|
std::vector< std::vector< std::vector< int > > > | GetPixelPDGs () const |
|
std::vector< std::vector< int > > | GetPixelPDGs (size_t view) const |
|
std::vector< std::vector< std::vector< int > > > | GetPixelTrackIDs () const |
|
std::vector< std::vector< int > > | GetPixelTrackIDs (size_t view) const |
|
std::vector< std::vector< std::vector< float > > > | GetPixelEnergies () const |
|
std::vector< std::vector< float > > | GetPixelEnergies (size_t view) const |
|
std::vector< std::vector< std::vector< std::string > > > | GetProcesses () const |
|
std::vector< std::vector< std::string > > | GetProcesses (size_t view) const |
|
Definition at line 14 of file SparsePixelMap.h.
cvn::SparsePixelMap::SparsePixelMap |
( |
unsigned int |
dim, |
|
|
unsigned int |
views, |
|
|
bool |
usePixelTruth = false |
|
) |
| |
Definition at line 14 of file SparsePixelMap.cxx.
std::vector< std::vector< std::vector< std::string > > > fProcesses
unsigned int fViews
Number of views.
std::vector< std::vector< std::vector< int > > > fPixelPDGs
True particle PDG responsible for pixel.
std::vector< std::vector< std::vector< int > > > fPixelTrackIDs
G4 track IDs responsible for pixelel.
std::vector< std::vector< std::vector< float > > > fFeatures
Features of non-zero pixels.
std::vector< std::vector< std::vector< float > > > fCoordinates
Coordinates of non-zero pixels.
std::vector< std::vector< std::vector< float > > > fPixelEnergies
bool fUsePixelTruth
Whether to use a per-pixel ground truth for pixel segmentation.
unsigned int fDim
Dimensionality of each pixel map.
cvn::SparsePixelMap::SparsePixelMap |
( |
| ) |
|
|
inline |
cvn::SparsePixelMap::~SparsePixelMap |
( |
| ) |
|
|
inline |
void cvn::SparsePixelMap::AddHit |
( |
unsigned int |
view, |
|
|
std::vector< float > |
coordinates, |
|
|
std::vector< float > |
features |
|
) |
| |
Default AddHit implementation, which just adds pixel value and coordinates.
Definition at line 29 of file SparsePixelMap.cxx.
32 if (coordinates.size() !=
fDim) {
34 <<
"Coordinate vector with size " << coordinates.size()
35 <<
" does not match sparse pixel map dimension " <<
fDim;
40 <<
"Pixel truth is enabled for this SparsePixelMap, so you must include pixel PDG and " 41 <<
"track ID when calling AddHit.";
std::vector< std::vector< std::vector< float > > > fFeatures
Features of non-zero pixels.
std::vector< std::vector< std::vector< float > > > fCoordinates
Coordinates of non-zero pixels.
bool fUsePixelTruth
Whether to use a per-pixel ground truth for pixel segmentation.
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
unsigned int fDim
Dimensionality of each pixel map.
AddHit function that includes per-pixel truth labelling for segmentation.
Definition at line 49 of file SparsePixelMap.cxx.
53 if (coordinates.size() !=
fDim) {
55 <<
"Coordinate vector with size " << coordinates.size()
56 <<
" does not match sparse pixel map dimension " <<
fDim;
61 <<
"Pixel truth is disabled for this SparsePixelMap, but AddHit call includes " 62 <<
"pixel PDG, track ID and Energy";
std::vector< std::vector< std::vector< std::string > > > fProcesses
std::vector< std::vector< std::vector< int > > > fPixelPDGs
True particle PDG responsible for pixel.
std::vector< std::vector< std::vector< int > > > fPixelTrackIDs
G4 track IDs responsible for pixelel.
std::vector< std::vector< std::vector< float > > > fFeatures
Features of non-zero pixels.
std::vector< std::vector< std::vector< float > > > fCoordinates
Coordinates of non-zero pixels.
std::vector< std::vector< std::vector< float > > > fPixelEnergies
bool fUsePixelTruth
Whether to use a per-pixel ground truth for pixel segmentation.
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
unsigned int fDim
Dimensionality of each pixel map.
Definition at line 52 of file SparsePixelMap.h.
55 ret.insert(ret.end(), it.begin(), it.end());
Definition at line 29 of file SparsePixelMap.h.
std::vector< std::vector< std::vector< float > > > fCoordinates
Coordinates of non-zero pixels.
Definition at line 30 of file SparsePixelMap.h.
std::vector< std::vector< std::vector< float > > > fCoordinates
Coordinates of non-zero pixels.
unsigned int cvn::SparsePixelMap::GetDim |
( |
| ) |
const |
|
inline |
Definition at line 24 of file SparsePixelMap.h.
unsigned int fDim
Dimensionality of each pixel map.
Definition at line 32 of file SparsePixelMap.h.
std::vector< std::vector< std::vector< float > > > fFeatures
Features of non-zero pixels.
Definition at line 33 of file SparsePixelMap.h.
std::vector< std::vector< std::vector< float > > > fFeatures
Features of non-zero pixels.
std::vector< unsigned int > cvn::SparsePixelMap::GetNPixels |
( |
| ) |
const |
Definition at line 74 of file SparsePixelMap.cxx.
76 std::vector<unsigned int> ret(
fViews);
77 for (
size_t it = 0; it <
fViews; ++it) {
unsigned int fViews
Number of views.
std::vector< std::vector< std::vector< float > > > fFeatures
Features of non-zero pixels.
unsigned int cvn::SparsePixelMap::GetNPixels |
( |
size_t |
view | ) |
const |
|
inline |
Definition at line 27 of file SparsePixelMap.h.
std::vector< std::vector< std::vector< float > > > fFeatures
Features of non-zero pixels.
Definition at line 41 of file SparsePixelMap.h.
std::vector< std::vector< std::vector< float > > > fPixelEnergies
Definition at line 42 of file SparsePixelMap.h.
std::vector< std::vector< std::vector< float > > > fPixelEnergies
Definition at line 35 of file SparsePixelMap.h.
std::vector< std::vector< std::vector< int > > > fPixelPDGs
True particle PDG responsible for pixel.
Definition at line 36 of file SparsePixelMap.h.
std::vector< std::vector< std::vector< int > > > fPixelPDGs
True particle PDG responsible for pixel.
Definition at line 38 of file SparsePixelMap.h.
std::vector< std::vector< std::vector< int > > > fPixelTrackIDs
G4 track IDs responsible for pixelel.
Definition at line 39 of file SparsePixelMap.h.
std::vector< std::vector< std::vector< int > > > fPixelTrackIDs
G4 track IDs responsible for pixelel.
Definition at line 44 of file SparsePixelMap.h.
std::vector< std::vector< std::vector< std::string > > > fProcesses
Definition at line 45 of file SparsePixelMap.h.
std::vector< std::vector< std::vector< std::string > > > fProcesses
unsigned int cvn::SparsePixelMap::GetViews |
( |
| ) |
const |
|
inline |
unsigned int cvn::SparsePixelMap::fDim |
|
private |
bool cvn::SparsePixelMap::fUsePixelTruth |
|
private |
Whether to use a per-pixel ground truth for pixel segmentation.
Definition at line 62 of file SparsePixelMap.h.
unsigned int cvn::SparsePixelMap::fViews |
|
private |
The documentation for this class was generated from the following files: