#include <NearlinePlotMaker.h>
|
| NearlineProcessingTimePlot () |
|
void | AddFile (std::string filename, int run, int Ndays) |
|
TGraph * | GetTotalTimeGraph () |
|
TGraph * | GetNearlineAnaTimeGraph () |
|
TGraph * | GetNearlineMuonTimeGraph () |
|
TMultiGraph * | GetTimeMultiGraph () |
|
TCanvas * | GetTimeCanvas (TPaveText *updateText, int time_ago, int XNow, int width=1200, int height=800) |
|
std::string | GetPlotName (int Ndays) |
|
void | PrintTimePlots (std::string plot_dir, int Ndays, TPaveText *updateText, int time_ago, int XNow, int width=1200, int height=800) |
|
std::string | MakeTimePlotsHTML (std::string relative_plot_dir, int Ndays) |
|
| NearlineProcessingTimePlot () |
|
void | AddFile (std::string filename, int run, int Ndays) |
|
TGraph * | GetTotalTimeGraph () |
|
TGraph * | GetNearlineAnaTimeGraph () |
|
TGraph * | GetNearlineMuonTimeGraph () |
|
TMultiGraph * | GetTimeMultiGraph () |
|
TCanvas * | GetTimeCanvas (TPaveText *updateText, int time_ago, int XNow, int width=1200, int height=800) |
|
std::string | GetPlotName (int Ndays) |
|
void | PrintTimePlots (std::string plot_dir, int Ndays, TPaveText *updateText, int time_ago, int XNow, int width=1200, int height=800) |
|
std::string | MakeTimePlotsHTML (std::string relative_plot_dir, int Ndays) |
|
Definition at line 1244 of file NearlinePlotMaker.h.
NearlineProcessingTimePlot::NearlineProcessingTimePlot |
( |
| ) |
|
|
inline |
Definition at line 1256 of file NearlinePlotMaker.h.
std::vector< int > fVecNearlineMuonTime
std::vector< int > fVecNearlineAnaTime
std::vector< int > fVecTotalTime
std::vector< int > fVecRunTotal
std::vector< int > fVecRunNearlineAna
std::vector< int > fVecRunNearlineMuon
NearlineProcessingTimePlot::NearlineProcessingTimePlot |
( |
| ) |
|
|
inline |
Definition at line 1256 of file NearlinePlotMakerDev.h.
std::vector< int > fVecNearlineMuonTime
std::vector< int > fVecNearlineAnaTime
std::vector< int > fVecTotalTime
std::vector< int > fVecRunTotal
std::vector< int > fVecRunNearlineAna
std::vector< int > fVecRunNearlineMuon
void NearlineProcessingTimePlot::AddFile |
( |
std::string |
filename, |
|
|
int |
run, |
|
|
int |
Ndays |
|
) |
| |
|
inline |
Definition at line 1266 of file NearlinePlotMaker.h.
1268 std::cerr <<
"INFO : " <<
"run " <<
run <<
" StartDate: " << this_processing_time.fStartDate.AsString() <<
std::endl;
1269 std::cerr <<
"INFO : " <<
"run " <<
run <<
" EndDate: " << this_processing_time.fEndDate.AsString() <<
std::endl;
1274 int total_time = this_processing_time.fEndDate.Get() - this_processing_time.fStartDate.Get();
1280 int nearline_ana_time = this_processing_time.fEndNearlineAnaDate.Get() - this_processing_time.fStartDate.Get();
1281 int nearline_muon_time = this_processing_time.fEndNearlineMuonDate.Get() - this_processing_time.fEndNearlineAnaDate.Get();
1284 nearline_ana_time = 0;
1285 nearline_muon_time = 0;
1288 nearline_muon_time = 0;
1290 if(nearline_ana_time!=0){
1294 if(nearline_muon_time!=0){
std::vector< int > fVecNearlineMuonTime
std::vector< int > fVecNearlineAnaTime
std::vector< int > fVecTotalTime
static TDatime const InvalidDateTime
std::vector< int > fVecRunTotal
std::vector< int > fVecRunNearlineAna
std::vector< int > fVecRunNearlineMuon
QTextStream & endl(QTextStream &s)
void NearlineProcessingTimePlot::AddFile |
( |
std::string |
filename, |
|
|
int |
run, |
|
|
int |
Ndays |
|
) |
| |
|
inline |
Definition at line 1266 of file NearlinePlotMakerDev.h.
1268 std::cerr <<
"INFO : " <<
"run " <<
run <<
" StartDate: " << this_processing_time.fStartDate.AsString() <<
std::endl;
1269 std::cerr <<
"INFO : " <<
"run " <<
run <<
" EndDate: " << this_processing_time.fEndDate.AsString() <<
std::endl;
1274 int total_time = this_processing_time.fEndDate.Get() - this_processing_time.fStartDate.Get();
1280 int nearline_ana_time = this_processing_time.fEndNearlineAnaDate.Get() - this_processing_time.fStartDate.Get();
1281 int nearline_muon_time = this_processing_time.fEndNearlineMuonDate.Get() - this_processing_time.fEndNearlineAnaDate.Get();
1284 nearline_ana_time = 0;
1285 nearline_muon_time = 0;
1288 nearline_muon_time = 0;
1290 if(nearline_ana_time!=0){
1294 if(nearline_muon_time!=0){
std::vector< int > fVecNearlineMuonTime
std::vector< int > fVecNearlineAnaTime
std::vector< int > fVecTotalTime
static TDatime const InvalidDateTime
std::vector< int > fVecRunTotal
std::vector< int > fVecRunNearlineAna
std::vector< int > fVecRunNearlineMuon
QTextStream & endl(QTextStream &s)
TGraph* NearlineProcessingTimePlot::GetNearlineAnaTimeGraph |
( |
| ) |
|
|
inline |
Definition at line 1312 of file NearlinePlotMaker.h.
1315 gr->SetTitle(
"Nearline Ana Processing Time");
1316 gr->SetMarkerColor(kRed);
1317 gr->SetMarkerStyle(21);
1318 gr->SetMarkerSize(1.5);
1319 gr->GetXaxis()->SetTitle(
"Run Number");
1320 gr->GetYaxis()->SetTitle(
"Processing Time in Seconds");
std::vector< int > fVecNearlineAnaTime
std::vector< int > fVecRunNearlineAna
TGraph* NearlineProcessingTimePlot::GetNearlineAnaTimeGraph |
( |
| ) |
|
|
inline |
Definition at line 1312 of file NearlinePlotMakerDev.h.
1315 gr->SetTitle(
"Nearline Ana Processing Time");
1316 gr->SetMarkerColor(kRed);
1317 gr->SetMarkerStyle(21);
1318 gr->SetMarkerSize(1.5);
1319 gr->GetXaxis()->SetTitle(
"Run Number");
1320 gr->GetYaxis()->SetTitle(
"Processing Time in Seconds");
std::vector< int > fVecNearlineAnaTime
std::vector< int > fVecRunNearlineAna
TGraph* NearlineProcessingTimePlot::GetNearlineMuonTimeGraph |
( |
| ) |
|
|
inline |
Definition at line 1323 of file NearlinePlotMaker.h.
1326 gr->SetTitle(
"Nearline Muon Processing Time");
1327 gr->SetMarkerColor(kBlack);
1328 gr->SetMarkerStyle(22);
1329 gr->SetMarkerSize(1.5);
1330 gr->GetXaxis()->SetTitle(
"Run Number");
1331 gr->GetYaxis()->SetTitle(
"Processing Time in Seconds");
std::vector< int > fVecNearlineMuonTime
std::vector< int > fVecRunNearlineMuon
TGraph* NearlineProcessingTimePlot::GetNearlineMuonTimeGraph |
( |
| ) |
|
|
inline |
Definition at line 1323 of file NearlinePlotMakerDev.h.
1326 gr->SetTitle(
"Nearline Muon Processing Time");
1327 gr->SetMarkerColor(kBlack);
1328 gr->SetMarkerStyle(22);
1329 gr->SetMarkerSize(1.5);
1330 gr->GetXaxis()->SetTitle(
"Run Number");
1331 gr->GetYaxis()->SetTitle(
"Processing Time in Seconds");
std::vector< int > fVecNearlineMuonTime
std::vector< int > fVecRunNearlineMuon
std::string NearlineProcessingTimePlot::GetPlotName |
( |
int |
Ndays | ) |
|
|
inline |
Definition at line 1378 of file NearlinePlotMakerDev.h.
1380 if(
fIsEVD) sprintf(name,
"ProcessingTimeEvd_%.3i_days.png", Ndays);
1381 else sprintf(name,
"ProcessingTime_%.3i_days.png", Ndays);
std::string NearlineProcessingTimePlot::GetPlotName |
( |
int |
Ndays | ) |
|
|
inline |
Definition at line 1378 of file NearlinePlotMaker.h.
1380 if(
fIsEVD) sprintf(name,
"ProcessingTimeEvd_%.3i_days.png", Ndays);
1381 else sprintf(name,
"ProcessingTime_%.3i_days.png", Ndays);
TCanvas* NearlineProcessingTimePlot::GetTimeCanvas |
( |
TPaveText * |
updateText, |
|
|
int |
time_ago, |
|
|
int |
XNow, |
|
|
int |
width = 1200 , |
|
|
int |
height = 800 |
|
) |
| |
|
inline |
Definition at line 1358 of file NearlinePlotMakerDev.h.
1359 TCanvas* can =
new TCanvas(
"can_processing_time",
"can_processing_time", width, height);
1360 can->SetRightMargin(0.20);
1362 can->cd()->SetLogy();
1364 if(
fIsEVD) gr->SetTitle(
"Nearline Event Display Processing Time");
1365 else gr->SetTitle(
"Nearline Processing Time");
1366 gr->GetXaxis()->SetTitle(
"Run Number");
1367 gr->GetYaxis()->SetTitle(
"Processing Time in Seconds");
TMultiGraph * GetTimeMultiGraph()
TCanvas* NearlineProcessingTimePlot::GetTimeCanvas |
( |
TPaveText * |
updateText, |
|
|
int |
time_ago, |
|
|
int |
XNow, |
|
|
int |
width = 1200 , |
|
|
int |
height = 800 |
|
) |
| |
|
inline |
Definition at line 1358 of file NearlinePlotMaker.h.
1359 TCanvas* can =
new TCanvas(
"can_processing_time",
"can_processing_time", width, height);
1360 can->SetRightMargin(0.20);
1362 can->cd()->SetLogy();
1364 if(
fIsEVD) gr->SetTitle(
"Nearline Event Display Processing Time");
1365 else gr->SetTitle(
"Nearline Processing Time");
1366 gr->GetXaxis()->SetTitle(
"Run Number");
1367 gr->GetYaxis()->SetTitle(
"Processing Time in Seconds");
TMultiGraph * GetTimeMultiGraph()
TMultiGraph* NearlineProcessingTimePlot::GetTimeMultiGraph |
( |
| ) |
|
|
inline |
Definition at line 1334 of file NearlinePlotMaker.h.
1336 TMultiGraph* mgr =
new TMultiGraph();
1339 else fLegend = TLegend(0.75,0.75,0.95,0.95);
1343 fLegend.AddEntry(gr, gr->GetTitle(),
"p");
1348 fLegend.AddEntry(gr, gr->GetTitle(),
"p");
1353 fLegend.AddEntry(gr, gr->GetTitle(),
"p");
TGraph * GetNearlineMuonTimeGraph()
TGraph * GetNearlineAnaTimeGraph()
TGraph * GetTotalTimeGraph()
TMultiGraph* NearlineProcessingTimePlot::GetTimeMultiGraph |
( |
| ) |
|
|
inline |
Definition at line 1334 of file NearlinePlotMakerDev.h.
1336 TMultiGraph* mgr =
new TMultiGraph();
1339 else fLegend = TLegend(0.75,0.75,0.95,0.95);
1343 fLegend.AddEntry(gr, gr->GetTitle(),
"p");
1348 fLegend.AddEntry(gr, gr->GetTitle(),
"p");
1353 fLegend.AddEntry(gr, gr->GetTitle(),
"p");
TGraph * GetNearlineMuonTimeGraph()
TGraph * GetNearlineAnaTimeGraph()
TGraph * GetTotalTimeGraph()
TGraph* NearlineProcessingTimePlot::GetTotalTimeGraph |
( |
| ) |
|
|
inline |
Definition at line 1300 of file NearlinePlotMaker.h.
1303 if(
fIsEVD) gr->SetTitle(
"Nearline Event Display Processing Time");
1304 else gr->SetTitle(
"Nearline Processing Time");
1305 gr->SetMarkerColor(kBlue);
1306 gr->SetMarkerStyle(20);
1307 gr->SetMarkerSize(1.5);
1308 gr->GetXaxis()->SetTitle(
"Run Number");
1309 gr->GetYaxis()->SetTitle(
"Processing Time in Seconds");
std::vector< int > fVecTotalTime
std::vector< int > fVecRunTotal
TGraph* NearlineProcessingTimePlot::GetTotalTimeGraph |
( |
| ) |
|
|
inline |
Definition at line 1300 of file NearlinePlotMakerDev.h.
1303 if(
fIsEVD) gr->SetTitle(
"Nearline Event Display Processing Time");
1304 else gr->SetTitle(
"Nearline Processing Time");
1305 gr->SetMarkerColor(kBlue);
1306 gr->SetMarkerStyle(20);
1307 gr->SetMarkerSize(1.5);
1308 gr->GetXaxis()->SetTitle(
"Run Number");
1309 gr->GetYaxis()->SetTitle(
"Processing Time in Seconds");
std::vector< int > fVecTotalTime
std::vector< int > fVecRunTotal
Definition at line 1393 of file NearlinePlotMaker.h.
1396 if(
fIsEVD) output+=
"<h3>Nearline Event Display Processing Time as a function of Run.</h3>\n";
1397 else output+=
"<h3>Nearline Processing Time as a function of Run.</h3>\n";
1398 output+=
"<figure>\n";
1399 output+=
"<img src=\"" + relative_plot_dir +
"/" +
GetPlotName(Ndays) +
"\" width=\"800\">\n";
1400 output+=
"</figure>\n";
1402 if(
fIsEVD) output+=
"<b>Nearline Event Display Processing Time</b> - Total time taken to run this Nearline Processing Job<BR>\n";
1404 output+=
"<b>Nearline Processing Time</b> - Total time taken to run this Nearline Processing Job<BR>\n";
1405 output+=
"<b>Nearline Ana Processing Time</b> - Time taken to run the NearlineAna part of the Job<BR>\n";
1406 output+=
"<b>Nearline Muon Processing Time</b> - Time taken to run the Nearline Muon Counter part of the Job<BR>\n";
1409 output+=
"<BR><BR><BR>\n";
std::string GetPlotName(int Ndays)
Definition at line 1393 of file NearlinePlotMakerDev.h.
1396 if(
fIsEVD) output+=
"<h3>Nearline Event Display Processing Time as a function of Run.</h3>\n";
1397 else output+=
"<h3>Nearline Processing Time as a function of Run.</h3>\n";
1398 output+=
"<figure>\n";
1399 output+=
"<img src=\"" + relative_plot_dir +
"/" +
GetPlotName(Ndays) +
"\" width=\"800\">\n";
1400 output+=
"</figure>\n";
1402 if(
fIsEVD) output+=
"<b>Nearline Event Display Processing Time</b> - Total time taken to run this Nearline Processing Job<BR>\n";
1404 output+=
"<b>Nearline Processing Time</b> - Total time taken to run this Nearline Processing Job<BR>\n";
1405 output+=
"<b>Nearline Ana Processing Time</b> - Time taken to run the NearlineAna part of the Job<BR>\n";
1406 output+=
"<b>Nearline Muon Processing Time</b> - Time taken to run the Nearline Muon Counter part of the Job<BR>\n";
1409 output+=
"<BR><BR><BR>\n";
std::string GetPlotName(int Ndays)
void NearlineProcessingTimePlot::PrintTimePlots |
( |
std::string |
plot_dir, |
|
|
int |
Ndays, |
|
|
TPaveText * |
updateText, |
|
|
int |
time_ago, |
|
|
int |
XNow, |
|
|
int |
width = 1200 , |
|
|
int |
height = 800 |
|
) |
| |
|
inline |
Definition at line 1385 of file NearlinePlotMaker.h.
1386 TCanvas *can =
GetTimeCanvas(updateText, time_ago, XNow, width, height);
1387 can->Print((plot_dir +
"/" +
GetPlotName(Ndays)).c_str());
TCanvas * GetTimeCanvas(TPaveText *updateText, int time_ago, int XNow, int width=1200, int height=800)
std::string GetPlotName(int Ndays)
void NearlineProcessingTimePlot::PrintTimePlots |
( |
std::string |
plot_dir, |
|
|
int |
Ndays, |
|
|
TPaveText * |
updateText, |
|
|
int |
time_ago, |
|
|
int |
XNow, |
|
|
int |
width = 1200 , |
|
|
int |
height = 800 |
|
) |
| |
|
inline |
Definition at line 1385 of file NearlinePlotMakerDev.h.
1386 TCanvas *can =
GetTimeCanvas(updateText, time_ago, XNow, width, height);
1387 can->Print((plot_dir +
"/" +
GetPlotName(Ndays)).c_str());
TCanvas * GetTimeCanvas(TPaveText *updateText, int time_ago, int XNow, int width=1200, int height=800)
std::string GetPlotName(int Ndays)
bool NearlineProcessingTimePlot::fIsEVD |
TLegend NearlineProcessingTimePlot::fLegend |
std::vector< int > NearlineProcessingTimePlot::fVecNearlineAnaTime |
std::vector< int > NearlineProcessingTimePlot::fVecNearlineMuonTime |
std::vector< int > NearlineProcessingTimePlot::fVecRunNearlineAna |
std::vector< int > NearlineProcessingTimePlot::fVecRunNearlineMuon |
std::vector< int > NearlineProcessingTimePlot::fVecRunTotal |
std::vector< int > NearlineProcessingTimePlot::fVecTotalTime |
The documentation for this struct was generated from the following files: