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

Go to the source code of this file.

Functions

int renameBranch (TString filePath="", TString treeName="bmndata", TString oldName="VC", TString newName="VETO")
int renameBranch_dir (TString dirPath="", TString treeName="bmndata", TString oldName="VC", TString newName="VETO")

Function Documentation

◆ renameBranch()

int renameBranch ( TString filePath = "",
TString treeName = "bmndata",
TString oldName = "VC",
TString newName = "VETO" )

Definition at line 9 of file renameBranch.C.

References TFile::Close(), TString::Data(), TDirectoryFile::Get(), TTree::GetBranch(), TDirectoryFile::GetKey(), TNamed::SetName(), and TFile::Write().

Referenced by renameBranch_dir().

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

◆ renameBranch_dir()

int renameBranch_dir ( TString dirPath = "",
TString treeName = "bmndata",
TString oldName = "VC",
TString newName = "VETO" )

Definition at line 51 of file renameBranch.C.

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

Here is the call graph for this function: