Public Member Functions | Public Attributes | List of all members
NearlinePlotInfo Struct Reference

#include <NearlinePlotMaker.h>

Public Member Functions

void AddMetricDetails (std::string metric_details)
 
std::string GetMetricMeanTimeGraphName (bool zoom=false)
 
std::string GetMetricRmsTimeGraphName (bool zoom=false)
 
std::string GetBinByBinTimeGraphName (unsigned int bin)
 
 NearlinePlotInfo ()
 
 NearlinePlotInfo (std::string metric_name, int channel, int num_days, std::string file_extension, std::string metric_details="")
 
std::string GetHistOutputName ()
 
std::string GetHist2DOutputName ()
 
void AddMetricDetails (std::string metric_details)
 
std::string GetMetricMeanTimeGraphName (bool zoom=false)
 
std::string GetMetricRmsTimeGraphName (bool zoom=false)
 
std::string GetBinByBinTimeGraphName (unsigned int bin)
 
 NearlinePlotInfo ()
 
 NearlinePlotInfo (std::string metric_name, int channel, int num_days, std::string file_extension, std::string metric_details="")
 
std::string GetHistOutputName ()
 
std::string GetHist2DOutputName ()
 

Public Attributes

std::string fMetricName
 
int fChannel
 
int fNumDays
 
std::string fFileExtension
 
std::string fMetricDetails
 

Detailed Description

Definition at line 89 of file NearlinePlotMaker.h.

Constructor & Destructor Documentation

NearlinePlotInfo::NearlinePlotInfo ( )
inline

Definition at line 103 of file NearlinePlotMaker.h.

103 {};
NearlinePlotInfo::NearlinePlotInfo ( std::string  metric_name,
int  channel,
int  num_days,
std::string  file_extension,
std::string  metric_details = "" 
)
inline

Definition at line 105 of file NearlinePlotMaker.h.

105  {
106  fMetricName = metric_name;
107  fChannel = channel;
108  fNumDays = num_days;
109  fFileExtension = file_extension;
110  fMetricDetails = metric_details;
111  }
std::string fMetricName
std::string fMetricDetails
std::string fFileExtension
NearlinePlotInfo::NearlinePlotInfo ( )
inline

Definition at line 103 of file NearlinePlotMakerDev.h.

103 {};
NearlinePlotInfo::NearlinePlotInfo ( std::string  metric_name,
int  channel,
int  num_days,
std::string  file_extension,
std::string  metric_details = "" 
)
inline

Definition at line 105 of file NearlinePlotMakerDev.h.

105  {
106  fMetricName = metric_name;
107  fChannel = channel;
108  fNumDays = num_days;
109  fFileExtension = file_extension;
110  fMetricDetails = metric_details;
111  }
std::string fMetricName
std::string fMetricDetails
std::string fFileExtension

Member Function Documentation

void NearlinePlotInfo::AddMetricDetails ( std::string  metric_details)

Definition at line 129 of file NearlinePlotMaker.h.

129  {
130  fMetricDetails = metric_details;
131 }
std::string fMetricDetails
void NearlinePlotInfo::AddMetricDetails ( std::string  metric_details)
std::string NearlinePlotInfo::GetBinByBinTimeGraphName ( unsigned int  bin)

Definition at line 156 of file NearlinePlotMaker.h.

156  {
157  char name[256];
158  if(fChannel>=0) sprintf(name, "%sTimeChan%04iBin%u_%.3i_days.%s", fMetricName.c_str(), fChannel, bin, fNumDays, fFileExtension.c_str());
159  else sprintf(name, "%sTimeBin%u_%.3i_days.%s", fMetricName.c_str(), bin, fNumDays, fFileExtension.c_str());
160  return std::string(name);
161 }
static QCString name
Definition: declinfo.cpp:673
std::string fMetricName
std::string string
Definition: nybbler.cc:12
QTextStream & bin(QTextStream &s)
std::string fFileExtension
std::string NearlinePlotInfo::GetBinByBinTimeGraphName ( unsigned int  bin)
std::string NearlinePlotInfo::GetHist2DOutputName ( )
inline

Definition at line 120 of file NearlinePlotMakerDev.h.

120  {
121  char name[256];
122  if(fChannel >=0) sprintf(name, "%sVsTimeChan%04i_%.3i_days.%s", fMetricName.c_str(), fChannel, fNumDays, fFileExtension.c_str());
123  else sprintf(name, "%sVsTime_%.3i_days.%s", fMetricName.c_str(), fNumDays, fFileExtension.c_str());
124  return std::string(name);
125  }
static QCString name
Definition: declinfo.cpp:673
std::string fMetricName
std::string string
Definition: nybbler.cc:12
std::string fFileExtension
std::string NearlinePlotInfo::GetHist2DOutputName ( )
inline

