64 TFile*
openFile(
const char *filePathName, Option_t *option =
"READ");
74 TTree*
getTree(TFile *file,
const char *treeName);
84 TBranch*
getBranch(TTree *tree,
const char *branchName);
157 Int_t
exportValuesToGnuplot(
const char *filename, std::vector<std::string> colNames, std::vector<double> values,
158 const char *delimeter =
" ");
172 Int_t exportHistToGnuplot(TH1 *hist,
const char *canvasName,
const char *delimeter =
" ");
173 Int_t exportFuncToGnuplot(TF1 *hist,
const char *canvasName,
const char *delimeter =
" ");
Definition: RootUtils.cxx:49
Double_t getBranchMinimumInFiles(TList *filePaths, const char *treeName, const char *branchName)
Get minimum value in a tree branch across multiple files.
Definition: FileUtils.cpp:156
TFile * openFile(const char *filePathName, Option_t *option="READ")
Open ROOT file with given absolute path.
Definition: FileUtils.cpp:78
Double_t getBranchMaximum(TTree *tree, const char *branchName)
Get maximum value in a tree branch.
Definition: FileUtils.cpp:115
TBranch * getBranch(TTree *tree, const char *branchName)
Safely get a branch from a ROOT tree.
Definition: FileUtils.cpp:99
Int_t exportCanvasToGnuplot(TCanvas *canvas, const char *delimeter=" ")
Export ROOT canvas to ASCII file with data columns.
Definition: FileUtils.cpp:303
Double_t getBranchMinimum(TTree *tree, const char *branchName)
Get minimum value in a tree branch.
Definition: FileUtils.cpp:108
PathComponents parseFilePath(const char *filePathName)
Parse absolute file path into path, name and extension.
Definition: FileUtils.cpp:122
TTree * getTree(TFile *file, const char *treeName)
Parse absolute file path into path, name and extension.
Definition: FileUtils.cpp:90
TList * findFilesInDirectory(const char *dirPath, const char *extension=0)
Obtain list of file paths in directory (with given extension).
Definition: FileUtils.cpp:25
TH1 * getBranchHistogram(TTree *tree, const char *branchName, Int_t nBins=150)
Shortcut to get a histogram from ROOT tree branch.
Definition: FileUtils.cpp:194
Double_t getBranchMaximumInFiles(TList *filePaths, const char *treeName, const char *branchName)
Get maximum value in a tree branch across multiple files.
Definition: FileUtils.cpp:175
Int_t exportValuesToGnuplot(const char *filename, std::vector< std::string > colNames, std::vector< double > values, const char *delimeter=" ")
Append or save data to a Gnuplot file.
Definition: FileUtils.cpp:208
Struct contains path components returned by the parseFilePath() method.
Definition: FileUtils.h:29
TString base
Definition: FileUtils.h:31
TString extension
Definition: FileUtils.h:33
TString name
Definition: FileUtils.h:32
TString path
Definition: FileUtils.h:30