-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
handle [var][fix] style doubly jagged branch (#188)
* handle [var][fix] style doubly jagged branch * fix tests for 1.6
- Loading branch information
Showing
6 changed files
with
99 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#include "TFile.h" | ||
#include "TTree.h" | ||
|
||
int maketree(){ | ||
TFile f("tree_with_varfix_doubly_jagged.root", "RECREATE", ""); | ||
TTree tree = TTree("outtree", "outtree"); | ||
int nparticles{}; | ||
double P[100][4]; | ||
tree.Branch("nparticles", &nparticles, "nparticles/I"); | ||
tree.Branch("P", P, "P[nparticles][4]/D"); | ||
double counter1 = 1; | ||
double counter2 = 1; | ||
for (auto ev = 0; ev<3; ++ev){ | ||
nparticles = 4-ev; | ||
for (auto i = nparticles; i>=0; --i){ | ||
counter1 += 3; | ||
for (auto j = 0; j<=3; ++j){ | ||
P[i][j] = counter1 / (counter2); | ||
counter2++; | ||
} | ||
} | ||
tree.Fill(); | ||
} | ||
f.Write(); | ||
f.Close(); | ||
return 0; | ||
} |
Binary file not shown.
8b16c8f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
8b16c8f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/69877
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: