oxyroot 0.1.25

Another attempt to make library reading and writing of `.root` binary files which are commonly used in particle physics
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16


{
    TFile *f = new TFile("/tmp/rust/root_write/i32/int32_t/5.root");
    TTree *t = (TTree*)f->Get("mytree");
    cout << "SIZEOF(int32_t) = " << sizeof(int32_t) << endl;
    int32_t n = 0;
    t->SetBranchAddress("i32", &n);
    //cout << ">>ENTRIES: " << t->GetEntries() << endl;
    for (int i = 0; i < t->GetEntries(); i++)
    {
        t->GetEntry(i);
        cout <<">>"<< static_cast<int16_t>(n) << endl;
    }
    f->Close();
}