GUIModelData.cxx
Go to the documentation of this file.
2 #include <cstdlib>
3 extern "C" {
4 #include <unistd.h>
5 }
6 using namespace om;
7 
9  fHistogramInfoText("Click on plot to see histogram data"),
10  fPlotViewRefreshRate(60000),
11  fPlotViewRefreshPaused(false),
12  fContentProjection(0)
13 { }
14 
15 //.....................................................................
16 
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 }
44 ////////////////////////////////////////////////////////////////////////
std::string fHistoCSVFile
Definition: GUIModelData.h:40
void SetCSVFile(std::string v)
std::string getenv(std::string const &name)
TFile * file
Definition: cellShifts.C:17
Online Monitoring package header.
enum BeamMode string