ATLAS Offline Software
FitQualityOnSurface.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // FitQualityOnSurface.h, (c) ATLAS Detector software
8 
9 #ifndef TRKEVENTPRIMITIVES_FITQUALITYONSURFACE_H
10 #define TRKEVENTPRIMITIVES_FITQUALITYONSURFACE_H
11 
12 #include <iostream>
13 class MsgStream;
14 
16 
17 namespace Trk {
18 class FitQualityOnSurface final : public FitQualityImpl
19 {
20 public:
23  using FitQualityImpl::operator=;
29  ~FitQualityOnSurface() = default;
30 
31  // Needed for T/P since we used to have only
32  // FitQuality, this copies the payload
33  // we to the persistent type
34  // i.e FitQuality_p1.
37  {
38  }
39 
40  explicit operator bool() const
41  {
42  // we need to have set something
43  return (m_chiSquared != 0 || m_numberDoF != 0);
44  }
45 };
46 }
47 #endif // TRKEVENTPRIMITIVES_FITQUALITYONSURFACE_H
Trk::FitQualityImpl::FitQualityImpl
FitQualityImpl()=default
default ctor for POOL
Trk::FitQualityImpl::chiSquared
double chiSquared() const
returns the of the overall track fit
Definition: FitQuality.h:56
Trk::FitQualityOnSurface
Definition: FitQualityOnSurface.h:19
Trk::FitQualityOnSurface::FitQualityOnSurface
FitQualityOnSurface(const FitQualityImpl &fq)
Definition: FitQualityOnSurface.h:35
Trk::FitQualityImpl::setChiSquared
void setChiSquared(double chiSquared)
set the
Definition: FitQuality.h:71
Trk::FitQualityImpl::m_numberDoF
double m_numberDoF
Definition: FitQuality.h:82
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
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::FitQualityImpl::setNumberDoF
void setNumberDoF(double numberDoF)
set the number of degrees of freedom
Definition: FitQuality.h:74
Trk::FitQualityImpl
simple/trivial Implemenation class for fit the fit quality. It holds the same payload as FitQuality_p...
Definition: FitQuality.h:32
Trk::FitQualityImpl::m_chiSquared
double m_chiSquared
Definition: FitQuality.h:81
FitQuality.h
Trk::FitQualityOnSurface::~FitQualityOnSurface
~FitQualityOnSurface()=default
xAOD::bool
setBGCode setTAP setLVL2ErrorBits bool
Definition: TrigDecision_v1.cxx:60
Trk::FitQualityImpl::doubleNumberDoF
double doubleNumberDoF() const
returns the number of degrees of freedom of the overall track or vertex fit as double
Definition: FitQuality.h:68