73 for (
Int_t iev=0;iev<nevent;iev++) {
74 if (iev%1000==0) cout<<
"Processing event "<<iev<<
"..."<<endl;
99 tree->
Draw(
"a.e",
"3*(-.2<b.e && b.e<.2)",
"same");
101 tree->
Draw(
"b.e:a.e",
"",
"colz");
103 tree->
Draw(
"b.t",
"",
"e");
104 tree->
Draw(
"a.t",
"",
"same");
106 tree->
Draw(
"b.t:a.t");
109 cout<<
"You can now examine the structure of your tree in the TreeViewer"<<endl;
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(Int_t i=0)
Machine independent random number generator.
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...
R__EXTERN TStyle * gStyle
virtual Int_t Fill()
Fill all branches.
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
virtual void StartViewer()
Start the TTreeViewer on this tree.
#define ClassDef(name, id)
R__EXTERN TRandom * gRandom
virtual void Draw(Option_t *opt)
Default Draw method for all objects.
Mother of all ROOT objects.
virtual Int_t Branch(TCollection *list, Int_t bufsize=32000, Int_t splitlevel=99, const char *name="")
Create one branch for each element in the collection.
typedef void((*Func_t)())
virtual void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0)
Automatic pad generation by division.
A TTree object has a header with a name and a title.
void SetPalette(Int_t ncolors=kBird, Int_t *colors=0, Float_t alpha=1.)
See TColor::SetPalette.