16 auto T =
new TTree(
"T",
"test circular buffers");
21 T->Branch(
"px",&px,
"px/F");
22 T->Branch(
"py",&py,
"px/F");
23 T->Branch(
"pz",&pz,
"px/F");
24 T->Branch(
"random",&randomNum,
"random/D");
25 T->Branch(
"i",&i,
"i/s");
26 T->SetCircular(20000);
27 for (i = 0; i < 65000; i++) {
virtual void Rannor(Float_t &a, Float_t &b)
Return 2 numbers distributed following a gaussian with mean=0 and sigma=1.
This is the base class for the ROOT Random number generators.
virtual Double_t Rndm()
Machine independent random number generator.
A TTree object has a header with a name and a title.