57 if (treename && strchr(treename,
'=')) {
59 char *
equal = strchr(temp,
'=');
78 :
TNamed(treename,file?file->GetName():
"")
91 if (treename && strchr(treename,
'=')) {
93 char *
equal = strchr(temp,
'=');
108 :
TNamed(friendtree?friendtree->GetName():
"",
110 ? ( friendtree->GetDirectory()
111 ? ( friendtree->GetDirectory()->GetFile()
112 ? friendtree->GetDirectory()->GetFile()->GetName()
134 if (alias && strlen(alias)) {
148 fParentTree(tfe.fParentTree),
151 fTreeName(tfe.fTreeName),
152 fOwnFile(tfe.fOwnFile)
TTree * fTree
pointer to the parent TTree
virtual const char * GetTitle() const
Returns title of object.
virtual TTree * GetTree()
Return pointer to friend TTree.
char * Compress(const char *str)
Remove all blanks from the string str.
bool equal(double d1, double d2, double stol=10000)
virtual void SetName(const char *name)
Change (i.e.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
static const char * filename()
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=1, Int_t netopt=0)
Create / open a file.
virtual const char * GetTreeName() const
The TNamed class is the base class for all named ROOT classes.
TString fTreeName
pointer to the file containing the friend TTree
void GetObject(const char *namecycle, T *&ptr)
virtual TTree * Connect()
Connect file and return TTree.
virtual TFile * GetFile() const
TNamed & operator=(const TNamed &rhs)
TNamed assignment operator.
TFriendElement & operator=(const TFriendElement &)
Equal operator.
TDirectory * GetDirectory() const
virtual const char * GetName() const
Returns name of object.
Describe directory structure in memory.
ClassImp(TMCParticle) void TMCParticle printf(": p=(%7.3f,%7.3f,%9.3f) ;", fPx, fPy, fPz)
virtual ~TFriendElement()
Destructor. Disconnect from the owning tree if needed.
TFile * fFile
pointer to the TTree described by this element
virtual TTree * DisConnect()
DisConnect file and TTree.
virtual void ls(Option_t *option="") const
List this friend element.
virtual TFile * GetFile()
Return pointer to TFile containing this friend TTree.
A TFriendElement TF describes a TTree object TF in a file.
A TTree object has a header with a name and a title.
ClassImp(TFriendElement) TFriendElement
Default constructor for a friend element.
virtual void SetTitle(const char *title="")
Change (i.e. set) the title of the TNamed.