BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
Consistency Class Reference

#include <Consistency.h>

+ Inheritance diagram for Consistency:

Public Types

enum  ConsistentStatus {
  OK =0 , noMeasure , underFlow , unPhysical ,
  OK =0 , noMeasure , underFlow , unPhysical
}
 
enum  ConsistentSign {
  left =-1 , unknown =0 , right =1 , left =-1 ,
  unknown =0 , right =1
}
 
enum  ConsistentStatus {
  OK =0 , noMeasure , underFlow , unPhysical ,
  OK =0 , noMeasure , underFlow , unPhysical
}
 
enum  ConsistentSign {
  left =-1 , unknown =0 , right =1 , left =-1 ,
  unknown =0 , right =1
}
 

Public Member Functions

 Consistency ()
 
 Consistency (double consistency, double likelihood=0.)
 
 Consistency (const Consistency &rhs)
 
virtual ~Consistency ()
 
Consistencyoperator= (const Consistency &rhs)
 
bool operator== (const Consistency &rhs) const
 
bool operator< (const Consistency &rhs) const
 
bool operator> (const Consistency &rhs) const
 
double significanceLevel () const
 
double likelihood () const
 
double consistency () const
 
ConsistentStatus status () const
 
void setStatus (ConsistentStatus s)
 
ConsistentSign sign () const
 
void setSign (ConsistentSign s)
 
virtual const ConsistencySet * genealogy () const
 
virtual void print (std::ostream &) const
 
 Consistency ()
 
 Consistency (double consistency, double likelihood=0.)
 
 Consistency (const Consistency &rhs)
 
virtual ~Consistency ()
 
Consistencyoperator= (const Consistency &rhs)
 
bool operator== (const Consistency &rhs) const
 
bool operator< (const Consistency &rhs) const
 
bool operator> (const Consistency &rhs) const
 
double significanceLevel () const
 
double likelihood () const
 
double consistency () const
 
ConsistentStatus status () const
 
void setStatus (ConsistentStatus s)
 
ConsistentSign sign () const
 
void setSign (ConsistentSign s)
 
virtual const ConsistencySet * genealogy () const
 
virtual void print (std::ostream &) const
 

Static Public Member Functions

static const ConsistencybadMeasurement ()
 
static const ConsistencybadMeasurement ()
 

Protected Attributes

ConsistentStatus _stat
 
ConsistentSign _sign
 
double _value
 
double _likelihood
 

Detailed Description

Member Enumeration Documentation

◆ ConsistentSign [1/2]

◆ ConsistentSign [2/2]

Enumerator
left 
unknown 
right 
left 
unknown 
right 

Definition at line 114 of file Reconstruction/MdcPatRec/ProbTools/ProbTools-00-00-01/ProbTools/Consistency.h.

114{ left=-1, unknown=0, right=1 };

◆ ConsistentStatus [1/2]

◆ ConsistentStatus [2/2]

Enumerator
OK 
noMeasure 
underFlow 
unPhysical 
OK 
noMeasure 
underFlow 
unPhysical 

Definition at line 94 of file Reconstruction/MdcPatRec/ProbTools/ProbTools-00-00-01/ProbTools/Consistency.h.

Constructor & Destructor Documentation

◆ Consistency() [1/6]

◆ Consistency() [2/6]

Consistency::Consistency ( double  consistency,
double  likelihood = 0. 
)

Definition at line 59 of file Consistency.cxx.

61{
62}
**********Class see also m_nmax DOUBLE PRECISION m_amel DOUBLE PRECISION m_x2 DOUBLE PRECISION m_alfinv DOUBLE PRECISION m_Xenph INTEGER m_KeyWtm INTEGER m_idyfs DOUBLE PRECISION m_zini DOUBLE PRECISION m_q2 DOUBLE PRECISION m_Wt_KF DOUBLE PRECISION m_WtCut INTEGER m_KFfin *COMMON c_KarLud $ !Input CMS energy[GeV] $ !CMS energy after beam spread beam strahlung[GeV] $ !Beam energy spread[GeV] $ !z boost due to beam spread $ !electron beam mass *ff pair spectrum $ !minimum v
Definition: KarLud.h:35

◆ Consistency() [3/6]

Consistency::Consistency ( const Consistency rhs)

Definition at line 64 of file Consistency.cxx.

65 : _stat(rhs._stat), _value(rhs._value)
67{
68}

◆ ~Consistency() [1/2]

virtual Consistency::~Consistency ( )
inlinevirtual

◆ Consistency() [4/6]

Consistency::Consistency ( )

◆ Consistency() [5/6]

Consistency::Consistency ( double  consistency,
double  likelihood = 0. 
)

◆ Consistency() [6/6]

Consistency::Consistency ( const Consistency rhs)

◆ ~Consistency() [2/2]

virtual Consistency::~Consistency ( )
inlinevirtual

Member Function Documentation

◆ badMeasurement() [1/2]

const Consistency & Consistency::badMeasurement ( )
static

Definition at line 172 of file Consistency.cxx.

