48 |
|
void TreeWriter::AddBranch(const char *name, const char *cname, |
49 |
|
void *obj, Int_t bsize, Int_t level) |
50 |
|
{ |
51 |
< |
// Add branch with name "name" into tree with name "tname" and set its address |
52 |
< |
// to object pointer for class name "cname" using a given buffer size and splitlevel. |
51 |
> |
// Add branch with name "name" into tree with name "tname" and set its address to object pointer |
52 |
> |
// for class name "cname" using a given buffer size and splitlevel. |
53 |
|
|
54 |
|
MyTree *t = AddOrGetMyTree(GetName()); |
55 |
|
TBranch *b = t->Bronch(name, cname, obj, bsize, level); |
59 |
|
//-------------------------------------------------------------------------------------------------- |
60 |
|
void TreeWriter::AddBranch(const char *name, void *obj, Int_t bsize, Int_t level) |
61 |
|
{ |
62 |
< |
// Add branch with name "name" into tree with name "tname" and set its address |
63 |
< |
// to object pointer using a given buffer size and splitlevel. |
62 |
> |
// Add branch with name "name" into tree with name "tname" and set its address to object pointer |
63 |
> |
// using a given buffer size and splitlevel. |
64 |
|
|
65 |
|
AddBranch(name, CName(obj), obj, bsize, level); |
66 |
|
} |
69 |
|
void TreeWriter::AddBranch(const char *name, const char *cname, |
70 |
|
void *obj, Int_t bsize) |
71 |
|
{ |
72 |
< |
// Add branch with name "name" into tree with name "tname" and set its address |
73 |
< |
// to object pointer for class name "cname" using a given buffer size and default splitlevel. |
72 |
> |
// Add branch with name "name" into tree with name "tname" and set its address to object pointer |
73 |
> |
// for class name "cname" using a given buffer size and default splitlevel. |
74 |
|
|
75 |
|
MyTree *t = AddOrGetMyTree(GetName()); |
76 |
|
TBranch *b = t->Bronch(name, cname, obj, bsize, fDefSL); |
507 |
|
//-------------------------------------------------------------------------------------------------- |
508 |
|
void TreeWriter::StoreObject(const TObject *obj) |
509 |
|
{ |
510 |
< |
// Store object next to tree in file. Used to store the |
511 |
< |
// settings of how the tree was created. |
510 |
> |
// Store object next to tree in file. Used to store the settings of how the tree was created. |
511 |
|
|
512 |
|
if (!fIsInit) { |
513 |
|
Fatal("StoreObject", "Tree is not created, call create first!"); |