77 tree->Branch(
"event",&
e);
81 for (
Int_t iev=0;iev<nevent;iev++) {
82 if (iev%1000==0) cout<<
"Processing event "<<iev<<
"..."<<endl;
106 tree->Draw(
"a.e",
"3*(-.2<b.e && b.e<.2)",
"same");
108 tree->Draw(
"b.e:a.e",
"",
"colz");
110 tree->Draw(
"b.t",
"",
"e");
111 tree->Draw(
"a.t",
"",
"same");
113 tree->Draw(
"b.t:a.t");
116 cout<<
"You can now examine the structure of your tree in the TreeViewer"<<endl;
#define ClassDef(name, id)
R__EXTERN TRandom * gRandom
Mother of all ROOT objects.
virtual Double_t Gaus(Double_t mean=0, Double_t sigma=1)
Samples a random number from the standard Normal (Gaussian) Distribution with the given mean and sigm...
virtual void Rannor(Float_t &a, Float_t &b)
Return 2 numbers distributed following a gaussian with mean=0 and sigma=1.
virtual Double_t Rndm()
Machine independent random number generator.
A TTree represents a columnar dataset.