173{
174 static Consistency bad(1.,1.);
175 bad.setStatus(noMeasure);
176
177 return bad;
178}

◆ badMeasurement() [2/2]

static const Consistency & Consistency::badMeasurement ( )
static

◆ consistency() [1/2]

double Consistency::consistency ( ) const
inline

Definition at line 91 of file InstallArea/include/ProbTools/ProbTools/Consistency.h.

91{ return _value; }

◆ consistency() [2/2]

double Consistency::consistency ( ) const
inline

◆ genealogy() [1/2]

const ConsistencySet * Consistency::genealogy ( ) const
virtual

Definition at line 132 of file Consistency.cxx.

133{
134 return 0;
135}

◆ genealogy() [2/2]

virtual const ConsistencySet * Consistency::genealogy ( ) const
virtual

◆ likelihood() [1/2]

double Consistency::likelihood ( ) const
inline

Definition at line 86 of file InstallArea/include/ProbTools/ProbTools/Consistency.h.

86{ return _likelihood;}

◆ likelihood() [2/2]

double Consistency::likelihood ( ) const
inline

◆ operator<() [1/2]

bool Consistency::operator< ( const Consistency rhs) const

Definition at line 97 of file Consistency.cxx.

99{
100 //
101 // this is not unique...
102 //
103
104 bool answer = false;
105 if (_stat == OK && rhs._stat == OK ) {
106 //
107 // Dare to use consistency for comparison.
108 // Likelihood may give a different answer
109 //
110 if (_value < rhs._value) {
111 answer = true;
112 }
113 } else {
114 if (rhs._stat == OK) {
115 answer = true;
116 }
117 }
118
119 return answer;
120}

◆ operator<() [2/2]

bool Consistency::operator< ( const Consistency rhs) const

◆ operator=() [1/2]

Consistency & Consistency::operator= ( const Consistency rhs)

Definition at line 72 of file Consistency.cxx.

73{
74 if(this != &rhs){
75 _stat=rhs._stat;
76 _value=rhs._value;
78 _sign=rhs._sign;
79 }
80 return *this;
81}

Referenced by ChisqConsistency::operator=().

◆ operator=() [2/2]

Consistency & Consistency::operator= ( const Consistency rhs)

◆ operator==() [1/2]

bool Consistency::operator== ( const Consistency rhs) const

Definition at line 84 of file Consistency.cxx.

85{
86 bool answer = false;
87 if (_stat == rhs._stat &&
88 _value == rhs._value &&
89 _likelihood == rhs._likelihood &&
90 _sign == rhs._sign) {
91 answer = true;
92 }
93
94 return answer;
95}

◆ operator==() [2/2]

bool Consistency::operator== ( const Consistency rhs) const

◆ operator>() [1/2]

bool Consistency::operator> ( const Consistency rhs) const

Definition at line 123 of file Consistency.cxx.

124{
125 // ghm
126 if( *this==rhs ) return false;
127 return( ! (*this<rhs) );
128}

◆ operator>() [2/2]

bool Consistency::operator> ( const Consistency rhs) const

◆ print() [1/2]

virtual void Consistency::print ( std::ostream &  ) const
virtual

◆ print() [2/2]

virtual void Consistency::print ( std::ostream &  ) const
virtual

◆ setSign() [1/2]

void Consistency::setSign ( ConsistentSign  s)
inline

Definition at line 118 of file InstallArea/include/ProbTools/ProbTools/Consistency.h.

118{ _sign = s; }
XmlRpcServer s
Definition: HelloServer.cpp:11

◆ setSign() [2/2]

void Consistency::setSign ( ConsistentSign  s)
inline

◆ setStatus() [1/2]

void Consistency::setStatus ( ConsistentStatus  s)
inline

◆ setStatus() [2/2]

void Consistency::setStatus ( ConsistentStatus  s)
inline

◆ sign() [1/2]

ConsistentSign Consistency::sign ( ) const
inline

Definition at line 117 of file InstallArea/include/ProbTools/ProbTools/Consistency.h.

117{return _sign; }

◆ sign() [2/2]

ConsistentSign Consistency::sign ( ) const
inline

◆ significanceLevel() [1/2]

double Consistency::significanceLevel ( ) const
inline

Definition at line 85 of file InstallArea/include/ProbTools/ProbTools/Consistency.h.

85{ return _value; }

◆ significanceLevel() [2/2]

double Consistency::significanceLevel ( ) const
inline

◆ status() [1/2]

ConsistentStatus Consistency::status ( ) const
inline

Definition at line 106 of file InstallArea/include/ProbTools/ProbTools/Consistency.h.

106{return _stat;}

◆ status() [2/2]

ConsistentStatus Consistency::status ( ) const
inline

Member Data Documentation

◆ _likelihood

double Consistency::_likelihood
protected

◆ _sign

ConsistentSign Consistency::_sign
protected

◆ _stat

ConsistentStatus Consistency::_stat
protected

◆ _value


The documentation for this class was generated from the following files: