Static Public Member Functions | List of all members
NearlineHTML Struct Reference

#include <NearlinePlotMaker.h>

Static Public Member Functions

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)
 

Detailed Description

Definition at line 712 of file NearlinePlotMaker.h.

Member Function Documentation

static std::string NearlineHTML::MakeBinByBinGraphs ( std::string  plot_location,
NearlinePlot plot 
)
inlinestatic

Definition at line 869 of file NearlinePlotMaker.h.

869  {
870 
871  NearlinePlotEnables plot_enables = plot->fPlotEnables;
872  NearlinePlotInfo plot_info = plot->fPlotInfo;
873  if(!plot_enables.fMakeBinByBinPlots) return "";
874 
875  std::string output;
876 
877  for(size_t bin=0; bin<plot->fBinByBinMetricVec.size();bin++){
878  std::string metric_name = plot_info.fMetricName;
879  std::string plot_name = plot_info.GetBinByBinTimeGraphName(bin);
880 
881 
882  if(bin+1 == (plot->fBinByBinMetricVec.size())){
883  output += "<h3>";
884  output += metric_name + " - ";
885  if(plot->fBinByBinLabels.at(bin)!="") output += plot->fBinByBinLabels.at(bin);
886  else output += "bin " + std::to_string(bin);
887  output += ".</h3>\n";
888  output += "<figure>\n";
889  output += "<img src=\"" + plot_location + "/" + plot_name + "\" width=\"800\">\n";
890  output += "</figure>\n";
891  output += "\n\n\n";
892  }//one bin
893  else{
894  std::string plot_name_next = plot_info.GetBinByBinTimeGraphName(bin+1);
895  output += "<h3>" + metric_name + " - ";
896 
897  if(plot->fBinByBinLabels.at(bin)!="") output += plot->fBinByBinLabels.at(bin);
898  else output += "bin " + std::to_string(bin);
899 
900  output += " and ";
901  if(plot->fBinByBinLabels.at(bin+1)!="") output += plot->fBinByBinLabels.at(bin+1);
902  else output += "bin " + std::to_string(bin+1);
903 
904  output +="<table>\n";
905  output +="<tr>\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";
908  output +="</tr>\n";
909  output +="</table>\n";
910  output += "\n\n\n";
911  bin++;
912  }//two bins
913 
914  }//loop over bins
915  return output;
916 
917  }
std::vector< std::vector< float > > fBinByBinMetricVec
std::string fMetricName
std::string string
Definition: nybbler.cc:12
std::string GetBinByBinTimeGraphName(unsigned int bin)
std::vector< std::string > fBinByBinLabels
QTextStream & bin(QTextStream &s)
std::string to_string(ModuleType const mt)
Definition: ModuleType.h:34
NearlinePlotEnables fPlotEnables
NearlinePlotInfo fPlotInfo
static std::string NearlineHTML::MakeBinByBinGraphs ( std::string  plot_location,
NearlinePlot plot 
)
inlinestatic

Definition at line 869 of file NearlinePlotMakerDev.h.

869  {
870 
871  NearlinePlotEnables plot_enables = plot->fPlotEnables;
872  NearlinePlotInfo plot_info = plot->fPlotInfo;
873  if(!plot_enables.fMakeBinByBinPlots) return "";
874 
875  std::string output;
876 
877  for(size_t bin=0; bin<plot->fBinByBinMetricVec.size();bin++){
878  std::string metric_name = plot_info.fMetricName;
879  std::string plot_name = plot_info.GetBinByBinTimeGraphName(bin);
880 
881 
882  if(bin+1 == (plot->fBinByBinMetricVec.size())){
883  output += "<h3>";
884  output += metric_name + " - ";
885  if(plot->fBinByBinLabels.at(bin)!="") output += plot->fBinByBinLabels.at(bin);
886  else output += "bin " + std::to_string(bin);
887  output += ".</h3>\n";
888  output += "<figure>\n";
889  output += "<img src=\"" + plot_location + "/" + plot_name + "\" width=\"800\">\n";
890  output += "</figure>\n";
891  output += "\n\n\n";
892  }//one bin
893  else{
894  std::string plot_name_next = plot_info.GetBinByBinTimeGraphName(bin+1);
895  output += "<h3>" + metric_name + " - ";
896 
897  if(plot->fBinByBinLabels.at(bin)!="") output += plot->fBinByBinLabels.at(bin);
898  else output += "bin " + std::to_string(bin);
899 
900  output += " and ";
901  if(plot->fBinByBinLabels.at(bin+1)!="") output += plot->fBinByBinLabels.at(bin+1);
902  else output += "bin " + std::to_string(bin+1);
903 
904  output +="<table>\n";
905  output +="<tr>\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";
908  output +="</tr>\n";
909  output +="</table>\n";
910  output += "\n\n\n";
911  bin++;
912  }//two bins
913 
914  }//loop over bins
915  return output;
916 
917  }
std::vector< std::vector< float > > fBinByBinMetricVec
std::string fMetricName
std::string string
Definition: nybbler.cc:12
std::string GetBinByBinTimeGraphName(unsigned int bin)
std::vector< std::string > fBinByBinLabels
QTextStream & bin(QTextStream &s)
std::string to_string(ModuleType const mt)
Definition: ModuleType.h:34
NearlinePlotEnables fPlotEnables
NearlinePlotInfo fPlotInfo
static std::string NearlineHTML::MakeGraphPair ( std::string  plot_location,
NearlinePlot plot,
bool  rms 
)
inlinestatic

Definition at line 805 of file NearlinePlotMakerDev.h.

805  {
806 
807  NearlinePlotInfo plot_info = plot->fPlotInfo;
808  std::string metric_name = plot_info.fMetricName;
809  int channel = plot_info.fChannel;
810  std::string metric_details = plot_info.fMetricDetails;
811 
812  std::string plot_location_zoom;
813  std::string plot_location_unzoom;
814  if(rms){
815  plot_location_zoom = plot_location + "/" + plot_info.GetMetricRmsTimeGraphName(true);
816  plot_location_unzoom = plot_location + "/" + plot_info.GetMetricRmsTimeGraphName();
817  }
818  else{
819  plot_location_zoom = plot_location + "/" + plot_info.GetMetricMeanTimeGraphName(true);
820  plot_location_unzoom = plot_location + "/" + plot_info.GetMetricMeanTimeGraphName();
821  }
822 
823  std::string output;
824  output+="<h3>";
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;
830  output +=".</h3>\n";
831  output +="<table>\n";
832  output +="<tr>\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";
835  output +="</tr>\n";
836  output +="</table>\n";
837 
838  return output;
839 
840  }
std::string GetMetricMeanTimeGraphName(bool zoom=false)
std::string fMetricName
double rms(sqlite3 *db, std::string const &table_name, std::string const &column_name)
Definition: statistics.cc:39
std::string string
Definition: nybbler.cc:12
std::string GetMetricRmsTimeGraphName(bool zoom=false)
std::string fMetricDetails
std::string to_string(ModuleType const mt)
Definition: ModuleType.h:34
NearlinePlotInfo fPlotInfo
static std::string NearlineHTML::MakeGraphPair ( std::string  plot_location,
NearlinePlot plot,
bool  rms 
)
inlinestatic

Definition at line 805 of file NearlinePlotMaker.h.

805  {
806 
807  NearlinePlotInfo plot_info = plot->fPlotInfo;
808  std::string metric_name = plot_info.fMetricName;
809  int channel = plot_info.fChannel;
810  std::string metric_details = plot_info.fMetricDetails;
811 
812  std::string plot_location_zoom;
813  std::string plot_location_unzoom;
814  if(rms){
815  plot_location_zoom = plot_location + "/" + plot_info.GetMetricRmsTimeGraphName(true);
816  plot_location_unzoom = plot_location + "/" + plot_info.GetMetricRmsTimeGraphName();
817  }
818  else{
819  plot_location_zoom = plot_location + "/" + plot_info.GetMetricMeanTimeGraphName(true);
820  plot_location_unzoom = plot_location + "/" + plot_info.GetMetricMeanTimeGraphName();
821  }
822 
823  std::string output;
824  output+="<h3>";
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;
830  output +=".</h3>\n";
831  output +="<table>\n";
832  output +="<tr>\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";
835  output +="</tr>\n";
836  output +="</table>\n";
837 
838  return output;
839 
840  }
std::string GetMetricMeanTimeGraphName(bool zoom=false)
std::string fMetricName
double rms(sqlite3 *db, std::string const &table_name, std::string const &column_name)
Definition: statistics.cc:39
std::string string
Definition: nybbler.cc:12
std::string GetMetricRmsTimeGraphName(bool zoom=false)
std::string fMetricDetails
std::string to_string(ModuleType const mt)
Definition: ModuleType.h:34
NearlinePlotInfo fPlotInfo
static std::string NearlineHTML::MakeHistogram ( std::string  plot_location,
NearlinePlot plot 
)
inlinestatic

Definition at line 736 of file NearlinePlotMaker.h.

736  {
737 
738  NearlinePlotInfo plot_info = plot->fPlotInfo;
739  std::string metric_name = plot_info.fMetricName;
740  int channel = plot_info.fChannel;
741  std::string metric_details = plot_info.fMetricDetails;
742  plot_location = plot_location + "/" + plot_info.GetHistOutputName();
743 
744  std::string output;
745  output += "<hr>\n";
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";
753  return output;
754  }
std::string fMetricName
std::string string
Definition: nybbler.cc:12
std::string fMetricDetails
std::string GetHistOutputName()
std::string to_string(ModuleType const mt)
Definition: ModuleType.h:34
NearlinePlotInfo fPlotInfo
static std::string NearlineHTML::MakeHistogram ( std::string  plot_location,
NearlinePlot plot 
)
inlinestatic

Definition at line 736 of file NearlinePlotMakerDev.h.

736  {
737 
738  NearlinePlotInfo plot_info = plot->fPlotInfo;
739  std::string metric_name = plot_info.fMetricName;
740  int channel = plot_info.fChannel;
741  std::string metric_details = plot_info.fMetricDetails;
742  plot_location = plot_location + "/" + plot_info.GetHistOutputName();
743 
744  std::string output;
745  output += "<hr>\n";
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";
753  return output;
754  }
std::string fMetricName
std::string string
Definition: nybbler.cc:12
std::string fMetricDetails
std::string GetHistOutputName()
std::string to_string(ModuleType const mt)
Definition: ModuleType.h:34
NearlinePlotInfo fPlotInfo
static std::string NearlineHTML::MakeHistogram2D ( std::string  plot_location,
NearlinePlot plot 
)
inlinestatic

Definition at line 756 of file NearlinePlotMakerDev.h.

756  {
757 
758  NearlinePlotInfo plot_info = plot->fPlotInfo;
759  std::string metric_name = plot_info.fMetricName;
760  int channel = plot_info.fChannel;
761  std::string metric_details = plot_info.fMetricDetails;
762  plot_location = plot_location + "/" + plot_info.GetHist2DOutputName();
763 
764  std::string output;
765  output += "<hr>\n";
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";
773  return output;
774 
775  }
std::string fMetricName
std::string string
Definition: nybbler.cc:12
std::string fMetricDetails
std::string GetHist2DOutputName()
std::string to_string(ModuleType const mt)
Definition: ModuleType.h:34
NearlinePlotInfo fPlotInfo
static std::string NearlineHTML::MakeHistogram2D ( std::string  plot_location,
NearlinePlot plot 
)
inlinestatic

Definition at line 756 of file NearlinePlotMaker.h.

756  {
757 
758  NearlinePlotInfo plot_info = plot->fPlotInfo;
759  std::string metric_name = plot_info.fMetricName;
760  int channel = plot_info.fChannel;
761  std::string metric_details = plot_info.fMetricDetails;
762  plot_location = plot_location + "/" + plot_info.GetHist2DOutputName();
763 
764  std::string output;
765  output += "<hr>\n";
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";
773  return output;
774 
775  }
std::string fMetricName
std::string string
Definition: nybbler.cc:12
std::string fMetricDetails
std::string GetHist2DOutputName()
std::string to_string(ModuleType const mt)
Definition: ModuleType.h:34
NearlinePlotInfo fPlotInfo
static std::string NearlineHTML::MakeHistogramPair ( std::string  plot_location,
NearlinePlot plot 
)
inlinestatic

Definition at line 777 of file NearlinePlotMaker.h.

777  {
778 
779  NearlinePlotInfo plot_info = plot->fPlotInfo;
780  std::string metric_name = plot_info.fMetricName;
781  int channel = plot_info.fChannel;
782  std::string metric_details = plot_info.fMetricDetails;
783 
784  std::string plot_location_histo = plot_location + "/" + plot_info.GetHistOutputName();
785  std::string plot_location_histo2d = plot_location + "/" + plot_info.GetHist2DOutputName();
786 
787  std::string output;
788  output += "<hr>\n";
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";
794  output += "<tr>\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";
797  output += "</tr>\n";
798  output += "</table>\n";
799 
800  return output;
801 
802  }
std::string fMetricName
std::string string
Definition: nybbler.cc:12
std::string fMetricDetails
std::string GetHistOutputName()
std::string GetHist2DOutputName()
std::string to_string(ModuleType const mt)
Definition: ModuleType.h:34
NearlinePlotInfo fPlotInfo
static std::string NearlineHTML::MakeHistogramPair ( std::string  plot_location,
NearlinePlot plot 
)
inlinestatic

Definition at line 777 of file NearlinePlotMakerDev.h.

777  {
778 
779  NearlinePlotInfo plot_info = plot->fPlotInfo;
780  std::string metric_name = plot_info.fMetricName;
781  int channel = plot_info.fChannel;
782  std::string metric_details = plot_info.fMetricDetails;
783 
784  std::string plot_location_histo = plot_location + "/" + plot_info.GetHistOutputName();
785  std::string plot_location_histo2d = plot_location + "/" + plot_info.GetHist2DOutputName();
786 
787  std::string output;
788  output += "<hr>\n";
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";
794  output += "<tr>\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";
797  output += "</tr>\n";
798  output += "</table>\n";
799 
800  return output;
801 
802  }
std::string fMetricName
std::string string
Definition: nybbler.cc:12
std::string fMetricDetails
std::string GetHistOutputName()
std::string GetHist2DOutputName()
std::string to_string(ModuleType const mt)
Definition: ModuleType.h:34
NearlinePlotInfo fPlotInfo
static std::string NearlineHTML::MakePageHeader ( int  Ndays)
inlinestatic

Definition at line 919 of file NearlinePlotMaker.h.

919  {
920 
921  std::string output;
922  output+="<head>\n";
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";
931 
932  return output;
933  }
std::string string
Definition: nybbler.cc:12
std::string to_string(ModuleType const mt)
Definition: ModuleType.h:34
static std::string NearlineHTML::MakePageHeader ( int  Ndays)
inlinestatic

Definition at line 919 of file NearlinePlotMakerDev.h.

919  {
920 
921  std::string output;
922  output+="<head>\n";
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";
931 
932  return output;
933  }
std::string string
Definition: nybbler.cc:12
std::string to_string(ModuleType const mt)
Definition: ModuleType.h:34
static std::string NearlineHTML::MakePlotSet ( std::string  plot_location,
NearlinePlot plot 
)
inlinestatic

Definition at line 842 of file NearlinePlotMaker.h.

842  {
843 
844  NearlinePlotInfo plot_info=plot->fPlotInfo;
845  NearlinePlotEnables plot_enables=plot->fPlotEnables;
846 
847  std::string metric_name = plot_info.fMetricName;
848  std::string output;
849  output += "\n\n\n";
850 
851  if(plot_enables.fMake2DHisto) output += MakeHistogramPair(plot_location, plot) + "\n";
852  else output += MakeHistogram(plot_location, plot) + "\n";
853  // output += "\n";
854  if(plot_enables.fMakeMetricTimeGraph) output += MakeGraphPair(plot_location, plot, false) + "\n";
855  // output += "\n";
856  if(plot_enables.fMakeMetricTimeGraph) output += MakeGraphPair(plot_location, plot, true) +"\n";
857  output += "\n\n";
858  output += "<p>\n";
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";
862  output += "</p>\n";
863  output += "<BR><BR><BR>\n\n";
864 
865  return output;
866 
867  }
std::string fMetricName
std::string string
Definition: nybbler.cc:12
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)
NearlinePlotEnables fPlotEnables
NearlinePlotInfo fPlotInfo
static std::string NearlineHTML::MakePlotSet ( std::string  plot_location,
NearlinePlot plot 
)
inlinestatic

Definition at line 842 of file NearlinePlotMakerDev.h.

842  {
843 
844  NearlinePlotInfo plot_info=plot->fPlotInfo;
845  NearlinePlotEnables plot_enables=plot->fPlotEnables;
846 
847  std::string metric_name = plot_info.fMetricName;
848  std::string output;
849  output += "\n\n\n";
850 
851  if(plot_enables.fMake2DHisto) output += MakeHistogramPair(plot_location, plot) + "\n";
852  else output += MakeHistogram(plot_location, plot) + "\n";
853  // output += "\n";
854  if(plot_enables.fMakeMetricTimeGraph) output += MakeGraphPair(plot_location, plot, false) + "\n";
855  // output += "\n";
856  if(plot_enables.fMakeMetricTimeGraph) output += MakeGraphPair(plot_location, plot, true) +"\n";
857  output += "\n\n";
858  output += "<p>\n";
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";
862  output += "</p>\n";
863  output += "<BR><BR><BR>\n\n";
864 
865  return output;
866 
867  }
std::string fMetricName
std::string string
Definition: nybbler.cc:12
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)
NearlinePlotEnables fPlotEnables
NearlinePlotInfo fPlotInfo
static std::string NearlineHTML::MakeStartYearPlot ( std::string  relative_plot_path)
inlinestatic

Definition at line 714 of file NearlinePlotMakerDev.h.

714  {
715 
716  std::string output;
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";
721  output+="<p>\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";
724  output+="<BR>\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";
726  output+="<BR>\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";
728  output+="<BR>\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";
730  output+="</p>\n";
731  output+="<BR><BR><BR>\n";
732 
733  return output;
734  }
std::string string
Definition: nybbler.cc:12
static std::string NearlineHTML::MakeStartYearPlot ( std::string  relative_plot_path)
inlinestatic

Definition at line 714 of file NearlinePlotMaker.h.

714  {
715 
716  std::string output;
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";
721  output+="<p>\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";
724  output+="<BR>\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";
726  output+="<BR>\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";
728  output+="<BR>\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";
730  output+="</p>\n";
731  output+="<BR><BR><BR>\n";
732 
733  return output;
734  }
std::string string
Definition: nybbler.cc:12

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