WTI/Experiment Electronics/Data Processing: Go4 |
Previous tutorial 4 | | Go4 | tree.C | make.C | | Next tutorial 6 |
> . ./rename.sh XXX Simsequence to customize the names. Execute the macro in ROOT CINT
> root
> root [0] .x tree.C("tree")
The canvas with the histogram is shown:
**** TSimEvent: Create instance
**** TSimEvent: Create instance
**** TSimEvent: Delete instance
Starting tree read for 100000 events...
Printout last event:
======> EVENT:99999
Event. = NULL
Event.TGo4EventElement.fUniqueID = 0
Event.TGo4EventElement.fBits = 50331656
Event.TGo4EventElement.fName = Event
Event.TGo4EventElement.fTitle = This is a Go4 EventElement
Event.TGo4EventElement.fbIsValid = 1
Event.TGo4EventElement.fIdentifier = -1
Event.f1[8] = 195.0 , 613.0 , 1014.0 , 595.0 , 0.0 , 0.0 , 0.0 , 0.0
Event.f2[8] = 201.0 , 299.0 , 94.0 , 0.0 , 0.0 , 0.0 , 0.0 , 0.0
TCanvas::MakeDefCanvas: created default TCanvas with name c1
> root
root [0] .x make.C("tree","Anatree")
You can see that the two files created are plain ROOT! The definition file contains a class containing the data of our TSimEvent. The members names are prefixed by the name of the object ( Event in our case).
Info in TTreePlayer::MakeClass:
Files: Anatree.h and Anatree.C
generated from TTree: UnpackxTree