Warning, /tutorials/MyOwnTTree/README.md is written in an unsupported language. File is not indexed.
0001 This directory contains 2 examples to create your own TTree using a class (and
0002 Fun4All). The sources are in ./src, the macros to run the show are in ./macros.
0003
0004 The MySimpleTree class is stored in a TTree by itself and then inside a
0005 TClonesArray (just to show you that the MySimpleTree class doesn't need any
0006 modifications for the TClonesArray).
0007
0008 Unlike our DST's there is no virtual base class to keep old files readable
0009 after you change the content of your class. It's not difficult to add this
0010 feature but I wanted to keep it straight and simple.
0011
0012 Library build:
0013 Don't build the library in the source area - it can be done but you do not do
0014 yourself any favors with this. Create a build area and think of an install area location (the install area will be created during "make install", you need to have write access). Go to the build area and
0015
0016 <srcdir>/autogen.sh --prefix=<install area>
0017 make install
0018
0019 To run the macros you have to add your install area to the LD_LIBRARY_PATH and
0020 to the ROOT_INCLUDE_PATH (where root6 looks for includes mentioned in the
0021 macro). We have a setup script which will set all your paths accordingly.
0022
0023 source /opt/sphenix/core/bin/setup_local.csh <install area>
0024
0025 With these settings you can run the macros in the macro directory.