Definition at line 120 of file NearlinePlotMaker.h.

120  {
121  char name[256];
122  if(fChannel >=0) sprintf(name, "%sVsTimeChan%04i_%.3i_days.%s", fMetricName.c_str(), fChannel, fNumDays, fFileExtension.c_str());
123  else sprintf(name, "%sVsTime_%.3i_days.%s", fMetricName.c_str(), fNumDays, fFileExtension.c_str());
124  return std::string(name);
125  }
static QCString name
Definition: declinfo.cpp:673
std::string fMetricName
std::string string
Definition: nybbler.cc:12
std::string fFileExtension
std::string NearlinePlotInfo::GetHistOutputName ( )
inline

Definition at line 113 of file NearlinePlotMaker.h.

113  {
114  char name[256];
115  if(fChannel >= 0) sprintf(name, "%sChan%04i_%.3i_days.%s", fMetricName.c_str(), fChannel, fNumDays, fFileExtension.c_str());
116  else sprintf(name, "%s_%.3i_days.%s", fMetricName.c_str(), fNumDays, fFileExtension.c_str());
117  return std::string(name);
118  }
static QCString name
Definition: declinfo.cpp:673
std::string fMetricName
std::string string
Definition: nybbler.cc:12
std::string fFileExtension
std::string NearlinePlotInfo::GetHistOutputName ( )
inline

Definition at line 113 of file NearlinePlotMakerDev.h.

113  {
114  char name[256];
115  if(fChannel >= 0) sprintf(name, "%sChan%04i_%.3i_days.%s", fMetricName.c_str(), fChannel, fNumDays, fFileExtension.c_str());
116  else sprintf(name, "%s_%.3i_days.%s", fMetricName.c_str(), fNumDays, fFileExtension.c_str());
117  return std::string(name);
118  }
static QCString name
Definition: declinfo.cpp:673
std::string fMetricName
std::string string
Definition: nybbler.cc:12
std::string fFileExtension
std::string NearlinePlotInfo::GetMetricMeanTimeGraphName ( bool  zoom = false)

Definition at line 133 of file NearlinePlotMaker.h.

133  {
134  char name[256];
135 
136  if(fChannel >= 0) sprintf(name, "%sMeanTimeChan%04i_%.3i_days", fMetricName.c_str(), fChannel, fNumDays);
137  else sprintf(name, "%sMeanTime_%.3i_days", fMetricName.c_str(), fNumDays);
138 
139  if(zoom) sprintf(name, "%s_zoom.%s", name, fFileExtension.c_str());
140  else sprintf(name, "%s.%s", name, fFileExtension.c_str());
141 
142  return std::string(name);
143 }
static QCString name
Definition: declinfo.cpp:673
std::string fMetricName
std::string string
Definition: nybbler.cc:12
std::string fFileExtension
std::string NearlinePlotInfo::GetMetricMeanTimeGraphName ( bool  zoom = false)
std::string NearlinePlotInfo::GetMetricRmsTimeGraphName ( bool  zoom = false)

Definition at line 145 of file NearlinePlotMaker.h.

145  {
146  char name[256];
147  if(fChannel >= 0) sprintf(name, "%sRmsTimeChan%04i_%.3i_days", fMetricName.c_str(), fChannel, fNumDays);
148  else sprintf(name, "%sRmsTime_%.3i_days", fMetricName.c_str(), fNumDays);
149 
150  if(zoom) sprintf(name, "%s_zoom.%s", name, fFileExtension.c_str());
151  else sprintf(name, "%s.%s", name, fFileExtension.c_str());
152 
153  return std::string(name);
154 }
static QCString name
Definition: declinfo.cpp:673
std::string fMetricName
std::string string
Definition: nybbler.cc:12
std::string fFileExtension
std::string NearlinePlotInfo::GetMetricRmsTimeGraphName ( bool  zoom = false)

Member Data Documentation

int NearlinePlotInfo::fChannel

Definition at line 92 of file NearlinePlotMaker.h.

std::string NearlinePlotInfo::fFileExtension

Definition at line 94 of file NearlinePlotMaker.h.

std::string NearlinePlotInfo::fMetricDetails

Definition at line 95 of file NearlinePlotMaker.h.

std::string NearlinePlotInfo::fMetricName

Definition at line 91 of file NearlinePlotMaker.h.

int NearlinePlotInfo::fNumDays

Definition at line 93 of file NearlinePlotMaker.h.


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