What is in the Root Recon Files?
The Root Recon Tree contains:
TKR RECON objects, CAL RECON objects, and a Recon Header object.
Here is a full description of the source code generated by Doxygen.
NOTE:
Reading the Root Recon files
In order to allow Root to manipulate our recon root files - Root must be made aware of the type of objects contained in the file. We can do this by generating a library containing the definitions of the classes. tb_recon provides a method to generate this library.
To compile under Windows:
If you compiled the "all" project - you may skip this compilation step, since the Recon library has already been generated.
If you haven't done so already, run the "dorootcint.bat" file under the RootTree directory.
This will create some necessary files so that the library can be built.
In VC++, set RootReconReader as your "active project".
Choose the "Release" configuration
Under the Build menu, click on "Rebuild All"
The Recon.dll will be created under the RootTree/Release directory -
or if building the Debug version under the RootTree/Debug directory.
Under Unix:
The "libRecon.so" file is generated automatically during the "make" process for centella.
The library by default is stored in the RootTree/.libs directory.
USING MyRecon.c TO READ IN A RECON ROOT FILE
To Read in Root files generated by tb_recon (centella)
There are now 2 versions of RootTree/startmacro.c:
one for Windows (startmacroWIN.c) and the other for UNIX (startmacroUNIX.c) It is possible that the startmacro file may need modification to provide the path to the Recon.dll (libRecon.so)
start up Root in interactive mode via "root"
At the Root prompt:
.x startmacroUNIX.c or .x startmacroWIN.c
.L MyRecon.c
MyRecon *r = new MyRecon("ReconRootFile.root")
r->Go()
MyRecon.c should work just like MyEvent.c.
See
Users will certainly wish to modify MyRecon.c for their own purposes. Please feel free to do so, and those who make useful additions should take the time to commit the new version to the CVS repository.
Reading Both the Raw and Recon Files at the Same Time!
A new ROOT macro is available that handles both the raw and recon ROOT files, called MyAnalysis.c
How to obtain a copy of MyAnalysis.c?
Perform a CVS checkout as follows: "cvs co ROOTAnalysis"
The code is located under the ROOTAnalysis/MyAnalysis directory.
How to use MyAnalysis.c?
Create TBEVENT_DIR and TBRECON_DIR environment variables that point to your TBEvent and tb_recon installations.
Be sure that the TBEvent and Recon libraries have been created on your system.
Update startRecon.c and runAnalysis to point to the proper ROOT files.
See the following web page for more information: http://www-sldnt.slac.stanford.edu/glast/ROOT/MyAnalysis/MyAnalysis.htm