74 auto tree =
new TTree(
"tree",
"treelibrated tree");
78 tree->Branch(
"event", &
e);
82 for (
Int_t iev=0; iev<nevent; iev++) {
84 std::cout <<
"Processing event " << iev <<
"..." << std::endl;
107 tree->Draw(
"a.e",
"3*(-.2<b.e && b.e<.2)",
"same");
109 tree->Draw(
"b.e:a.e",
"",
"colz");
111 tree->Draw(
"b.t",
"",
"e");
112 tree->Draw(
"a.t",
"",
"same");
114 tree->Draw(
"b.t:a.t");
116 std::cout << std::endl;
117 std::cout <<
"You can now examine the structure of your tree in the TreeViewer" << std::endl;
118 std::cout << std::endl;
#define ClassDefOverride(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...
Double_t Rndm() override
Machine independent random number generator.
virtual void Rannor(Float_t &a, Float_t &b)
Return 2 numbers distributed following a gaussian with mean=0 and sigma=1.
A TTree represents a columnar dataset.