RootUtils
|
Members | Descriptions |
---|---|
namespace FileUtils | Utility namespace for ROOT files. |
namespace FitUtils | Utility namespace for ROOT files. |
namespace
HistUtils
| namespace
StringUtils
| namespace
UiUtils
|
Utility namespace for ROOT files.
Detailed description follows here. X. XYZ, DESY
March 2008
Members | Descriptions |
---|---|
public TList * findFilesInDirectory (const char * dirPath,const char * extension) | Obtain list of file paths in directory (with given extension). |
public TFile * openFile (const char * filePathName) | Open ROOT file with given absolute path. |
public TTree * getTree (TFile * file,const char * treeName) | Parse absolute file path into path, name and extension. |
public TBranch *
getBranch
(TTree * tree,const char * branchName)
| public Double_t
getBranchMinimum
(TTree * tree,const char * branchName)
| public Double_t
getBranchMaximum
(TTree * tree,const char * branchName)
| public Double_t
getBranchMaximumInFiles
(TList * files,const char * treeName,const char * branchName)
| public TH1 *
getBranchHistogram
(TTree * tree,const char * branchName,Int_t nBins)
| Shortcut to get a histogram from ROOT tree branch. public
PathComponents
parseFilePath
(const char * filePathName)
| Parse absolute file path into path, name and extension. struct
FileUtils::PathComponents
| Struct contains path components parsed by the parseFilePath()
Obtain list of file paths in directory (with given extension).
Function returns a TList* of TObjString* with full absolute paths of files in a given directory with given extension. Program exits if directory does not exist or not readable.
dirPath
Directory path.extension
Optional extension of files to find.TList* of TObjString* with full absolute paths.
Open ROOT file with given absolute path.
Function checks if a file is good and returns a pointer to a ROOT file TFile* with given absolute path.
filePathName
full ROOT file URI.Pointer to TFile* object.
Parse absolute file path into path, name and extension.
Function parses file path into components: path, basename, name, extension.
filePathName
absolute file path.PathComponents struct with path components.
Shortcut to get a histogram from ROOT tree branch.
Function automatically determines histogram minimum and maximum.
tree
Pointer to the tree.branchName
branchName name of a branch.nBins
number of bins in the histogram. Default is 150.TH1* pointer to the histogram.
Parse absolute file path into path, name and extension.
Function parses file path into components: path, basename, name, extension.
filePathName
absolute file path.PathComponents struct with path components.
Struct contains path components parsed by the parseFilePath()
Members | Descriptions |
---|---|
public TString path | Member absolute file path |
public TString base | Member filename with extension |
public TString name | Member filename only |
public TString extension | Member extension |
Member absolute file path
Member filename with extension
Member filename only
Member extension
Utility namespace for ROOT files.
Detailed description follows here. X. XYZ, DESY
March 2008
Members | Descriptions
-----------------------------—|------------------------------------------— public TF1 *
fitHistWithROOTCrystalBall
(TH1 * hist,Bool_t inverted)
| public TF1 *
getCrystalBallFunction
(TH1 * hist,Bool_t reversed)
| class
FitUtils::CrystalBallFunctionObject
|
Members | Descriptions
-----------------------------—|------------------------------------------— public
CrystalBallFunctionObject
(Bool_t _isInverted)
| public Double_t
operator()
(double * _x,double * par)
|
Members | Descriptions
-----------------------------—|------------------------------------------— public Double_t
getMeanY
(TH1 * hist)
| public TTree *
histsToTreeLin
(TList * hists,const char * treeName,const char * treeTitle)
| public TTree *
histsToTree
(TList * hists,const char * treeName,const char * treeTitle)
| public TTree *
histsToTreeXY
(TList * hists,const char * treeName,const char * treeTitle)
| public void
invertHist
(TH1 * hist)
| public TH1 *
cropHistogram
(TH1 * hist,Double_t minX,Double_t maxX)
| public TH1 *
cropHistogram
(TH1 * hist,Int_t minBin,Int_t maxBin)
|
Members | Descriptions
-----------------------------—|------------------------------------------— public TString
stripExtension
(const char * str)
| public void
writeProgress
(const char * s,Int_t nTimes)
|
Members | Descriptions
-----------------------------—|------------------------------------------— public void
msgBoxInfo
(const char * title,const char * text)
| public TList *
getFileNamesList
(const char * text,Bool_t isMultiple)
|
Generated by Moxygen