ATLAS Offline Software
Loading...
Searching...
No Matches
FitQuality.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
6// FitQuality.cxx (c) ATLAS Detector software
8
10#include "GaudiKernel/MsgStream.h"
11#include <string>
12#include <ostream>
13#include <sstream>
14
16MsgStream& Trk::operator<<(MsgStream& sl, const Trk::FitQualityImpl& fq)
17{
18 std::ostringstream os;
19 os<<fq;
20 sl<<os.str();
21 return sl;
22}
23
24std::ostream& Trk::operator << ( std::ostream& sl, const Trk::FitQualityImpl& fq)
25{
26 const std::streamsize old_prec = sl.precision();
27 const auto old_flags = sl.flags();
28 sl << std::setiosflags(std::ios::fixed)<< std::setprecision(3);
29 sl <<"FitQuality: \t"
30 << "("<<fq.chiSquared()<<", \t"<<fq.numberDoF()<<")\t"
31 << "(chi^2, ndf)";
32 sl.flags(old_flags);
33 sl.precision(old_prec);
34 return sl;
35}
36
simple/trivial Implemenation class for fit the fit quality.
Definition FitQuality.h:32
int numberDoF() const
returns the number of degrees of freedom of the overall track or vertex fit as integer
Definition FitQuality.h:60
double chiSquared() const
returns the of the overall track fit
Definition FitQuality.h:56
MsgStream & operator<<(MsgStream &sl, const AlignModule &alignModule)
overload of << operator for MsgStream for debug output