First, a Monte Carlo four-vector generator is used for generating phase-space distributed events. Next in the pipeline is the detector simulation, HDFast, which is a fast and flexible simulation program based upon the MCFast framework developed by the simulation group at Fermilab. The Monte Carlo output is a ROOT Tree data file ( *.rdt file -root data tree).
"The ROOT system provides a set of OO frameworks with all the functionality needed to handle and analyse large amounts of data in a very efficient way. Having the data defined as a set of objects, specialised storage methods are used to get direct access to the separate attributes of the selected objects, without having to touch the bulk of the data. Included are histogramming methods in 1, 2 and 3 dimensions, curve fitting, function evaluation, minimisation, graphics and visualization classes to allow the easy setup of an analysis system that can query and process the data interactively or in batch mode.
Thanks to the builtin CINT C++ interpreter the command language, the scripting, or macro, language and the programming language are all C++. The interpreter allows for fast prototyping of the macros since it removes the time consuming compile/link cycle. It also provides a good environment to learn C++. If more performance is needed the interactively developed macros can be compiled using a C++ compiler.
The system has been designed in such a way that it can query its databases in parallel on MPP machines or on clusters of workstations or high-end PC's. ROOT is an open system that can be dynamically extended by linking external libraries. This makes ROOT a premier platform on which to build data acquisition, simulation and data analysis systems."
For more information on ROOT visit the ROOT web pages from http://root.cern.ch/.
The ROOT framework includes a set of classes to support I/O to/from machine independent files. The I/O system is designed to be particularly efficient for objects frequently manipulated by modern high volume data experiments.
exotic 167% dumpRdt -h dumpRdt usage: [switches] inputfile -nThe number of event to read (default all). -L List branch names of first event -Bbranch1,branch2,... Dump only these branches -h Print this help message
exotic 168% dumpRdt -L test.rdt Opening test.rdt for input Branch list: hepevt tof_trace offtrk bcal lgdSmears
exotic 169% dumpRdt -n1 -Bhepevt test.rdt Dumping 1 event Dumping only these branches: hepevt Opening test.rdt for input Branche list: hepevt tof_trace offtrk bcal lgdSmears Nevhep: 2 Nhep: 6 Ishep: 1 Idhep: 321 Mass: 0.494 Px: -0.203053 Py: -0.175953 Pz: 1.16301 E: 1.29183 Vx: 0.0123466 Vy: 0.0186673 Vz: 102.158 Vt: 383.947 Ishep: 1 Idhep: 22 Mass: 0 Px: 0.133062 Py: 0.002583 Pz: 0.337673 E: 0.362953 Vx: 0.0123466 Vy: 0.0186673 Vz: 102.158 Vt: 383.947 Ishep: 1 Idhep: 22 Mass: 0 Px: -0.006568 Py: -0.059309 Pz: 0.143684 E: 0.155582 Vx: 0.0123466 Vy: 0.0186673 Vz: 102.158 Vt: 383.947 Ishep: 1 Idhep: -211 Mass: 0.14 Px: -0.565609 Py: -0.216014 Pz: 2.92477 E: 2.99006 Vx: 0.0123466 Vy: 0.0186673 Vz: 102.158 Vt: 383.947 Ishep: 1 Idhep: 321 Mass: 0.494 Px: 0.397965 Py: 0.224851 Pz: 5.0126 E: 5.05758 Vx: 0.0123466 Vy: 0.0186673 Vz: 102.158 Vt: 383.947 Ishep: 1 Idhep: 2112 Mass: 0.939 Px: 0.244203 Py: 0.223843 Pz: 0.418274 E: 1.08001 Vx: 0.0123466 Vy: 0.0186673 Vz: 102.158 Vt: 383.947
megux2 56% ntp_maker -h ntp_maker usage: [switches] inputfile -oSave output as .root (default: halld.root). -c Book four-momenta components. -n The number of event to read (default all). -s The number of events to skip before reading(default=0). -h Print this help message megux2 58% root ******************************************* * * * W E L C O M E to R O O T * * * * Version 2.20/06 12 January 1999 * * * * You are welcome to visit our Web site * * http://root.cern.ch * * * ******************************************* CINT/ROOT C/C++ Interpreter version 5.13.83, Dec 2 1998 Type ? for help. Commands must be C++ statements. Enclose multiple statements between { }. root [0] TFile f("o0.root");// gamma p -> p omega events root [1] TBrowser b; root [2] .q megux2 59%
In addition, there are some example macros which are executed by the ROOT C++ interpreter to create some histograms of the data. Also, the macro GeoDraw.C reads in the MCFast geometry file (.db file) and displays a 2-D view of the detector geometry.
exotic 170% root .x GeoDraw.C ******************************************* * * * W E L C O M E to R O O T * * * * Version 2.20/06 18 December 1998 * * * * You are welcome to visit our Web site * * http://root.cern.ch * * * ******************************************* CINT/ROOT C/C++ Interpreter version 5.13.83, Dec 2 1998 Type ? for help. Commands must be C++ statements. Enclose multiple statements between { }. root [0] Processing GeoDraw.C...