Program Listing for File PyLArFlow.h

Return to documentation for file (larflow/Reco/PyLArFlow.h)

#ifndef __PY_LARFLOW_H__
#define __PY_LARFLOW_H__

#include <Python.h>
#include <vector>
#include "DataFormat/larflowcluster.h"

namespace larflow {
namespace reco {

  class PyLArFlow {
  public:
    PyLArFlow();
    virtual ~PyLArFlow() {};

    static PyObject* as_ndarray_larflowcluster_wcharge( const larlite::larflowcluster& lfcluster );
    static PyObject* as_ndarray_larflowcluster_wssnet(  const larlite::larflowcluster& lfcluster );
    static PyObject* as_ndarray_larflowcluster_wprob(   const larlite::larflowcluster& lfcluster );
    static PyObject* as_ndarray_larflowcluster_wdeadch( const larlite::larflowcluster& lfcluster );

    static PyLArFlow _g_instance;
    static bool      _g_once;
  protected:
    static int import_ndarray();
  };

}
}

#endif