Public Member Functions | |
PointIdAlgTf (fhicl::Table< Config > const &table) | |
std::vector< float > | Run (std::vector< std::vector< float >> const &inp2d) const override |
std::vector< std::vector< float > > | Run (std::vector< std::vector< std::vector< float >>> const &inps, int samples=-1) const override |
![]() | |
virtual | ~IPointIdAlg () noexcept=default |
float | predictIdValue (unsigned int wire, float drift, size_t outIdx=0) |
std::vector< float > | predictIdVector (unsigned int wire, float drift) |
std::vector< std::vector< float > > | predictIdVectors (const std::vector< std::pair< unsigned int, float >> &points) |
std::vector< std::string > const & | outputLabels (void) const |
bool | isInsideFiducialRegion (unsigned int wire, float drift) const |
![]() | |
DataProviderAlg (const fhicl::ParameterSet &pset) | |
DataProviderAlg (const Config &config) | |
virtual | ~DataProviderAlg () |
bool | setWireDriftData (const detinfo::DetectorClocksData &clock_data, const detinfo::DetectorPropertiesData &det_prop, const std::vector< recob::Wire > &wires, unsigned int plane, unsigned int tpc, unsigned int cryo) |
std::vector< float > const & | wireData (size_t widx) const |
std::vector< std::vector< float > > | getPatch (size_t wire, float drift, size_t patchSizeW, size_t patchSizeD) const |
float | getPixelOrZero (int wire, int drift) const |
double | getAdcSum () const |
size_t | getAdcArea () const |
float | poolMax (int wire, int drift, size_t r=0) const |
Pool max value in a patch around the wire/drift pixel. More... | |
unsigned int | Cryo () const |
Pool sum of pixels in a patch around the wire/drift pixel. More... | |
unsigned int | TPC () const |
unsigned int | Plane () const |
unsigned int | NWires () const |
unsigned int | NScaledDrifts () const |
unsigned int | NCachedDrifts () const |
unsigned int | DriftWindow () const |
float | ZeroLevel () const |
Level of zero ADC after scaling. More... | |
double | LifetimeCorrection (detinfo::DetectorClocksData const &clock_data, detinfo::DetectorPropertiesData const &det_prop, double tick) const |
Protected Member Functions | |
std::string | findFile (const char *fileName) const |
![]() | |
bool | bufferPatch (size_t wire, float drift, std::vector< std::vector< float >> &patch) |
bool | bufferPatch (size_t wire, float drift) |
void | resizePatch (void) |
![]() | |
std::vector< float > | downscaleMax (std::size_t dst_size, std::vector< float > const &adc, size_t tick0) const |
std::vector< float > | downscaleMaxMean (std::size_t dst_size, std::vector< float > const &adc, size_t tick0) const |
std::vector< float > | downscaleMean (std::size_t dst_size, std::vector< float > const &adc, size_t tick0) const |
std::vector< float > | downscale (std::size_t dst_size, std::vector< float > const &adc, size_t tick0) const |
size_t | getDriftIndex (float drift) const |
std::optional< std::vector< float > > | setWireData (std::vector< float > const &adc, size_t wireIdx) const |
bool | patchFromDownsampledView (size_t wire, float drift, size_t size_w, size_t size_d, std::vector< std::vector< float >> &patch) const |
bool | patchFromOriginalView (size_t wire, float drift, size_t size_w, size_t size_d, std::vector< std::vector< float >> &patch) const |
virtual DataProviderAlgView | resizeView (detinfo::DetectorClocksData const &clock_data, detinfo::DetectorPropertiesData const &det_prop, size_t wires, size_t drifts) |
Private Attributes | |
std::unique_ptr< tf::Graph > | g |
std::vector< std::string > | fNNetOutputPattern |
std::string | fNNetModelFilePath |
Additional Inherited Members | |
![]() | |
enum | EDownscaleMode { kMax = 1, kMaxMean = 2, kMean = 3 } |
![]() | |
std::vector< std::string > | fNNetOutputs |
size_t | fPatchSizeW |
size_t | fPatchSizeD |
std::vector< std::vector< float > > | fWireDriftPatch |
size_t | fCurrentWireIdx |
size_t | fCurrentScaledDrift |
![]() | |
DataProviderAlgView | fAlgView |
EDownscaleMode | fDownscaleMode |
size_t | fDriftWindow |
bool | fDownscaleFullView |
float | fDriftWindowInv |
calo::CalorimetryAlg | fCalorimetryAlg |
geo::GeometryCore const * | fGeometry |
Definition at line 20 of file PointIdAlgTf_tool.cc.
|
explicit |
Definition at line 38 of file PointIdAlgTf_tool.cc.
|
protected |
Definition at line 74 of file PointIdAlgTf_tool.cc.
|
overridevirtual |
|
overridevirtual |
|
private |
Definition at line 34 of file PointIdAlgTf_tool.cc.
|
private |
Definition at line 33 of file PointIdAlgTf_tool.cc.
|
private |
Definition at line 32 of file PointIdAlgTf_tool.cc.