Class PyLArFlow¶
- Defined in File PyLArFlow.h
Class Documentation¶
-
class
PyLArFlow
¶ singleton providing python bindings to support conversion of larflow information, mostly for plotting in plotly
Public Static Functions
-
PyObject *
as_ndarray_larflowcluster_wcharge
(const larlite::larflowcluster &lfcluster)¶ return number array with hit positions and charge of a given larflowcluster instance
The array returned will have the shape (N,4) where N is the number of hits in the cluster. The second dimension has values for (x,y,z,charge). The charge value returned is the average charge across the three planes.
- Return
- numpy array
- Parameters
lfcluster
: Cluster whose hits we return values
-
PyObject *
as_ndarray_larflowcluster_wssnet
(const larlite::larflowcluster &lfcluster)¶ return number array with hit positions and ssnet score of a given larflowcluster instance
The array returned will have the shape (N,4) where N is the number of hits in the cluster. The second dimension has values for (x,y,z,shower score).
- Return
- numpy array
- Parameters
lfcluster
: Cluster whose hits we return values
-
PyObject *
as_ndarray_larflowcluster_wprob
(const larlite::larflowcluster &lfcluster)¶ return number array with hit positions and larmatch score of a given larflowcluster instance
The array returned will have the shape (N,4) where N is the number of hits in the cluster. The second dimension has values for (x,y,z,larmatch score).
- Return
- numpy array
- Parameters
lfcluster
: Cluster whose hits we return values
-
PyObject *
as_ndarray_larflowcluster_wdeadch
(const larlite::larflowcluster &lfcluster)¶ return number array with hit positions and value to indicate if point is on a dead channel
The array returned will have the shape (N,4) where N is the number of hits in the cluster. The second dimension has values for (x,y,z,DCH). DCH is 10.0 is there is charge in all three planes and 5.0 if not.
- Return
- numpy array
- Parameters
lfcluster
: Cluster whose hits we return values
Public Static Attributes
-
bool
_g_once
= false¶ flag indicating that we’ve called import_numpy to setup numpy environment
Protected Static Functions
-
int
import_ndarray
()¶ call import_numpy to setup numpy environment
setup numpy environment
-
PyObject *