|
RootUtils
|
| Members | Descriptions |
|---|---|
namespaceFileUtils | Utility namespace for ROOT files. |
namespaceFitUtils | Utility namespace for ROOT files. |
namespaceHistUtils | namespaceStringUtils | namespaceUiUtils |
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_tgetBranchMinimum(TTree * tree,const char * branchName) | public Double_tgetBranchMaximum(TTree * tree,const char * branchName) | public Double_tgetBranchMaximumInFiles(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. publicPathComponentsparseFilePath(const char * filePathName) | Parse absolute file path into path, name and extension. structFileUtils::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 TStringpath | Member absolute file path |
public TStringbase | Member filename with extension |
public TStringname | Member filename only |
public TStringextension | 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) | classFitUtils::CrystalBallFunctionObject |
Members | Descriptions
-----------------------------—|------------------------------------------— publicCrystalBallFunctionObject(Bool_t _isInverted) | public Double_toperator()(double * _x,double * par) |
Members | Descriptions
-----------------------------—|------------------------------------------— public Double_tgetMeanY(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 voidinvertHist(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 TStringstripExtension(const char * str) | public voidwriteProgress(const char * s,Int_t nTimes) |
Members | Descriptions
-----------------------------—|------------------------------------------— public voidmsgBoxInfo(const char * title,const char * text) | public TList *getFileNamesList(const char * text,Bool_t isMultiple) |
Generated by Moxygen