59 if (treename && strchr(treename,
'=')) {
61 char *equal = strchr(temp,
'=');
96 if (treename && strchr(treename,
'=')) {
98 char *equal = strchr(temp,
'=');
118 ? ( friendtree->GetDirectory()
119 ? ( friendtree->GetDirectory()->
GetFile()
142 if (alias && strlen(alias)) {
149 fTree->RegisterExternalFriend(
this);
180 fTree->RemoveExternalFriend(
this);
223 return fTree->GetTree();
236 fTree->RegisterExternalFriend(
this);
const char Option_t
Option string (const char).
char * Compress(const char *str)
Remove all blanks from the string str.
TDirectory::TContext keeps track and restore the current directory.
Describe directory structure in memory.
virtual TFile * GetFile() const
A file, usually with extension .root, that stores data and code in the form of serialized objects in ...
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.
TFriendElement()
Default constructor for a friend element.
void ls(Option_t *option="") const override
List this friend element.
TFile * fFile
! pointer to the file containing the friend TTree
virtual const char * GetTreeName() const
Get the actual TTree name of the friend.
TTree * fTree
! pointer to the TTree described by this element
virtual TTree * GetTree()
Return pointer to friend TTree.
void RecursiveRemove(TObject *obj) override
Forget deleted elements.
virtual TFile * GetFile()
Return pointer to TFile containing this friend TTree.
virtual TTree * Connect()
Connect file and return TTree.
~TFriendElement() override
Destructor. Disconnect from the owning tree if needed.
virtual TTree * DisConnect()
DisConnect file and TTree.
TTree * fParentTree
! pointer to the parent TTree
bool fOwnFile
true if file is managed by this class
TString fTreeName
name of the friend TTree
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
const char * GetName() const override
Returns name of object.
const char * GetTitle() const override
Returns title of object.
virtual void SetName(const char *name)
Set the name of the TNamed.
Bool_t TestBit(UInt_t f) const
TObject()
TObject constructor.
A TTree represents a columnar dataset.