ATLAS Offline Software
Public Types | Public Member Functions | Public Attributes | Static Private Attributes | List of all members
Trk::ExtrapolationCode Class Reference

#include <ExtrapolationCell.h>

Collaboration diagram for Trk::ExtrapolationCode:

Public Types

enum  eCode {
  Unset = 0, InProgress = 1, SuccessDestination = 2, SuccessBoundaryReached,
  SuccessPathLimit, SuccessMaterialLimit, Recovered = 6, FailureDestination = 7,
  FailureLoop = 8, FailureNavigation = 9, FailureUpdateKill = 10, FailureConfiguration = 11,
  LeftKnownWorld = 12
}
 

Public Member Functions

 ExtrapolationCode (eCode c)
 
ExtrapolationCodeoperator= (const eCode &ec)
 assigment operator - because we can More...
 
bool operator== (const eCode &ec) const
 == operator to eCode More...
 
bool operator!= (const eCode &ec) const
 != operator to eCode More...
 
bool inProgress () const
 return inProgress More...
 
bool isSuccess () const
 return success More...
 
bool isSuccessBeforeDestination () const
 return sucess other than destination reached More...
 
bool isSuccessOrRecovered () const
 return success or recovered More...
 
bool isFailure () const
 return failure More...
 
bool isFailureOrRecovered () const
 return failure or recovered More...
 
const std::string & toString () const
 toString More...
 

Public Attributes

eCode code
 the actual code More...
 

Static Private Attributes

static const std::vector< std::string > s_ecodeNames
 

Detailed Description

Author
Andreas.Salzburger -at- cern.ch

Definition at line 104 of file ExtrapolationCell.h.

Member Enumeration Documentation

◆ eCode

Enumerator
Unset 
InProgress 
SuccessDestination 
SuccessBoundaryReached 
SuccessPathLimit 
SuccessMaterialLimit 
Recovered 
FailureDestination 
FailureLoop 
FailureNavigation 
FailureUpdateKill 
FailureConfiguration 
LeftKnownWorld 

Definition at line 108 of file ExtrapolationCell.h.

109  {
110  Unset = 0, // no code set yet
111  InProgress = 1, // successful : extrapolation in process
112  SuccessDestination = 2, // successful : destination reached
114  3, // successful : boundary reached & configured to do so
116  4, // successful : path limit reached & configured to do so
118  5, // successful : material limit reached & configured to do so
119  Recovered = 6, // successful : recovered & configured to do so
120  FailureDestination = 7, // failure : could not reach destination
121  FailureLoop = 8, // failure : loop or oscillation between volumes
122  FailureNavigation = 9, // failure : general navigation failure
123  FailureUpdateKill = 10, // failure : updated track under threshold
124  FailureConfiguration = 11, // failure : general configuration failure
125  LeftKnownWorld = 12 // successful ? failure ? if we just knew ...
126  };

Constructor & Destructor Documentation

◆ ExtrapolationCode()

Trk::ExtrapolationCode::ExtrapolationCode ( eCode  c)
inline

Definition at line 132 of file ExtrapolationCell.h.

133  : code(c)
134  {}

Member Function Documentation

◆ inProgress()

bool Trk::ExtrapolationCode::inProgress ( ) const
inline

return inProgress

Definition at line 150 of file ExtrapolationCell.h.

150 { return (code == InProgress); }

◆ isFailure()

bool Trk::ExtrapolationCode::isFailure ( ) const
inline

return failure

Definition at line 168 of file ExtrapolationCell.h.

168 { return (code > Recovered); }

◆ isFailureOrRecovered()

bool Trk::ExtrapolationCode::isFailureOrRecovered ( ) const
inline

return failure or recovered

Definition at line 171 of file ExtrapolationCell.h.

171 { return (code > SuccessMaterialLimit); };

◆ isSuccess()

bool Trk::ExtrapolationCode::isSuccess ( ) const
inline

return success

Definition at line 153 of file ExtrapolationCell.h.

153 { return (code > InProgress && code < Recovered); }

◆ isSuccessBeforeDestination()

bool Trk::ExtrapolationCode::isSuccessBeforeDestination ( ) const
inline

