ATLAS Offline Software
FitterStatusCode.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /***************************************************************************
6  FitterStatusCode.h - description
7  -------------------
8  email : sebastian.fleischmann -at- cern.ch
9  ***************************************************************************/
10 
11 
12 #ifndef TRKFITTERSTATUSCODE_H
13 #define TRKFITTERSTATUSCODE_H
14 
15 #include "GaudiKernel/StatusCode.h"
16 #include <string>
17 #include <iostream>
18 
19 class MsgStream;
20 
21 namespace Trk {
22 
23 
24 
33  //class FitterStatusCode : public StatusCode
34 {
35 public:
37  enum FitCode {
38  Success = 0,
40  BadInput = 2,
53  SeedFailure = 15,
58 
59  };
62 
67 
68  bool isFailure() const;
69 
70  // /** Comparison operator*/
71  // friend bool operator< ( const FitterStatusCode& a, const FitterStatusCode& b );
72 
73  // /** Comparison operator*/
74  // friend bool operator> ( const FitterStatusCode& a, const FitterStatusCode& b );
75 
77  operator unsigned long() const;
78 
80  operator StatusCode() const;
81 
83  unsigned long getCode() const;
84 
86  std::string getString() const;
87 
88 private: // data members
90  unsigned long m_code;
91 
92 };
93 
94 
95 }
96 
97 MsgStream& operator<<(MsgStream& out, const Trk::FitterStatusCode& fitStatCode);
98 
99 std::ostream& operator<<(std::ostream& out, const Trk::FitterStatusCode& fitStatCode);
100 
101 #endif //TRKFITTERSTATUSCODE_H
102 
Trk::FitterStatusCode::FitCode
FitCode
fitter status codes
Definition: FitterStatusCode.h:37
Trk::FitterStatusCode::MatrixInversionFailure
@ MatrixInversionFailure
Definition: FitterStatusCode.h:54
Trk::FitterStatusCode::ForwardFilterFailure
@ ForwardFilterFailure
forward filter failed
Definition: FitterStatusCode.h:50
Trk::FitterStatusCode::SeedFailure
@ SeedFailure
wrong seed, not recoverable or recovery off.
Definition: FitterStatusCode.h:53
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
operator<<
MsgStream & operator<<(MsgStream &out, const Trk::FitterStatusCode &fitStatCode)
Definition: FitterStatusCode.cxx:85
Trk::FitterStatusCode::CombineStatesFailure
@ CombineStatesFailure
fit states could not be combined
Definition: FitterStatusCode.h:46
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Trk::FitterStatusCode::Success
@ Success
fit successfull
Definition: FitterStatusCode.h:38
Trk::FitterStatusCode::ExtrapolationFailure
@ ExtrapolationFailure
extrapolation failed
Definition: FitterStatusCode.h:44
Trk::FitterStatusCode
Status codes for track fitters.
Definition: FitterStatusCode.h:34
Trk::FitterStatusCode::StraightTrackModelUsed
@ StraightTrackModelUsed
fit successfull, but straight track model was used
Definition: FitterStatusCode.h:39
Trk::FitterStatusCode::ExtrapolationFailureDueToSmallMomentum
@ ExtrapolationFailureDueToSmallMomentum
extrapolation failed due to small momentum
Definition: FitterStatusCode.h:45
Trk::FitterStatusCode::MissingCovariance
@ MissingCovariance
covariance missed
Definition: FitterStatusCode.h:43
Trk::FitterStatusCode::NumberOfStatusCodes
@ NumberOfStatusCodes
number of different status codes
Definition: FitterStatusCode.h:57
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::FitterStatusCode::FewFittableMeasurements
@ FewFittableMeasurements
number of fittable measurements on trajectory too small
Definition: FitterStatusCode.h:52
Trk::FitterStatusCode::NoConvergence
@ NoConvergence
Definition: FitterStatusCode.h:55
Trk::FitterStatusCode::WeaklyConstraintPars
@ WeaklyConstraintPars
parameters only weakly constrained
Definition: FitterStatusCode.h:47
Trk::FitterStatusCode::InvalidAngles
@ InvalidAngles
Definition: FitterStatusCode.h:56
Trk::FitterStatusCode::m_code
unsigned long m_code
fitter status code
Definition: FitterStatusCode.h:90
Trk::FitterStatusCode::PerigeeMakingFailure
@ PerigeeMakingFailure
perigee could not be produced
Definition: FitterStatusCode.h:49
Trk::FitterStatusCode::getString
std::string getString() const
Get the status code as descriptive string.
Definition: FitterStatusCode.cxx:41
Trk::FitterStatusCode::getCode
unsigned long getCode() const
Get the status code by value.
Definition: FitterStatusCode.cxx:37
Trk::FitterStatusCode::FitQualityFailure
@ FitQualityFailure
fit quality production failed
Definition: FitterStatusCode.h:42
Trk::FitterStatusCode::BadInput
@ BadInput
bad input
Definition: FitterStatusCode.h:40
Trk::FitterStatusCode::UpdateFailure
@ UpdateFailure
parameter update failed
Definition: FitterStatusCode.h:41
Trk::FitterStatusCode::SmootherFailure
@ SmootherFailure
smoother failed
Definition: FitterStatusCode.h:51
Trk::FitterStatusCode::FitterStatusCode
FitterStatusCode()
default constructor
Definition: FitterStatusCode.cxx:15
Trk::FitterStatusCode::isFailure
bool isFailure() const
Definition: FitterStatusCode.cxx:25
Trk::FitterStatusCode::OutlierLogicFailure
@ OutlierLogicFailure
outlier logic failed
Definition: FitterStatusCode.h:48