Example of a circular Tree 
Circular Trees are interesting in online real time environments to store the results of the last maxEntries events. for more info, see TTree::SetCircular. Circular trees must be memory resident.
 
{
   auto T = 
new TTree(
"T", 
"test circular buffers");
 
   T->Branch("px", &px, "px/F");
   T->Branch("py", &py, "px/F");
   T->Branch("pz", &pz, "px/F");
   T->Branch("i", &i, "i/s");
   T->SetCircular(20000); 
   for (i = 0; i < 65000; i++) {
      pz = px * px + py * py;
      T->Fill();
   }
   T->Print();
}
 
unsigned short UShort_t
Unsigned Short integer 2 bytes (unsigned short)
 
float Float_t
Float 4 bytes (float)
 
double Double_t
Double 8 bytes.
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
 
This is the base class for the ROOT Random number generators.
 
A TTree represents a columnar dataset.
 
- Author
 - Rene Brun 
 
Definition in file tree114_circular.C.