#include <NearlinePlotMaker.h>
|
static std::string | MakeStartYearPlot (std::string relative_plot_path) |
|
static std::string | MakeHistogram (std::string plot_location, NearlinePlot *plot) |
|
static std::string | MakeHistogram2D (std::string plot_location, NearlinePlot *plot) |
|
static std::string | MakeHistogramPair (std::string plot_location, NearlinePlot *plot) |
|
static std::string | MakeGraphPair (std::string plot_location, NearlinePlot *plot, bool rms) |
|
static std::string | MakePlotSet (std::string plot_location, NearlinePlot *plot) |
|
static std::string | MakeBinByBinGraphs (std::string plot_location, NearlinePlot *plot) |
|
static std::string | MakePageHeader (int Ndays) |
|
static std::string | MakeStartYearPlot (std::string relative_plot_path) |
|
static std::string | MakeHistogram (std::string plot_location, NearlinePlot *plot) |
|
static std::string | MakeHistogram2D (std::string plot_location, NearlinePlot *plot) |
|
static std::string | MakeHistogramPair (std::string plot_location, NearlinePlot *plot) |
|
static std::string | MakeGraphPair (std::string plot_location, NearlinePlot *plot, bool rms) |
|
static std::string | MakePlotSet (std::string plot_location, NearlinePlot *plot) |
|
static std::string | MakeBinByBinGraphs (std::string plot_location, NearlinePlot *plot) |
|
static std::string | MakePageHeader (int Ndays) |
|
Definition at line 712 of file NearlinePlotMaker.h.
Definition at line 869 of file NearlinePlotMaker.h.
884 output += metric_name +
" - ";
887 output +=
".</h3>\n";
888 output +=
"<figure>\n";
889 output +=
"<img src=\"" + plot_location +
"/" + plot_name +
"\" width=\"800\">\n";
890 output +=
"</figure>\n";
895 output +=
"<h3>" + metric_name +
" - ";
904 output +=
"<table>\n";
906 output +=
"<td> <img src=\"" + plot_location +
"/" + plot_name +
"\" width=\"800\"></td>\n";
907 output +=
"<td> <img src=\"" + plot_location +
"/" + plot_name_next +
"\" width=\"800\"></td>\n";
909 output +=
"</table>\n";
std::vector< std::vector< float > > fBinByBinMetricVec
std::string GetBinByBinTimeGraphName(unsigned int bin)
std::vector< std::string > fBinByBinLabels
QTextStream & bin(QTextStream &s)
std::string to_string(ModuleType const mt)
NearlinePlotEnables fPlotEnables
NearlinePlotInfo fPlotInfo
Definition at line 869 of file NearlinePlotMakerDev.h.
884 output += metric_name +
" - ";
887 output +=
".</h3>\n";
888 output +=
"<figure>\n";
889 output +=
"<img src=\"" + plot_location +
"/" + plot_name +
"\" width=\"800\">\n";
890 output +=
"</figure>\n";
895 output +=
"<h3>" + metric_name +
" - ";
904 output +=
"<table>\n";
906 output +=
"<td> <img src=\"" + plot_location +
"/" + plot_name +
"\" width=\"800\"></td>\n";
907 output +=
"<td> <img src=\"" + plot_location +
"/" + plot_name_next +
"\" width=\"800\"></td>\n";
909 output +=
"</table>\n";
std::vector< std::vector< float > > fBinByBinMetricVec
std::string GetBinByBinTimeGraphName(unsigned int bin)
std::vector< std::string > fBinByBinLabels
QTextStream & bin(QTextStream &s)
std::string to_string(ModuleType const mt)
NearlinePlotEnables fPlotEnables
NearlinePlotInfo fPlotInfo
Definition at line 805 of file NearlinePlotMakerDev.h.
825 if(
rms) output +=
"RMS of the ";
826 else output +=
"Mean of the ";
827 if(channel >= 0) output += metric_name +
" spectra for channel # " +
std::to_string(channel);
828 else output += metric_name +
" spectra";
829 if(metric_details!=
"") output +=
" " + metric_details;
831 output +=
"<table>\n";
833 output +=
"<td> <img src=\"" + plot_location_unzoom +
"\" width=\"800\"></td>\n";
834 output +=
"<td> <img src=\"" + plot_location_zoom +
"\" width=\"800\"></td>\n";
836 output +=
"</table>\n";
std::string GetMetricMeanTimeGraphName(bool zoom=false)
double rms(sqlite3 *db, std::string const &table_name, std::string const &column_name)
std::string GetMetricRmsTimeGraphName(bool zoom=false)
std::string fMetricDetails
std::string to_string(ModuleType const mt)
NearlinePlotInfo fPlotInfo
Definition at line 805 of file NearlinePlotMaker.h.
825 if(
rms) output +=
"RMS of the ";
826 else output +=
"Mean of the ";
827 if(channel >= 0) output += metric_name +
" spectra for channel # " +
std::to_string(channel);
828 else output += metric_name +
" spectra";
829 if(metric_details!=
"") output +=
" " + metric_details;
831 output +=
"<table>\n";
833 output +=
"<td> <img src=\"" + plot_location_unzoom +
"\" width=\"800\"></td>\n";
834 output +=
"<td> <img src=\"" + plot_location_zoom +
"\" width=\"800\"></td>\n";
836 output +=
"</table>\n";
std::string GetMetricMeanTimeGraphName(bool zoom=false)
double rms(sqlite3 *db, std::string const &table_name, std::string const &column_name)
std::string GetMetricRmsTimeGraphName(bool zoom=false)
std::string fMetricDetails
std::string to_string(ModuleType const mt)
NearlinePlotInfo fPlotInfo
Definition at line 736 of file NearlinePlotMaker.h.
746 if(channel >=0) output +=
"<h3>" + metric_name +
" spectrum for channel # " +
std::to_string(channel);
747 else output +=
"<h3>" + metric_name +
" spectrum";
748 if(metric_details!=
"") output +=
" " + metric_details;
749 output +=
".</h3>\n";
750 output +=
"<figure>\n";
751 output +=
"<img src=\"" + plot_location +
"\" width=\"800\">\n";
752 output +=
"</figure>\n";
std::string fMetricDetails
std::string GetHistOutputName()
std::string to_string(ModuleType const mt)
NearlinePlotInfo fPlotInfo
Definition at line 736 of file NearlinePlotMakerDev.h.
746 if(channel >=0) output +=
"<h3>" + metric_name +
" spectrum for channel # " +
std::to_string(channel);
747 else output +=
"<h3>" + metric_name +
" spectrum";
748 if(metric_details!=
"") output +=
" " + metric_details;
749 output +=
".</h3>\n";
750 output +=
"<figure>\n";
751 output +=
"<img src=\"" + plot_location +
"\" width=\"800\">\n";
752 output +=
"</figure>\n";
std::string fMetricDetails
std::string GetHistOutputName()
std::string to_string(ModuleType const mt)
NearlinePlotInfo fPlotInfo
Definition at line 756 of file NearlinePlotMakerDev.h.
766 if(channel >= 0) output +=
"<h3>" + metric_name +
" spectrum vs. time for channel # " +
std::to_string(channel);
767 else output +=
"<h3>" + metric_name +
" spectrum vs. time";
768 if(metric_details!=
"") output +=
" " + metric_details;
769 output +=
".</h3>\n";
770 output +=
"<figure>\n";
771 output +=
"<img src=\"" + plot_location +
"\" width=\"800\">\n";
772 output +=
"</figure>\n";
std::string fMetricDetails
std::string GetHist2DOutputName()
std::string to_string(ModuleType const mt)
NearlinePlotInfo fPlotInfo
Definition at line 756 of file NearlinePlotMaker.h.
766 if(channel >= 0) output +=
"<h3>" + metric_name +
" spectrum vs. time for channel # " +
std::to_string(channel);
767 else output +=
"<h3>" + metric_name +
" spectrum vs. time";
768 if(metric_details!=
"") output +=
" " + metric_details;
769 output +=
".</h3>\n";
770 output +=
"<figure>\n";
771 output +=
"<img src=\"" + plot_location +
"\" width=\"800\">\n";
772 output +=
"</figure>\n";
std::string fMetricDetails
std::string GetHist2DOutputName()
std::string to_string(ModuleType const mt)
NearlinePlotInfo fPlotInfo
Definition at line 777 of file NearlinePlotMaker.h.
789 if(channel >= 0) output +=
"<h3>" + metric_name +
" spectrum for channel # " +
std::to_string(channel);
790 output +=
"<h3>" + metric_name +
" spectrum";
791 if(metric_details!=
"") output +=
" " + metric_details;
792 output +=
".</h3>\n";
793 output +=
"<table>\n";
795 output +=
"<td> <img src=\"" + plot_location_histo +
"\" width=\"800\"></td>\n";
796 output +=
"<td> <img src=\"" + plot_location_histo2d +
"\" width=\"800\"></td>\n";
798 output +=
"</table>\n";
std::string fMetricDetails
std::string GetHistOutputName()
std::string GetHist2DOutputName()
std::string to_string(ModuleType const mt)
NearlinePlotInfo fPlotInfo
Definition at line 777 of file NearlinePlotMakerDev.h.
789 if(channel >= 0) output +=
"<h3>" + metric_name +
" spectrum for channel # " +
std::to_string(channel);
790 output +=
"<h3>" + metric_name +
" spectrum";
791 if(metric_details!=
"") output +=
" " + metric_details;
792 output +=
".</h3>\n";
793 output +=
"<table>\n";
795 output +=
"<td> <img src=\"" + plot_location_histo +
"\" width=\"800\"></td>\n";
796 output +=
"<td> <img src=\"" + plot_location_histo2d +
"\" width=\"800\"></td>\n";
798 output +=
"</table>\n";
std::string fMetricDetails
std::string GetHistOutputName()
std::string GetHist2DOutputName()
std::string to_string(ModuleType const mt)
NearlinePlotInfo fPlotInfo
static std::string NearlineHTML::MakePageHeader |
( |
int |
Ndays | ) |
|
|
inlinestatic |
Definition at line 919 of file NearlinePlotMaker.h.
923 output+=
"<meta http-equiv=\"refresh\" content=\"60\">\n";
924 output+=
"</head>\n\n\n";
925 if(Ndays<=2) output+=
"<h1>35T Nearline Monitoring - 24 Hour Plots</h1>\n\n";
926 else if(Ndays==7) output+=
"<h1>35T Nearline Monitoring - 7 Days Plots</h1>\n\n";
927 else if(Ndays==31) output+=
"<h1>35T Nearline Monitoring - 31 Days Plots</h1>\n\n";
928 else output+=
"<h1>35T Nearline Monitoring - " +
std::to_string(Ndays) +
" Days Plots</h1>\n\n";
929 output+=
"<h2><b>THIS PAGE IS CURRENTLY UNDER CONSTRUCTION.</b></h2>\n";
930 output+=
"<BR><BR><BR>\n";
std::string to_string(ModuleType const mt)
static std::string NearlineHTML::MakePageHeader |
( |
int |
Ndays | ) |
|
|
inlinestatic |
Definition at line 919 of file NearlinePlotMakerDev.h.
923 output+=
"<meta http-equiv=\"refresh\" content=\"60\">\n";
924 output+=
"</head>\n\n\n";
925 if(Ndays<=2) output+=
"<h1>35T Nearline Monitoring - 24 Hour Plots</h1>\n\n";
926 else if(Ndays==7) output+=
"<h1>35T Nearline Monitoring - 7 Days Plots</h1>\n\n";
927 else if(Ndays==31) output+=
"<h1>35T Nearline Monitoring - 31 Days Plots</h1>\n\n";
928 else output+=
"<h1>35T Nearline Monitoring - " +
std::to_string(Ndays) +
" Days Plots</h1>\n\n";
929 output+=
"<h2><b>THIS PAGE IS CURRENTLY UNDER CONSTRUCTION.</b></h2>\n";
930 output+=
"<BR><BR><BR>\n";
std::string to_string(ModuleType const mt)
Definition at line 842 of file NearlinePlotMaker.h.
859 output +=
"First plot: " + metric_name +
" spectra on a specified channel in the specified time period.\n";
860 output +=
"Second plot: Mean of the top plot over time (each blue dot corresponds to one subrun).\n";
861 output +=
"Third plot: RMS of the top plot over time (each blue dot corresponds to one subrun).\n";
863 output +=
"<BR><BR><BR>\n\n";
static std::string MakeHistogramPair(std::string plot_location, NearlinePlot *plot)
static std::string MakeHistogram(std::string plot_location, NearlinePlot *plot)
static std::string MakeGraphPair(std::string plot_location, NearlinePlot *plot, bool rms)
bool fMakeMetricTimeGraph
NearlinePlotEnables fPlotEnables
NearlinePlotInfo fPlotInfo
Definition at line 842 of file NearlinePlotMakerDev.h.
859 output +=
"First plot: " + metric_name +
" spectra on a specified channel in the specified time period.\n";
860 output +=
"Second plot: Mean of the top plot over time (each blue dot corresponds to one subrun).\n";
861 output +=
"Third plot: RMS of the top plot over time (each blue dot corresponds to one subrun).\n";
863 output +=
"<BR><BR><BR>\n\n";
static std::string MakeHistogramPair(std::string plot_location, NearlinePlot *plot)
static std::string MakeHistogram(std::string plot_location, NearlinePlot *plot)
static std::string MakeGraphPair(std::string plot_location, NearlinePlot *plot, bool rms)
bool fMakeMetricTimeGraph
NearlinePlotEnables fPlotEnables
NearlinePlotInfo fPlotInfo
Definition at line 714 of file NearlinePlotMakerDev.h.
717 output+=
"<h3>Start Year of the Run VS Run Number.</h3>\n";
718 output+=
"<figure>\n";
719 output+=
"<img src=\"" + relative_plot_path +
"\" width=\"800\">\n";
720 output+=
"</figure>\n";
722 output+=
"<b>This plot requires some explanation:</b>\n";
723 output+=
"I noticed that for a large number of runs, some or all of the data appeared to be missing from the events in the files. This resulted in one of two behaviors:\n";
725 output+=
"<b>1)</b> The run number was correct in the art::events but the year cooresponding to the event time was 0 (which defaults to 1969.)\n";
727 output+=
"<b>2)</b> The file from that run was entirely devoid of usable events making the run number and year default to zero (again, 1969 for the year.)\n";
729 output+=
"Both the run number and the year are obtained from the art::events by the nearline analyzer module. So this plot should be interpreted as a very general DAQ-health indicator. Situation 1 can occur if the art::events are present in the file but there is no RCE information. Situation 2 can occur if there are no good events in the entire file. I would imagine that once the DAQ is stable during normal running, his plot will become obsolete.\n";
731 output+=
"<BR><BR><BR>\n";
Definition at line 714 of file NearlinePlotMaker.h.
717 output+=
"<h3>Start Year of the Run VS Run Number.</h3>\n";
718 output+=
"<figure>\n";
719 output+=
"<img src=\"" + relative_plot_path +
"\" width=\"800\">\n";
720 output+=
"</figure>\n";
722 output+=
"<b>This plot requires some explanation:</b>\n";
723 output+=
"I noticed that for a large number of runs, some or all of the data appeared to be missing from the events in the files. This resulted in one of two behaviors:\n";
725 output+=
"<b>1)</b> The run number was correct in the art::events but the year cooresponding to the event time was 0 (which defaults to 1969.)\n";
727 output+=
"<b>2)</b> The file from that run was entirely devoid of usable events making the run number and year default to zero (again, 1969 for the year.)\n";
729 output+=
"Both the run number and the year are obtained from the art::events by the nearline analyzer module. So this plot should be interpreted as a very general DAQ-health indicator. Situation 1 can occur if the art::events are present in the file but there is no RCE information. Situation 2 can occur if there are no good events in the entire file. I would imagine that once the DAQ is stable during normal running, his plot will become obsolete.\n";
731 output+=
"<BR><BR><BR>\n";
The documentation for this struct was generated from the following files: