Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
om::ComparisonOptions Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-01/OnlineMonitoring/viewer/ComparisonOptions.h"

Public Types

enum  _compare_to { kNone, kReference, kRecent, kMaxCompWhich }
 
enum  _compare_method {
  kOverlay, kDifference, kRatio, kAsymmetry,
  kChi, kShowRef, kMaxCompHow
}
 
enum  _compare_normalize { kAbsolute, kArea, kPeak, kMaxCompNorm }
 

Public Member Functions

 ComparisonOptions ()
 

Static Public Member Functions

static const char * CompareTo (unsigned int i)
 
static const char * CompareMethod (unsigned int i)
 
static const char * CompareNormalize (unsigned int i)
 

Public Attributes

unsigned int fWhich
 Which histo. to compare to? More...
 
unsigned int fMethod
 How to show the comparison? More...
 
unsigned int fNormalize
 How to normalize the histos? More...
 
unsigned int fLookBack
 Which "look back" histogram to compare to? More...
 
double fX1
 Range to normalize. More...
 
double fX2
 Range to normalize. More...
 
double fY1
 Range to normalize. More...
 
double fY2
 Range to normalize. More...
 
std::string fReferenceFile
 Reference file for comparison histograms. More...
 

Detailed Description

Definition at line 6 of file ComparisonOptions.h.

Member Enumeration Documentation

Enumerator
kAbsolute 
kArea 
kPeak 
kMaxCompNorm 

Definition at line 23 of file ComparisonOptions.h.

23  {
24  kAbsolute,
25  kArea,
26  kPeak,
27  // To return the following line, see also ComparisonOptions.cxx and
28  // both the TH1F and TH2F sections of the UpdateCompare() function in
29  // PlotViewer.cxx.
30  //
31  // kIntegral,
33  };

Constructor & Destructor Documentation

ComparisonOptions::ComparisonOptions ( )

Definition at line 44 of file ComparisonOptions.cxx.

44  :
45  fWhich(kNone),
48  fLookBack(0),
49  fX1(0),
50  fX2(0),
51  fY1(0),
52  fY2(0),
53  fReferenceFile("")
54 { }
double fY1
Range to normalize.
unsigned int fWhich
Which histo. to compare to?
unsigned int fLookBack
Which "look back" histogram to compare to?
unsigned int fMethod
How to show the comparison?
double fX1
Range to normalize.
double fX2
Range to normalize.
double fY2
Range to normalize.
unsigned int fNormalize
How to normalize the histos?
std::string fReferenceFile
Reference file for comparison histograms.

Member Function Documentation

const char * ComparisonOptions::CompareMethod ( unsigned int  i)
static
const char * ComparisonOptions::CompareNormalize ( unsigned int  i)
static

Definition at line 32 of file ComparisonOptions.cxx.

References kAbsolute, kArea, and kPeak.

Referenced by om::ComparisonBox::LayoutNormFrame().

32  {
33  switch (i) {
34  case ComparisonOptions::kAbsolute: return "Absolute";
35  case ComparisonOptions::kArea: return "Area";
36  case ComparisonOptions::kPeak: return "Peak";
37  // case ComparisonOptions::kIntegral: return "Integral";
38  };
39  return 0;
40 }
const char * ComparisonOptions::CompareTo ( unsigned int  i)
static

Definition at line 6 of file ComparisonOptions.cxx.

References kNone, kRecent, and kReference.

Referenced by om::ComparisonBox::LayoutWhichFrame().

7 {
8  switch (i) {
9  case ComparisonOptions::kNone: return "None";
10  case ComparisonOptions::kReference: return "Reference";
11  case ComparisonOptions::kRecent: return "Recent";
12  }
13  return 0;
14 }

Member Data Documentation

unsigned int om::ComparisonOptions::fLookBack

Which "look back" histogram to compare to?

Definition at line 46 of file ComparisonOptions.h.

Referenced by om::GUIModel::SetLookBack(), and om::PlotViewer::UpdateCompare().

unsigned int om::ComparisonOptions::fMethod

How to show the comparison?

Definition at line 44 of file ComparisonOptions.h.

Referenced by om::ComparisonBox::GUIModelDataIssue(), om::GUIModel::SetCompareMethod(), and om::PlotViewer::UpdateCompare().

unsigned int om::ComparisonOptions::fNormalize

How to normalize the histos?

Definition at line 45 of file ComparisonOptions.h.

Referenced by om::ComparisonBox::GUIModelDataIssue(), om::GUIModel::SetCompareNorm(), and om::PlotViewer::UpdateCompare().

std::string om::ComparisonOptions::fReferenceFile

Reference file for comparison histograms.

Definition at line 51 of file ComparisonOptions.h.

Referenced by om::GUIModel::SetReferenceFile(), and om::PlotViewer::UpdateCompare().

unsigned int om::ComparisonOptions::fWhich
double om::ComparisonOptions::fX1

Range to normalize.

Definition at line 47 of file ComparisonOptions.h.

double om::ComparisonOptions::fX2

Range to normalize.

Definition at line 48 of file ComparisonOptions.h.

double om::ComparisonOptions::fY1

Range to normalize.

Definition at line 49 of file ComparisonOptions.h.

double om::ComparisonOptions::fY2

Range to normalize.

Definition at line 50 of file ComparisonOptions.h.


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