#include <JarqueBeraTest.h>
Definition at line 18 of file JarqueBeraTest.h.
◆ JarqueBeraTest()
dqm_algorithms::JarqueBeraTest::JarqueBeraTest |
( |
const std::string & |
name | ) |
|
◆ clone()
◆ execute()
Definition at line 33 of file JarqueBeraTest.cxx.
38 if(
object.
IsA()->InheritsFrom(
"TH1" )) {
41 throw dqm_core::BadConfig( ERS_HERE,
name,
"dimension > 2 " );
44 throw dqm_core::BadConfig( ERS_HERE,
name,
"does not inherit from TH1" );
48 ERS_DEBUG(2,
"Minimum statistics required:"<<minstat);
49 if (
histogram->GetEffectiveEntries() < minstat ) {
51 result->tags_[
"InsufficientEffectiveEntries"] =
histogram->GetEffectiveEntries();
54 double gthresho,rthresho;
55 std::string thresholdname=
"JB";
56 if (
m_name ==
"Prob") thresholdname =
"P";
61 catch ( dqm_core::Exception & ex ) {
62 throw dqm_core::BadConfig( ERS_HERE,
name, ex.what(), ex );
64 ERS_DEBUG(2,
"Green Threshold: "<<gthresho<<
" Red: "<<rthresho);
71 double jb =
n/6*(
s*
s + (
k*
k)/4 );
74 double prob = TMath::Prob( jb , 2 );
75 ERS_DEBUG(2,
" K="<<
k<<
" S="<<
s<<
" n="<<
n<<
" jb="<<jb<<
" prob="<<
prob);
85 if ( TMath::IsNaN( testValue ) )
92 if ( testValue >= gthresho ) {
94 }
else if ( testValue > rthresho ) {
95 result->status_ = dqm_core::Result::Yellow;
102 if ( testValue <= gthresho ) {
104 }
else if ( testValue < rthresho ) {
105 result->status_ = dqm_core::Result::Yellow;
◆ printDescription()
void dqm_algorithms::JarqueBeraTest::printDescription |
( |
std::ostream & |
out | ) |
|
Definition at line 114 of file JarqueBeraTest.cxx.
116 out<<
"JarqueBeraTest"+
m_name+
" gives back the ";
117 if (
m_name ==
"Prob")
out<<
" probability that the input histogram follows the normal distribution\n"<<std::endl;
118 else out<<
" Jarque-Bera value of the input histogram\n"<<std::endl;
119 out<<
"Mandatory Green/Red Threshold: ";
120 if (
m_name ==
"Prob")
out<<
" P : Probability";
121 else out<<
" JB : Jarque-Bera value";
122 out<<
" to give Green/Red result.\n"<<std::endl;
123 out<<
"Optional Parameter: MinStat: Minimum histogram statistics needed to perform Algorithm\n"<<std::endl;
◆ m_name
std::string dqm_algorithms::JarqueBeraTest::m_name |
|
private |
The documentation for this struct was generated from the following files: