#include <NearlinePlotMaker.h>
|
| NearlineProcessingVersion () |
|
std::string | GetNearlineVersionFromFileName (std::string fileName) |
|
void | AddFile (std::string fileName, int run) |
|
TGraph * | GetGraph () |
|
TCanvas * | GetVersionCanvas (TPaveText *updateText, int time_ago, int XNow, int width=1200, int height=800) |
|
void | PrintVersionPlots (std::string plot_dir, int Ndays, TPaveText *updateText, int time_ago, int XNow, int width=1200, int height=800) |
|
| NearlineProcessingVersion () |
|
std::string | GetNearlineVersionFromFileName (std::string fileName) |
|
void | AddFile (std::string fileName, int run) |
|
TGraph * | GetGraph () |
|
TCanvas * | GetVersionCanvas (TPaveText *updateText, int time_ago, int XNow, int width=1200, int height=800) |
|
void | PrintVersionPlots (std::string plot_dir, int Ndays, TPaveText *updateText, int time_ago, int XNow, int width=1200, int height=800) |
|
Definition at line 937 of file NearlinePlotMaker.h.
NearlineProcessingVersion::NearlineProcessingVersion |
( |
| ) |
|
|
inline |
Definition at line 944 of file NearlinePlotMaker.h.
std::vector< int > fVersionInts
std::vector< std::string > fVersionStrings
NearlineProcessingVersion::NearlineProcessingVersion |
( |
| ) |
|
|
inline |
Definition at line 944 of file NearlinePlotMakerDev.h.
std::vector< int > fVersionInts
std::vector< std::string > fVersionStrings
void NearlineProcessingVersion::AddFile |
( |
std::string |
fileName, |
|
|
int |
run |
|
) |
| |
|
inline |
Definition at line 968 of file NearlinePlotMaker.h.
972 int version_index=-1;
976 if(version_index == -1){
983 std::cerr <<
"INFO : " <<
"run " <<
run <<
" version " << version <<
std::endl;
std::string GetNearlineVersionFromFileName(std::string fileName)
std::vector< int > fVersionInts
std::vector< std::string > fVersionStrings
QTextStream & endl(QTextStream &s)
void NearlineProcessingVersion::AddFile |
( |
std::string |
fileName, |
|
|
int |
run |
|
) |
| |
|
inline |
Definition at line 968 of file NearlinePlotMakerDev.h.
972 int version_index=-1;
976 if(version_index == -1){
983 std::cerr <<
"INFO : " <<
"run " <<
run <<
" version " << version <<
std::endl;
std::string GetNearlineVersionFromFileName(std::string fileName)
std::vector< int > fVersionInts
std::vector< std::string > fVersionStrings
QTextStream & endl(QTextStream &s)
TGraph* NearlineProcessingVersion::GetGraph |
( |
| ) |
|
|
inline |
TGraph* NearlineProcessingVersion::GetGraph |
( |
| ) |
|
|
inline |
Definition at line 951 of file NearlinePlotMaker.h.
953 std::string file_location =
"/lbne/data2/users/lbnedaq/nearline/";
954 size_t file_location_size = file_location.size();
956 std::string output = fileName.substr(file_location_size);
957 output = output.substr(0, output.find(
"/"));
959 if(output.size()==0){
962 else if(output.find(
"v") != 0){
Definition at line 951 of file NearlinePlotMakerDev.h.
953 std::string file_location =
"/lbne/data2/users/lbnedaq/nearline/";
954 size_t file_location_size = file_location.size();
956 std::string output = fileName.substr(file_location_size);
957 output = output.substr(0, output.find(
"/"));
959 if(output.size()==0){
962 else if(output.find(
"v") != 0){
static std::string NearlineProcessingVersion::GetPlotName |
( |
int |
Ndays | ) |
|
|
inlinestatic |
static std::string NearlineProcessingVersion::GetPlotName |
( |
int |
Ndays | ) |
|
|
inlinestatic |
TCanvas* NearlineProcessingVersion::GetVersionCanvas |
( |
TPaveText * |
updateText, |
|
|
int |
time_ago, |
|
|
int |
XNow, |
|
|
int |
width = 1200 , |
|
|
int |
height = 800 |
|
) |
| |
|
inline |
Definition at line 994 of file NearlinePlotMakerDev.h.
995 TCanvas* can =
new TCanvas(
"can_processing_version",
"can_processing_version", width, height);
996 can->SetRightMargin(0.20);
1000 gr->SetTitle(
"Nearline Processing Version");
1001 gr->GetXaxis()->SetTitle(
"Run Number");
std::vector< std::string > fVersionStrings
TCanvas* NearlineProcessingVersion::GetVersionCanvas |
( |
TPaveText * |
updateText, |
|
|
int |
time_ago, |
|
|
int |
XNow, |
|
|
int |
width = 1200 , |
|
|
int |
height = 800 |
|
) |
| |
|
inline |
Definition at line 994 of file NearlinePlotMaker.h.
995 TCanvas* can =
new TCanvas(
"can_processing_version",
"can_processing_version", width, height);
996 can->SetRightMargin(0.20);
1000 gr->SetTitle(
"Nearline Processing Version");
1001 gr->GetXaxis()->SetTitle(
"Run Number");
std::vector< std::string > fVersionStrings
static std::string NearlineProcessingVersion::MakeVersionPlotsHTML |
( |
std::string |
relative_plot_dir, |
|
|
int |
Ndays |
|
) |
| |
|
inlinestatic |
Definition at line 1038 of file NearlinePlotMakerDev.h.
1041 output+=
"<h3>Nearline Processing Version as a function of Run.</h3>\n";
1042 output+=
"<figure>\n";
1043 output+=
"<img src=\"" + relative_plot_dir +
"/" +
GetPlotName(Ndays) +
"\" width=\"800\">\n";
1044 output+=
"</figure>\n";
1045 output+=
"<BR><BR><BR>\n";
static std::string GetPlotName(int Ndays)
static std::string NearlineProcessingVersion::MakeVersionPlotsHTML |
( |
std::string |
relative_plot_dir, |
|
|
int |
Ndays |
|
) |
| |
|
inlinestatic |
Definition at line 1038 of file NearlinePlotMaker.h.
1041 output+=
"<h3>Nearline Processing Version as a function of Run.</h3>\n";
1042 output+=
"<figure>\n";
1043 output+=
"<img src=\"" + relative_plot_dir +
"/" +
GetPlotName(Ndays) +
"\" width=\"800\">\n";
1044 output+=
"</figure>\n";
1045 output+=
"<BR><BR><BR>\n";
static std::string GetPlotName(int Ndays)
void NearlineProcessingVersion::PrintVersionPlots |
( |
std::string |
plot_dir, |
|
|
int |
Ndays, |
|
|
TPaveText * |
updateText, |
|
|
int |
time_ago, |
|
|
int |
XNow, |
|
|
int |
width = 1200 , |
|
|
int |
height = 800 |
|
) |
| |
|
inline |
Definition at line 1026 of file NearlinePlotMakerDev.h.
1027 TCanvas *can =
GetVersionCanvas(updateText, time_ago, XNow, width, height);
1028 can->Print((plot_dir +
"/" +
GetPlotName(Ndays)).c_str());
TCanvas * GetVersionCanvas(TPaveText *updateText, int time_ago, int XNow, int width=1200, int height=800)
static std::string GetPlotName(int Ndays)
std::vector< std::string > fVersionStrings
QTextStream & endl(QTextStream &s)
void NearlineProcessingVersion::PrintVersionPlots |
( |
std::string |
plot_dir, |
|
|
int |
Ndays, |
|
|
TPaveText * |
updateText, |
|
|
int |
time_ago, |
|
|
int |
XNow, |
|
|
int |
width = 1200 , |
|
|
int |
height = 800 |
|
) |
| |
|
inline |
Definition at line 1026 of file NearlinePlotMaker.h.
1027 TCanvas *can =
GetVersionCanvas(updateText, time_ago, XNow, width, height);
1028 can->Print((plot_dir +
"/" +
GetPlotName(Ndays)).c_str());
TCanvas * GetVersionCanvas(TPaveText *updateText, int time_ago, int XNow, int width=1200, int height=800)
static std::string GetPlotName(int Ndays)
std::vector< std::string > fVersionStrings
QTextStream & endl(QTextStream &s)
TGraph * NearlineProcessingVersion::fGr |
std::vector< int > NearlineProcessingVersion::fVersionInts |
The documentation for this struct was generated from the following files: