33   TFile f(
"JetEvent.root",
"recreate");
 
   34   auto T = 
new TTree(
"T", 
"Event example with Jets");
 
   36   T->Branch(
"event", 
"JetEvent", &event, 8000, 2);
 
   51   auto T = 
f.Get<
TTree>(
"T");
 
   53   T->SetBranchAddress(
"event", &event);
 
   60      std::cout << 
" Event: "<< 
ev 
   61                << 
"  Jets: " << 
event->GetNjet()
 
   62                << 
"  Tracks: " << 
event->GetNtrack()
 
   63                << 
"  Hits A: " << 
event->GetNhitA()
 
   64                << 
"  Hits B: " << 
event->GetNhitB() << std::endl;
 
   73   auto T = 
f.Get<
TTree>(
"T");
 
   79   for (loop=0; loop<
LOOPMAX; loop++)
 
   83         printf(
"building pileup: %lld\n", 
ev);
 
   84      for (loop=0; loop<
LOOPMAX; loop++) {
 
   86         T->SetBranchAddress(
"event", &events[loop]);
 
  108   gROOT->ProcessLine(
".L " + 
tutdir + 
"/io/tree/JetEvent.cxx+");
 
  109   gROOT->ProcessLine(
"#define JETS_SECOND_RUN yes");
 
  111   gROOT->ProcessLine(
"jets(100, 200, true)");
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
R__EXTERN TRandom * gRandom
 
void Build(Int_t jetm=3, Int_t trackm=10, Int_t hitam=100, Int_t hitbm=10)
Build one event.
 
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
 
virtual Double_t Uniform(Double_t x1=1)
Returns a uniform deviate on the interval (0, x1).
 
A TTree represents a columnar dataset.