BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
renameTree.C File Reference

Go to the source code of this file.

Functions

int renameTree (TString filePath="", TString oldName="cbmsim", TString newName="bmndata", TString newTitle="bmndigit")
int renameTree_dir (TString dirPath="", TString oldName="cbmsim", TString newName="bmndata", TString newTitle="bmndigit")

Function Documentation

◆ renameTree()

int renameTree ( TString filePath = "",
TString oldName = "cbmsim",
TString newName = "bmndata",
TString newTitle = "bmndigit" )

Definition at line 9 of file renameTree.C.

References TFile::Close(), TString::Format(), TDirectoryFile::Get(), TTree::SetObject(), and TFile::Write().

Referenced by renameTree_dir().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ renameTree_dir()

int renameTree_dir ( TString dirPath = "",
TString oldName = "cbmsim",
TString newName = "bmndata",
TString newTitle = "bmndigit" )

Definition at line 44 of file renameTree.C.

References TSystemDirectory::GetListOfFiles(), TNamed::GetName(), TNamed::GetTitle(), TSystemFile::IsDirectory(), TIter::Next(), and renameTree().

Here is the call graph for this function: