ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkEvent
TrkEventPrimitives
src
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
9
#include "
TrkEventPrimitives/FitQuality.h
"
10
#include "GaudiKernel/MsgStream.h"
11
#include <string>
12
#include <ostream>
13
#include <sstream>
14
16
MsgStream&
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
24
std::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
FitQuality.h
Trk::FitQualityImpl
simple/trivial Implemenation class for fit the fit quality.
Definition
FitQuality.h:32
Trk::FitQualityImpl::numberDoF
int numberDoF() const
returns the number of degrees of freedom of the overall track or vertex fit as integer
Definition
FitQuality.h:60
Trk::FitQualityImpl::chiSquared
double chiSquared() const
returns the of the overall track fit
Definition
FitQuality.h:56
Trk::operator<<
MsgStream & operator<<(MsgStream &sl, const AlignModule &alignModule)
overload of << operator for MsgStream for debug output
Definition
AlignModule.cxx:204
Generated on
for ATLAS Offline Software by
1.17.0