VertexAssnMeta.h
Go to the documentation of this file.
1 #ifndef VERTEXASSNMETA_H
2 #define VERTEXASSNMETA_H
3 
4 namespace recob {
5 
6  /**
7  * @file lardataobj/RecoBase/VertexAssnMeta.h
8  * @class recob::VertexAssnMeta
9  *
10  * @brief Class storing the meta-data for track-vertex association: status, propagation distance, impact parameter, impact parameter error, chi2.
11  *
12  * The status is meant to describe if and how the track was used in the vertex fit.
13  * The values of the parameters (propagation distance, impact parameter, impact parameter error, chi2) should be computed in an unbiased way,
14  * i.e. with respect to the vertex re-fitted without using the specific associated track.
15  * A method is also provided to retrieve the impact parameter significance.
16  *
17  * @author G. Cerati (FNAL, MicroBooNE)
18  * @date 2017
19  * @version 1.0
20  */
21 
23  public:
26  VertexAssnMeta(float pD, float iP, float iPErr, float c2, VertexAssnStatus st)
27  : propDist_(pD), impactParam_(iP), impactParamErr_(iPErr), chi2_(c2), status_(st) {}
28  float propDist() const { return propDist_; }
29  float impactParam() const { return impactParam_; }
30  float impactParamErr() const { return impactParamErr_; }
31  float impactParamSig() const { return impactParam_/impactParamErr_; }
32  float chi2() const { return chi2_; }
33  VertexAssnStatus status() const { return status_; }
34  void updateStatus(const VertexAssnStatus& newstatus) { status_ = newstatus; }
35  private:
36  float propDist_;
37  float impactParam_;
39  float chi2_;
41  };
42 
43 }
44 
45 #endif
void updateStatus(const VertexAssnStatus &newstatus)
Reconstruction base classes.
float propDist() const
float impactParamSig() const
float chi2() const
float impactParamErr() const
Class storing the meta-data for track-vertex association: status, propagation distance, impact parameter, impact parameter error, chi2.
VertexAssnMeta(float pD, float iP, float iPErr, float c2, VertexAssnStatus st)
float impactParam() const
VertexAssnStatus status_
VertexAssnStatus status() const