ATLAS Offline Software
FitProcedureQuality.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /***************************************************************************
6  quality variables produced during fit procedure
7  ***************************************************************************/
8 
9 #ifndef TRKIPATFITTERUTILS_FITPROCEDUREQUALITY_H
10 #define TRKIPATFITTERUTILS_FITPROCEDUREQUALITY_H
11 
12 //<<<<<< INCLUDES >>>>>>
13 //<<<<<< CLASS DECLARATIONS >>>>>>
14 
15 class MsgStream;
16 
17 namespace Trk {
18 
20  public:
22 
23  FitProcedureQuality(double chiSq, double chiSqWorst, double fitProbability,
24  int fitCode, int iterations, int numberAlignments,
25  int numberDoF, int numberScatterers,
26  int worstMeasurement);
27 
29 
30  // implicit copy constructor
31  // implicit assignment operator
32 
33  double chiSq(void) const;
34  double chiSqWorst(void) const;
35  double fitProbability(void) const;
36  int fitCode(void) const;
37  int iterations(void) const;
38  int numberDoF(void) const;
39  void print(MsgStream& log) const;
40  int worstMeasurement(void) const;
41 
42  private:
43  double m_chiSq;
44  double m_chiSqWorst;
46  int m_fitCode;
52 };
53 
54 //<<<<<< INLINE CLASS STRUCTURE INITIALIZATION >>>>>>
55 
56 inline FitProcedureQuality::FitProcedureQuality(int fitCode, int numberDoF)
57  : m_chiSq(0.),
58  m_chiSqWorst(0.),
59  m_fitProbability(0.),
60  m_fitCode(fitCode),
61  m_iterations(0),
62  m_numberAlignments(0),
63  m_numberDoF(numberDoF),
64  m_numberScatterers(0),
65  m_worstMeasurement(0) {}
66 
68  double chiSq, double chiSqWorst, double fitProbability, int fitCode,
69  int iterations, int numberAlignments, int numberDoF, int numberScatterers,
70  int worstMeasurement)
71  : m_chiSq(chiSq),
72  m_chiSqWorst(chiSqWorst),
73  m_fitProbability(fitProbability),
74  m_fitCode(fitCode),
75  m_iterations(iterations),
76  m_numberAlignments(numberAlignments),
77  m_numberDoF(numberDoF),
78  m_numberScatterers(numberScatterers),
79  m_worstMeasurement(worstMeasurement) {}
80 
82 
83 //<<<<<< INLINE PUBLIC FUNCTIONS >>>>>>
84 //<<<<<< INLINE PRIVATE MEMBER FUNCTIONS >>>>>>
85 
86 inline double FitProcedureQuality::chiSq(void) const {
87  return m_chiSq;
88 }
89 
90 inline double FitProcedureQuality::chiSqWorst(void) const {
91  return m_chiSqWorst;
92 }
93 
94 inline double FitProcedureQuality::fitProbability(void) const {
95  return m_fitProbability;
96 }
97 
98 inline int FitProcedureQuality::fitCode(void) const {
99  return m_fitCode;
100 }
101 
102 inline int FitProcedureQuality::iterations(void) const {
103  return m_iterations;
104 }
105 
106 inline int FitProcedureQuality::numberDoF(void) const {
107  return m_numberDoF;
108 }
109 
111  return m_worstMeasurement;
112 }
113 
114 } // namespace Trk
115 
116 #endif // TRKIPATFITTERUTILS_FITPROCEDUREQUALITY_H
Trk::FitProcedureQuality::worstMeasurement
int worstMeasurement(void) const
Definition: FitProcedureQuality.h:110
Trk::FitProcedureQuality::print
void print(MsgStream &log) const
Definition: FitProcedureQuality.cxx:20
Trk::FitProcedureQuality::m_worstMeasurement
int m_worstMeasurement
Definition: FitProcedureQuality.h:51
Trk::FitProcedureQuality::fitCode
int fitCode(void) const
Definition: FitProcedureQuality.h:98
Trk::FitProcedureQuality::m_fitProbability
double m_fitProbability
Definition: FitProcedureQuality.h:45
Trk::FitProcedureQuality::chiSq
double chiSq(void) const
Definition: FitProcedureQuality.h:86
Trk::FitProcedureQuality::m_chiSqWorst
double m_chiSqWorst
Definition: FitProcedureQuality.h:44
Trk::FitProcedureQuality::iterations
int iterations(void) const
Definition: FitProcedureQuality.h:102
Trk::FitProcedureQuality
Definition: FitProcedureQuality.h:19
Trk::FitProcedureQuality::numberDoF
int numberDoF(void) const
Definition: FitProcedureQuality.h:106
Trk::FitProcedureQuality::m_numberDoF
int m_numberDoF
Definition: FitProcedureQuality.h:49
Trk::FitProcedureQuality::chiSqWorst
double chiSqWorst(void) const
Definition: FitProcedureQuality.h:90
Trk::FitProcedureQuality::FitProcedureQuality
FitProcedureQuality(int fitCode, int numberDoF)
Definition: FitProcedureQuality.h:56
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::FitProcedureQuality::m_numberScatterers
int m_numberScatterers
Definition: FitProcedureQuality.h:50
Trk::FitProcedureQuality::m_numberAlignments
int m_numberAlignments
Definition: FitProcedureQuality.h:48
Trk::FitProcedureQuality::m_fitCode
int m_fitCode
Definition: FitProcedureQuality.h:46
Trk::FitProcedureQuality::~FitProcedureQuality
~FitProcedureQuality(void)
Definition: FitProcedureQuality.h:81
Trk::FitProcedureQuality::fitProbability
double fitProbability(void) const
Definition: FitProcedureQuality.h:94
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
Trk::FitProcedureQuality::m_chiSq
double m_chiSq
Definition: FitProcedureQuality.h:43
Trk::FitProcedureQuality::m_iterations
int m_iterations
Definition: FitProcedureQuality.h:47