10#include <tracking/trackFindingCDC/numerics/WithWeight.h>
12#include <genfit/MeasuredStateOnPlane.h>
13#include <Math/Vector3D.h>
29 template <
class ASeed,
class AHit>
39 template <
class AState>
45 m_seedMSoP(path.front()->getMeasuredStateOnPlane()),
48 m_hits.reserve(path.size());
51 const Hit* hit = state->getHit();
56 if (state->isFitted()) {
57 const double stateChi2 = state->getChi2();
75 const std::vector<const AHit*>&
getHits()
const
75 const std::vector<const AHit*>&
getHits()
const {
…}
135 const genfit::MeasuredStateOnPlane&
getMSoP()
const
135 const genfit::MeasuredStateOnPlane&
getMSoP()
const {
…}
double getMaximalChi2() const
Getter for the maximal chi2 of all stored hits. NAN means there is no valid chi2 at all.
AHit Hit
Copy hit definition.
CKFResult(const std::vector< TrackFindingCDC::WithWeight< const AState * > > &path, const genfit::MeasuredStateOnPlane &mSoP)
Constructor from the path of the result and the final mSoP, which defines the track position of the r...
genfit::MeasuredStateOnPlane m_mSoP
const ROOT::Math::XYZVector & getPosition() const
Get the position this track should start at.
const RecoTrack * getSeed() const
double getMinimalChi2() const
Getter for the minimal chi2 of all stored hits. NAN means there is no valid chi2 at all.
ROOT::Math::XYZVector m_trackMomentum
double getChi2() const
Getter for the chi2.
std::vector< const SpacePoint * > m_hits
TrackFindingCDC::Weight m_weightSum
const genfit::MeasuredStateOnPlane & getMSoP() const
Getter for the mSoP associated with this result.
const std::vector< const AHit * > & getHits() const
Getter for the stored hits.
ASeed Seed
Copy seed definition.
double getWeightSum() const
Getter for the sum of weights.
ROOT::Math::XYZVector m_trackPosition
genfit::MeasuredStateOnPlane m_seedMSoP
const genfit::MeasuredStateOnPlane & getSeedMSoP() const
Getter for the mSoP of the seed associated with this result.
const ROOT::Math::XYZVector & getMomentum() const
Get the momentum this track should start at (defined at the position)
A mixin class to attach a weight to an object.
Abstract base class for different kinds of events.