60 if (treename && strchr(treename,
'=')) {
62 char *equal = strchr(temp,
'=');
94 if (treename && strchr(treename,
'=')) {
96 char *equal = strchr(temp,
'=');
113 ? ( friendtree->GetDirectory()
114 ? ( friendtree->GetDirectory()->GetFile()
115 ? friendtree->GetDirectory()->GetFile()->
GetName()
137 if (alias && strlen(alias)) {
char * Compress(const char *str)
Remove all blanks from the string str.
Small helper to keep current directory context.
Describe directory structure in memory.
virtual TFile * GetFile() const
void GetObject(const char *namecycle, T *&ptr)
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Create / open a file.
A TFriendElement TF describes a TTree object TF in a file.
TFriendElement()
Default constructor for a friend element.
virtual void ls(Option_t *option="") const
List this friend element.
TFile * fFile
! pointer to the file containing the friend TTree
virtual const char * GetTreeName() const
Bool_t fOwnFile
true if file is managed by this class
TTree * fTree
! pointer to the TTree described by this element
virtual TTree * GetTree()
Return pointer to friend TTree.
virtual TFile * GetFile()
Return pointer to TFile containing this friend TTree.
virtual TTree * Connect()
Connect file and return TTree.
virtual TTree * DisConnect()
DisConnect file and TTree.
TTree * fParentTree
! pointer to the parent TTree
virtual ~TFriendElement()
Destructor. Disconnect from the owning tree if needed.
TString fTreeName
name of the friend TTree
The TNamed class is the base class for all named ROOT classes.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
virtual void SetName(const char *name)
Set the name of the TNamed.
virtual const char * GetTitle() const
Returns title of object.
virtual const char * GetName() const
Returns name of object.
R__ALWAYS_INLINE Bool_t IsZombie() const
A TTree represents a columnar dataset.
TDirectory * GetDirectory() const
std::string GetName(const std::string &scope_name)