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

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-11-25/OnlineMonitoring/viewer/GUIModelData.h"

Public Member Functions

 GUIModelData ()
 
void SetCSVFile (std::string v)
 

Public Attributes

Detector_t fDetector
 
std::string fHistogramSource
 
std::string fHistogramInfoText
 
CurrentHistogram fCurrentHistogram
 
unsigned int fPlotViewRefreshRate
 
bool fPlotViewRefreshPaused
 
std::string fHistoCSVFile
 
ComparisonOptions fComparisonOpt
 
unsigned int fContentProjection
 

Detailed Description

All the data that controls what user sees on the gui

Definition at line 32 of file GUIModelData.h.

Constructor & Destructor Documentation

GUIModelData::GUIModelData ( )

Definition at line 8 of file GUIModelData.cxx.

8  :
9  fHistogramInfoText("Click on plot to see histogram data"),
10  fPlotViewRefreshRate(60000),
13 { }
std::string fHistogramInfoText
Definition: GUIModelData.h:36
bool fPlotViewRefreshPaused
Definition: GUIModelData.h:39
unsigned int fPlotViewRefreshRate
Definition: GUIModelData.h:38
unsigned int fContentProjection
Definition: GUIModelData.h:42

Member Function Documentation

void GUIModelData::SetCSVFile ( std::string  v)

Definition at line 17 of file GUIModelData.cxx.

References fHistoCSVFile, file, cet::getenv(), and string.

Referenced by om::GUIModel::SetCSVFile().

18 {
19  //
20  // Try to find the location of the onmon-histos.csv file for the
21  // descriptions of the histograms
22  //
23  std::string csvpath;
24  for (int itry=0; itry<4; ++itry) {
25  switch (itry) {
26  case 0: csvpath = "./"; break;
27  case 1: csvpath = "./util/"; break;
28  case 2:
29  csvpath = getenv("SRT_PRIVATE_CONTEXT");
30  csvpath += "/OnlineMonitoring/util/";
31  break;
32  case 3:
33  csvpath = getenv("SRT_PUBLIC_CONTEXT");
34  csvpath += "/OnlineMonitoring/util/"; break;
35  break;
36  }
37  csvpath += file;
38  if (access(csvpath.c_str(), F_OK)!=-1) {
39  fHistoCSVFile = csvpath;
40  break;
41  }
42  } // loop on directory attempts
43 }
std::string fHistoCSVFile
Definition: GUIModelData.h:40
std::string getenv(std::string const &name)
TFile * file
Definition: cellShifts.C:17
enum BeamMode string

Member Data Documentation

ComparisonOptions om::GUIModelData::fComparisonOpt
unsigned int om::GUIModelData::fContentProjection
CurrentHistogram om::GUIModelData::fCurrentHistogram
Detector_t om::GUIModelData::fDetector
std::string om::GUIModelData::fHistoCSVFile

Definition at line 40 of file GUIModelData.h.

Referenced by om::HistogramBrowser::MakeCategories(), and SetCSVFile().

std::string om::GUIModelData::fHistogramInfoText
std::string om::GUIModelData::fHistogramSource
bool om::GUIModelData::fPlotViewRefreshPaused
unsigned int om::GUIModelData::fPlotViewRefreshRate

Definition at line 38 of file GUIModelData.h.


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