...
- create histograms (TH1Fs, TH1Ds, TH2Fs, TH2Ds, TProfiles) and fill them with data.
Code
Code Block sess.newTH1F( "demoA", "demoA", 100, 0, 1 ); for( int i = 0; i < 4096; i++ ) { sess.fillTH1F( "demoA", (float) r.nextGaussian() ); } sess.delete();
- create TTrees and fill them with data (branches of type float, int, double, bool, TVector3, TLorentzVector, std::vector<float>, std::vector<int>, std::vector<double>, std::vector<bool>, std::vector<TVector3>, std::vector<TLorentzVector>).
Code Block sess.newTTree( "demoT", "TestTree", 99 ); sess.branchTTreeFloat( "demoT", "fX" ); for( int i = 0; i < 4096; i++ ) { sess.fillBranchFloat( "demoT", "fX", (float) r.nextGaussian() ); sess.fillTTree( "demoU" ); }
There are a set of example programs demonstrating the available functionality in ./Examples/. These are also built when the main libraries are built with "make all".
...