32   TFile f(
"JetEvent.root",
"recreate");
 
   33   TTree *T = 
new TTree(
"T",
"Event example with Jets");
 
   35   T->Branch(
"event",
"JetEvent",&event,8000,2);
 
   51  T->SetBranchAddress(
"event", &event);
 
   57      cout << 
" Event: "<< 
ev 
   58           << 
"  Jets: " << 
event->GetNjet()
 
   59           << 
"  Tracks: " << 
event->GetNtrack()
 
   60           << 
"  Hits A: " << 
event->GetNhitA()
 
   61           << 
"  Hits B: " << 
event->GetNhitB() << endl;
 
   77      if (
ev%10 == 0) 
printf(
"building pileup: %lld\n",
ev);
 
   78      for (loop=0;loop<
LOOPMAX;loop++) {
 
   80         T->SetBranchAddress(
"event", &
events[loop]);
 
  100   gROOT->ProcessLine(
".L " + 
tutdir + 
"/tree/JetEvent.cxx+");
 
  101   gROOT->ProcessLine(
"#define JETS_SECOND_RUN yes");
 
  103   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.