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()
137 if (alias && strlen(alias)) {
TTree * fParentTree
! pointer to the parent TTree
TTree * fTree
! pointer to the TTree described by this element
virtual const char * GetName() const
Returns name 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)
Set the name of the TNamed.
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=1, Int_t netopt=0)
Create / open a file.
The TNamed class is the base class for all named ROOT classes.
TString fTreeName
name of the friend TTree
TFriendElement()
Default constructor for a friend element.
virtual TFile * GetFile() const
void GetObject(const char *namecycle, T *&ptr)
virtual TTree * Connect()
Connect file and return TTree.
TNamed & operator=(const TNamed &rhs)
TNamed assignment operator.
TFriendElement & operator=(const TFriendElement &)
Equal operator.
virtual const char * GetTreeName() const
virtual void ls(Option_t *option="") const
List this friend element.
Describe directory structure in memory.
TDirectory * GetDirectory() const
virtual ~TFriendElement()
Destructor. Disconnect from the owning tree if needed.
TFile * fFile
! pointer to the file containing the friend TTree
virtual TTree * DisConnect()
DisConnect file and TTree.
virtual TFile * GetFile()
Return pointer to TFile containing this friend TTree.
Bool_t fOwnFile
true if file is managed by this class
A TFriendElement TF describes a TTree object TF in a file.
A TTree object has a header with a name and a title.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
virtual const char * GetTitle() const
Returns title of object.