return sucess other than destination reached

Definition at line 156 of file ExtrapolationCell.h.

157  {
158  return (code > SuccessDestination && code < Recovered);
159  }

◆ isSuccessOrRecovered()

bool Trk::ExtrapolationCode::isSuccessOrRecovered ( ) const
inline

return success or recovered

Definition at line 162 of file ExtrapolationCell.h.

163  {
164  return (code > InProgress && code <= FailureDestination);
165  }

◆ operator!=()

bool Trk::ExtrapolationCode::operator!= ( const eCode ec) const
inline

!= operator to eCode

Definition at line 147 of file ExtrapolationCell.h.

147 { return (ec != code); }

◆ operator=()

ExtrapolationCode& Trk::ExtrapolationCode::operator= ( const eCode ec)
inline

assigment operator - because we can

Definition at line 137 of file ExtrapolationCell.h.

138  {
139  code = ec;
140  return (*this);
141  }

◆ operator==()

bool Trk::ExtrapolationCode::operator== ( const eCode ec) const
inline

== operator to eCode

Definition at line 144 of file ExtrapolationCell.h.

144 { return (ec == code); }

◆ toString()

const std::string& Trk::ExtrapolationCode::toString ( ) const
inline

toString

Definition at line 174 of file ExtrapolationCell.h.

174 { return s_ecodeNames[code]; }

Member Data Documentation

◆ code

eCode Trk::ExtrapolationCode::code

the actual code

Definition at line 129 of file ExtrapolationCell.h.

◆ s_ecodeNames

const std::vector< std::string > Trk::ExtrapolationCode::s_ecodeNames
staticprivate
Initial value:
= {
"Unset",
"InProgress",
"SuccessDestination",
"SuccessBoundaryReached",
"SuccessPathLimit",
"SuccessMaterialLimit",
"Recovered",
"FailureDestination",
"FailureLoop",
"FailureNavigation",
"FailureUpdateKill",
"FailureConfiguration",
"LeftKnownWorld"
}

Definition at line 177 of file ExtrapolationCell.h.


The documentation for this class was generated from the following files:
Trk::ExtrapolationCode::Unset
@ Unset
Definition: ExtrapolationCell.h:110
Trk::ExtrapolationCode::FailureUpdateKill
@ FailureUpdateKill
Definition: ExtrapolationCell.h:123
Trk::ExtrapolationCode::SuccessBoundaryReached
@ SuccessBoundaryReached
Definition: ExtrapolationCell.h:113
Trk::ExtrapolationCode::SuccessDestination
@ SuccessDestination
Definition: ExtrapolationCell.h:112
Trk::ExtrapolationCode::FailureDestination
@ FailureDestination
Definition: ExtrapolationCell.h:120
Trk::ExtrapolationCode::Recovered
@ Recovered
Definition: ExtrapolationCell.h:119
Trk::ExtrapolationCode::FailureNavigation
@ FailureNavigation
Definition: ExtrapolationCell.h:122
Trk::ExtrapolationCode::LeftKnownWorld
@ LeftKnownWorld
Definition: ExtrapolationCell.h:125
Trk::ExtrapolationCode::SuccessPathLimit
@ SuccessPathLimit
Definition: ExtrapolationCell.h:115
Trk::ExtrapolationCode::s_ecodeNames
static const std::vector< std::string > s_ecodeNames
Definition: ExtrapolationCell.h:177
Trk::ExtrapolationCode::SuccessMaterialLimit
@ SuccessMaterialLimit
Definition: ExtrapolationCell.h:117
Trk::ExtrapolationCode::code
eCode code
the actual code
Definition: ExtrapolationCell.h:129
Trk::ExtrapolationCode::FailureConfiguration
@ FailureConfiguration
Definition: ExtrapolationCell.h:124
Trk::ExtrapolationCode::FailureLoop
@ FailureLoop
Definition: ExtrapolationCell.h:121
python.compressB64.c
def c
Definition: compressB64.py:93
Trk::ExtrapolationCode::InProgress
@ InProgress
Definition: ExtrapolationCell.h:111