Class NuVertexFitter¶
- Defined in File NuVertexFitter.h
Class Documentation¶
-
class
NuVertexFitter
: public larcv_base¶ optimize the position of the proposed vertex based on surrounding prongs
Inputs:
- vertex candidate locations (from NuVertexMaker)
- clusters associated to the cluster (clusters from various algorithms, but associated clusters from NuVertexMaker)
Outputs:
- optimized vertex location
- prongs
Optimization performed using a least squares fit weighted by charge and larmatch confidence. And a weak prior based on the original vertex location.
Public Functions
-
NuVertexFitter
()¶
-
virtual
~NuVertexFitter
()¶
-
void
process
(larcv::IOManager &iolcv, larlite::storage_manager &ioll, const std::vector<larflow::reco::NuVertexCandidate> &vertex_v)¶ process event vertices
- Parameters
iolcv
: LArCV IOManager containing event dataioll
: larlite storage_manager containing event datavertex_v
: Neutrino vertex candidates to fit
-
const std::vector<std::vector<float>> &
get_fitted_pos
()¶ get fitted positions for all vertices provided
Protected Functions
-
void
_fit_vertex
(const std::vector<float> &initial_vertex_pos, const std::vector<Prong_t> &prong_v, std::vector<float> &fitted_pos, float &delta_loss)¶ Fit one vertex.
- Parameters
initial_vertex_pos
: Vertex position before the fitprong_v
: List of prongs assigned to this vertexfitted_pos
: Vertex position after the fitdelta_loss
: Change in the loss from initial point to final vere
Protected Attributes
-
std::vector<std::vector<float>>
_fitted_pos_v
¶ container of fitted positions for each vertex
-
struct
Prong_t
¶ Internal struct representing prongs coming from vertex.
Public Members
-
std::vector<std::vector<float>>
feat_v
¶ stores vectors with (x,y,z,lm,q)
-
const larlite::larflowcluster *
orig_cluster
¶ pointer to larflowcluster feat_v derives from
-
const larlite::pcaxis *
orig_pcaxis
¶ pointer to principle component analysis of orig_cluster
-
std::vector<float>
endpt
¶ end position
-
std::vector<float>
startpt
¶ start position
-
std::vector<std::vector<float>>