#include <NearlinePlotMaker.h>
|
| NearlineProcessingPedestal () |
|
void | AddFile (std::string fileName, int run) |
|
TGraph * | GetGraph () |
|
TCanvas * | GetPedestalCanvas (TPaveText *updateText, int time_ago, int XNow, int width=1200, int height=800) |
|
void | PrintPedestalPlots (std::string plot_dir, int Ndays, TPaveText *updateText, int time_ago, int XNow, int width=1200, int height=800) |
|
| NearlineProcessingPedestal () |
|
void | AddFile (std::string fileName, int run) |
|
TGraph * | GetGraph () |
|
TCanvas * | GetPedestalCanvas (TPaveText *updateText, int time_ago, int XNow, int width=1200, int height=800) |
|
void | PrintPedestalPlots (std::string plot_dir, int Ndays, TPaveText *updateText, int time_ago, int XNow, int width=1200, int height=800) |
|
Definition at line 1052 of file NearlinePlotMaker.h.
NearlineProcessingPedestal::NearlineProcessingPedestal |
( |
| ) |
|
|
inline |
Definition at line 1071 of file NearlinePlotMaker.h.
std::vector< std::string > fPedestalStrings
std::vector< int > fPedestalInts
NearlineProcessingPedestal::NearlineProcessingPedestal |
( |
| ) |
|
|
inline |
Definition at line 1071 of file NearlinePlotMakerDev.h.
std::vector< std::string > fPedestalStrings
std::vector< int > fPedestalInts
void NearlineProcessingPedestal::AddFile |
( |
std::string |
fileName, |
|
|
int |
run |
|
) |
| |
|
inline |
Definition at line 1077 of file NearlinePlotMaker.h.
1081 int version_index=-1;
1085 if(version_index == -1){
1092 std::cerr <<
"INFO : " <<
"run " <<
run <<
" version " << version <<
std::endl;
std::vector< std::string > fPedestalStrings
std::vector< int > fPedestalInts
static std::string GetPedestalFileName(std::string done_file_name)
QTextStream & endl(QTextStream &s)
void NearlineProcessingPedestal::AddFile |
( |
std::string |
fileName, |
|
|
int |
run |
|
) |
| |
|
inline |
Definition at line 1077 of file NearlinePlotMakerDev.h.
1081 int version_index=-1;
1085 if(version_index == -1){
1092 std::cerr <<
"INFO : " <<
"run " <<
run <<
" version " << version <<
std::endl;
std::vector< std::string > fPedestalStrings
std::vector< int > fPedestalInts
static std::string GetPedestalFileName(std::string done_file_name)
QTextStream & endl(QTextStream &s)
TGraph* NearlineProcessingPedestal::GetGraph |
( |
| ) |
|
|
inline |
TGraph* NearlineProcessingPedestal::GetGraph |
( |
| ) |
|
|
inline |
TCanvas* NearlineProcessingPedestal::GetPedestalCanvas |
( |
TPaveText * |
updateText, |
|
|
int |
time_ago, |
|
|
int |
XNow, |
|
|
int |
width = 1200 , |
|
|
int |
height = 800 |
|
) |
| |
|
inline |
Definition at line 1103 of file NearlinePlotMaker.h.
1104 TCanvas* can =
new TCanvas(
"can_processing_version",
"can_processing_version", width, height);
1105 can->SetRightMargin(0.20);
1109 gr->SetTitle(
"Nearline Processing Pedestal");
1110 gr->GetXaxis()->SetTitle(
"Run Number");
std::vector< std::string > fPedestalStrings
TCanvas* NearlineProcessingPedestal::GetPedestalCanvas |
( |
TPaveText * |
updateText, |
|
|
int |
time_ago, |
|
|
int |
XNow, |
|
|
int |
width = 1200 , |
|
|
int |
height = 800 |
|
) |
| |
|
inline |
Definition at line 1103 of file NearlinePlotMakerDev.h.
1104 TCanvas* can =
new TCanvas(
"can_processing_version",
"can_processing_version", width, height);
1105 can->SetRightMargin(0.20);
1109 gr->SetTitle(
"Nearline Processing Pedestal");
1110 gr->GetXaxis()->SetTitle(
"Run Number");
std::vector< std::string > fPedestalStrings
Definition at line 1054 of file NearlinePlotMakerDev.h.
1055 std::ifstream in_file(done_file_name.c_str());
1058 while(std::getline(in_file, line)){
1060 if(line.find(
"NEARLINE_PEDESTAL ") != std::string::npos) pedestal_file = line.substr(
std::string(
"NEARLINE_PEDESTAL ").size());
1063 return pedestal_file;
def line(rflist, normalization=13700 *units.eplus)
Definition at line 1054 of file NearlinePlotMaker.h.
1055 std::ifstream in_file(done_file_name.c_str());
1058 while(std::getline(in_file, line)){
1060 if(line.find(
"NEARLINE_PEDESTAL ") != std::string::npos) pedestal_file = line.substr(
std::string(
"NEARLINE_PEDESTAL ").size());
1063 return pedestal_file;
def line(rflist, normalization=13700 *units.eplus)
static std::string NearlineProcessingPedestal::GetPlotName |
( |
int |
Ndays | ) |
|
|
inlinestatic |
Definition at line 1128 of file NearlinePlotMaker.h.
1130 sprintf(name,
"ProcessingPedestal_%.3i_days.png", Ndays);
static std::string NearlineProcessingPedestal::GetPlotName |
( |
int |
Ndays | ) |
|
|
inlinestatic |
static std::string NearlineProcessingPedestal::MakePedestalPlotsHTML |
( |
std::string |
relative_plot_dir, |
|
|
int |
Ndays |
|
) |
| |
|
inlinestatic |
Definition at line 1146 of file NearlinePlotMaker.h.
1149 output+=
"<h3>Nearline Processing Pedestal as a function of Run.</h3>\n";
1150 output+=
"<figure>\n";
1151 output+=
"<img src=\"" + relative_plot_dir +
"/" +
GetPlotName(Ndays) +
"\" width=\"800\">\n";
1152 output+=
"</figure>\n";
1153 output+=
"<BR><BR><BR>\n";
static std::string GetPlotName(int Ndays)
static std::string NearlineProcessingPedestal::MakePedestalPlotsHTML |
( |
std::string |
relative_plot_dir, |
|
|
int |
Ndays |
|
) |
| |
|
inlinestatic |
Definition at line 1146 of file NearlinePlotMakerDev.h.
1149 output+=
"<h3>Nearline Processing Pedestal as a function of Run.</h3>\n";
1150 output+=
"<figure>\n";
1151 output+=
"<img src=\"" + relative_plot_dir +
"/" +
GetPlotName(Ndays) +
"\" width=\"800\">\n";
1152 output+=
"</figure>\n";
1153 output+=
"<BR><BR><BR>\n";
static std::string GetPlotName(int Ndays)
void NearlineProcessingPedestal::PrintPedestalPlots |
( |
std::string |
plot_dir, |
|
|
int |
Ndays, |
|
|
TPaveText * |
updateText, |
|
|
int |
time_ago, |
|
|
int |
XNow, |
|
|
int |
width = 1200 , |
|
|
int |
height = 800 |
|
) |
| |
|
inline |
Definition at line 1135 of file NearlinePlotMaker.h.
1137 can->Print((plot_dir +
"/" +
GetPlotName(Ndays)).c_str());
std::vector< std::string > fPedestalStrings
static std::string GetPlotName(int Ndays)
TCanvas * GetPedestalCanvas(TPaveText *updateText, int time_ago, int XNow, int width=1200, int height=800)
QTextStream & endl(QTextStream &s)
void NearlineProcessingPedestal::PrintPedestalPlots |
( |
std::string |
plot_dir, |
|
|
int |
Ndays, |
|
|
TPaveText * |
updateText, |
|
|
int |
time_ago, |
|
|
int |
XNow, |
|
|
int |
width = 1200 , |
|
|
int |
height = 800 |
|
) |
| |
|
inline |
Definition at line 1135 of file NearlinePlotMakerDev.h.
1137 can->Print((plot_dir +
"/" +
GetPlotName(Ndays)).c_str());
std::vector< std::string > fPedestalStrings
static std::string GetPlotName(int Ndays)
TCanvas * GetPedestalCanvas(TPaveText *updateText, int time_ago, int XNow, int width=1200, int height=800)
QTextStream & endl(QTextStream &s)
TGraph * NearlineProcessingPedestal::fGr |
std::vector< int > NearlineProcessingPedestal::fPedestalInts |
The documentation for this struct was generated from the following files: