Comments (11)
Could you make that data file available?
from uproot.jl.
In general, this happens when iterating over a TTree serially, entry by entry - that's slow with UpROOT, due to the way Python uproot works. However, you're doing a multi-entry getindex
in both cases. I'd really like to have a similar file to test with.
from uproot.jl.
Thanks for looking at it.
#include "TString.h"
#include "TFile.h"
#include "TTree.h"
#include <string>
#include "stdlib.h"
int create_file() {
TFile *f = new TFile("test_tree.root", "recreate");
TTree *t = new TTree("mytree", "mytree");
auto app = "EXYZ";
const uint Np = 4;
std::string names[Np] = {"pBeam", "pPim", "pEta", "pRecoil"};
//
double v[Np][4];
for (uint n=0; n<Np; n++)
for (uint i=0; i<4; i++)
t->Branch(TString::Format("%s_%c",names[n].c_str(), app[i]), &v[n][i]);
const int Nev = 300000;
for (uint i=0; i <= Nev; i++) {
for (uint n=0; n<Np; n++)
for (uint i=0; i<4; i++)
v[n][i] = (rand() % 100) / 100.0;
//
t->Fill();
}
t->Write();
f->Close();
return 0;
}
from uproot.jl.
Why did you close the issue - is this resolved?
from uproot.jl.
Ha, by mistake, I did not notice. Perhaps, the cat walked on the keyboard
from uproot.jl.
Hehe, Ok, I'll take a look then.
from uproot.jl.
I will be showing Julia
to the CERN students on Friday. Nervous as introducing a new girlfriend to parents
from uproot.jl.
Oh, nice! Anything you need for that, last-minute, that I can help with?
from uproot.jl.
thanks! the uproot part works nicely. Enjoy the vacation!
from uproot.jl.
wrong place for posting. I was making a similar example for investigation in UnROOT.
I think this issue can be closed.
from uproot.jl.
Thanks!
from uproot.jl.
Related Issues (12)
- Tree Conversion Error HOT 4
- Can plotting recipies for TH1D, TGraph, TGraphError be a part of the package? HOT 18
- Support closing files
- migration to uproot4? HOT 4
- TagBot trigger issue HOT 3
- Histograms: forward under/overflow bin info
- Histograms: use `TH1::kIsAverage` to set `Histogram.isdensity` HOT 1
- Histogram edges retrieval bug
- [compat] Tables = "0.2" does not seem to accept 1.0.0 HOT 4
- Recognition of TTree breaks when matrices are in branches HOT 11
- UpROOT crashes Atom HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uproot.jl.