Public Member Functions | Public Attributes | List of all members
om::HistoData Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-02/OnlineMonitoring/util/HistoData.h"

Public Member Functions

bool IsValid () const
 

Public Attributes

std::vector< std::stringfCategory
 Categories this hist. belongs to. More...
 
unsigned int fReset
 Reset schedule (see TickerSubscriber.h) More...
 
unsigned int fLookBack
 How many copies to save in history. More...
 
Detector_t fDetector
 Detector these settings apply to. More...
 
std::string fTriggers
 Triggers to which histo applies. More...
 
Histo_t fType
 What kind of histogram is this? More...
 
std::string fName
 C++ name of this histogram. More...
 
std::string fTitle
 Titles for histogram. More...
 
int fNx
 Number of bins in x. More...
 
double fX1
 Low edge of x range. More...
 
double fX2
 High edge of x range. More...
 
double fNy
 Number of bins in y. More...
 
double fY1
 Low edge of y range. More...
 
double fY2
 High edge of y range. More...
 
std::vector< std::stringfOption
 Booking/drawing options. More...
 
std::string fCaption
 What does this histogram show? More...
 

Detailed Description

A complete line of data describing a histogram used in the online monitoring.

Definition at line 36 of file HistoData.h.

Member Function Documentation

bool HistoData::IsValid ( ) const

Definition at line 4 of file HistoData.cxx.

References fDetector, fNx, fNy, fType, fX1, fX2, fY1, fY2, om::kALLDET, om::kFARDET, om::kNDOS, om::kNEARDET, om::kTESTBEAM, om::kTH1F, and om::kTH2F.

Referenced by om::HistoTable::ReadFile().

5 {
6  bool detok = false;
7  if (fDetector == kNDOS) detok = true;
8  if (fDetector == kNEARDET) detok = true;
9  if (fDetector == kFARDET) detok = true;
10  if (fDetector == kTESTBEAM) detok = true;
11  if (fDetector == kALLDET) detok = true;
12  if (!detok) return false;
13 
14  bool typeok = false;
15  if (fType == kTH1F) typeok = true;
16  if (fType == kTH2F) typeok = true;
17  if (!typeok) return false;
18 
19  if (fNx<1) return false;
20  if (fX2<fX1) return false;
21 
22  if (fType==kTH2F) {
23  if (fNy<1) return false;
24  if (fY2<fY1) return false;
25  }
26 
27  return true;
28 }
double fX1
Low edge of x range.
Definition: HistoData.h:50
int fNx
Number of bins in x.
Definition: HistoData.h:49
double fY2
High edge of y range.
Definition: HistoData.h:54
double fX2
High edge of x range.
Definition: HistoData.h:51
Histo_t fType
What kind of histogram is this?
Definition: HistoData.h:46
double fNy
Number of bins in y.
Definition: HistoData.h:52
Detector_t fDetector
Detector these settings apply to.
Definition: HistoData.h:44
double fY1
Low edge of y range.
Definition: HistoData.h:53

Member Data Documentation

std::string om::HistoData::fCaption

What does this histogram show?

Definition at line 56 of file HistoData.h.

Referenced by om::CaptionBox::GUIModelDataIssue(), om::HistogramBrowser::Populate(), and om::HistoTable::ReadFile().

std::vector<std::string> om::HistoData::fCategory

Categories this hist. belongs to.

Definition at line 41 of file HistoData.h.

Referenced by om::HistogramBrowser::MakeCategories(), om::HistogramBrowser::Populate(), and om::HistoTable::ReadFile().

Detector_t om::HistoData::fDetector

Detector these settings apply to.

Definition at line 44 of file HistoData.h.

Referenced by IsValid(), om::PlotOptions::MakeLabels(), and om::HistoTable::ReadFile().

unsigned int om::HistoData::fLookBack
std::string om::HistoData::fName

C++ name of this histogram.

Definition at line 47 of file HistoData.h.

Referenced by om::PlotViewer::ContentProjectionTH1F(), om::PlotViewer::ContentProjectionTH2F(), and om::HistoTable::ReadFile().

int om::HistoData::fNx
double om::HistoData::fNy

Number of bins in y.

Definition at line 52 of file HistoData.h.

Referenced by om::HistoSet::GetTH2F(), om::CaptionBox::GUIModelDataIssue(), IsValid(), and om::HistoTable::ReadFile().

std::vector<std::string> om::HistoData::fOption

Booking/drawing options.

Definition at line 55 of file HistoData.h.

Referenced by om::HistoTable::ReadFile().

unsigned int om::HistoData::fReset

Reset schedule (see TickerSubscriber.h)

Definition at line 42 of file HistoData.h.

Referenced by om::HistoSet::CopyAndResetOne(), om::CaptionBox::GUIModelDataIssue(), om::HistoTable::ReadFile(), and om::HistoSet::UTCReset().

std::string om::HistoData::fTitle

Titles for histogram.

Definition at line 48 of file HistoData.h.

Referenced by om::HistoSet::GetTH1F(), om::HistoSet::GetTH2F(), and om::HistoTable::ReadFile().

std::string om::HistoData::fTriggers

Triggers to which histo applies.

Definition at line 45 of file HistoData.h.

Histo_t om::HistoData::fType
double om::HistoData::fX1
double om::HistoData::fX2
double om::HistoData::fY1

Low edge of y range.

Definition at line 53 of file HistoData.h.

Referenced by om::HistoSet::GetTH2F(), om::CaptionBox::GUIModelDataIssue(), IsValid(), and om::HistoTable::ReadFile().

double om::HistoData::fY2

High edge of y range.

Definition at line 54 of file HistoData.h.

Referenced by om::HistoSet::GetTH2F(), om::CaptionBox::GUIModelDataIssue(), IsValid(), and om::HistoTable::ReadFile().


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