15#include "GaudiKernel/SystemOfUnits.h"
21using Gaudi::Units::GeV;
31 const int ndf = vertex.NDF();
32 const double chi2 = vertex.Qual() * vertex.NDF();
33 if ( ndf > 0 &&
chi2 > 0. && ! std::isinf(
chi2 ) )
35 chi2Prob = TMath::Prob(
chi2,ndf);
42 double nominalTransversePosition,
double tilt )
45 return nominalTransversePosition + tan(tilt) * (Zref-nominalZPosition);
85 <<
"Vertex x +/- dx = " << vertex.X() <<
" +/- " << vertex.Xerr() <<
'\n'
86 <<
"Vertex y +/- dy = " << vertex.Y() <<
" +/- " << vertex.Yerr() <<
'\n'
87 <<
"Vertex z +/- dz = " << vertex.Z() <<
" +/- " << vertex.Zerr() <<
'\n'
88 <<
"Vertex N tracks = " << vertex.NTrks() <<
'\n'
89 <<
"Vertex fit mass = " << vertex.Mass() <<
'\n'
90 <<
"Vertex fit qual = " << vertex.Qual() <<
'\n'
91 <<
"Vertex fit prob = " << vertex.Chi2Prob() <<
'\n'
bool accumulate(AccumulateMap &map, std::vector< module_t > const &modules, FPGATrackSimMatrixAccumulator const &acc)
Accumulates an accumulator (e.g.
DataVector< Trk::Track > TrackCollection
This typedef represents a collection of Trk::Track objects.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
double chi2(TH1 *h0, TH1 *h1)
double tiltedBeamPositionAtZPoint(double Zref, double nominalZPosition, double nominalTransversePosition, double tilt)
double vertexChi2Prob(const T2Vertex &vertex)
double vertexSumPt2(const TrackCollection &tracks)
double vertexSumPt(const TrackCollection &tracks)
std::ostream & operator<<(std::ostream &os, const T2BeamSpot &beamSpot)
ParametersBase< TrackParametersDim, Charged > TrackParameters
double operator()(double x, const Trk::Track *track)
double operator()(const Trk::Track *track)
double operator()(const Trk::Track *track)