70 auto tree =
new TTree(
"tree",
"treelibrated tree");
74 tree->Branch(
"event", &
e);
78 for (
Int_t iev=0; iev<nevent; iev++) {
80 std::cout <<
"Processing event " << iev <<
"..." << std::endl;
103 tree->Draw(
"a.e",
"3*(-.2<b.e && b.e<.2)",
"same");
105 tree->Draw(
"b.e:a.e",
"",
"colz");
107 tree->Draw(
"b.t",
"",
"e");
108 tree->Draw(
"a.t",
"",
"same");
110 tree->Draw(
"b.t:a.t");
112 std::cout << std::endl;
113 std::cout <<
"You can now examine the structure of your tree in the TreeViewer" << std::endl;
114 std::cout << std::endl;
int Int_t
Signed integer 4 bytes (int).
double Double_t
Double 8 bytes.
float Float_t
Float 4 bytes (float).
#define ClassDefOverride(name, id)
Mother of all ROOT objects.
A TTree represents a columnar dataset.