Skip to content

Commit 421c13d

Browse files
authored
feat: add test file for reading AsGrouped via dask or virtual array (#225)
1 parent df8380c commit 421c13d

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

dev/make-root/uproot_issue_1502.C

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#include <TFile.h>
2+
#include <TObject.h>
3+
#include <TTree.h>
4+
5+
class TMyObject : public TObject {
6+
private:
7+
int value;
8+
9+
public:
10+
TMyObject( int i ) : value( i ) {}
11+
12+
ClassDef( TMyObject, 1 );
13+
};
14+
15+
void uproot_issue_1502() {
16+
TFile f( "uproot-issue-1502.root", "RECREATE" );
17+
TTree tree( "tree", "tree" );
18+
19+
TMyObject obj{ 0 };
20+
21+
tree.Branch( "branch", &obj );
22+
23+
for ( int i = 0; i < 10; i++ )
24+
{
25+
obj = TMyObject( i );
26+
tree.Fill();
27+
}
28+
29+
tree.Write();
30+
f.Close();
31+
}
6.46 KB
Binary file not shown.

0 commit comments

Comments
 (0)