Tracking/off-line sort with trackMain/GEBSort: Difference between revisions
Tlauritsen (talk | contribs) No edit summary |
Tlauritsen (talk | contribs) No edit summary |
||
Line 6: | Line 6: | ||
make offline | make offline | ||
This will make the GEBSort_nogeb program, which is the GEBSort ROOTsorter without the software to connet to the GEB tap (hence, make offline). This version of the code can read | This will make the GEBSort_nogeb program, which is the GEBSort ROOTsorter without the software to connet to the GEB tap (hence, make offline). This version of the code can read mode 1 or mode 2 data and does not need a VxWorks license to be installed. The trackMain code will also be generated, the software to add tracked data to the mode 2 data steam (then also know as mode 1 data). | ||
Here is | Here is a simple example of how to track some data from gretina and sort it using the GEBSort_nogebn program to make spectra. | ||
First the tracking: | First the tracking part: | ||
./GEBSort_nogeb \ | |||
-input disk GTDATA/mode2.gtd RECREATE \ | |||
-chat GEBSort.chat \ | |||
-rootfile GTDATA/test.root > GTDATA/GEBSort.log | |||
rm GTDATA | rm GTDATA | ||
Line 16: | Line 20: | ||
./trackMain track.chat GTDATA/mode2.gtd GTDATA/mode1.gtd > GTDATA/trackMain.log | ./trackMain track.chat GTDATA/mode2.gtd GTDATA/mode1.gtd > GTDATA/trackMain.log | ||
Here we ask the tracker to read the GTDATA/mode2.gtd data, add tracking information to the data stream and write the output to GTDATA/mode1.gtd. The parameters for the tracking are in the track.chat file. You should set the link GTDATA to where your data is | |||
With the mode 1 data now created, you can now use the offline version of GEBSort_nogeb to sort the data for display in ROOT as | |||
./GEBSort_nogeb \ | |||
-input disk GTDATA/mode1.gtd RECREATE \ | |||
-chat GEBSort.chat \ | |||
-rootfile GTDATA/test.root > GTDATA/GEBSort.log | |||
The parameters used to sort the data are specified in the GEBSort.chat file, which came from the svn repository. To display the sorted spectra do this | |||
root -l | |||
A bar should pop up. Now compile GSUtil by clicking on the upper most button, then read in the root file that GEBSort_nogeb made | |||
by pushing the second button. The data is now ready to be displayed by pushing the buttons listed under mode2 or mode 1 (or by hand if you like) | |||
Notice that you could equally well use GEBSort_nogeb to sort just the mode2 data, like | |||
./GEBSort_nogeb \ | |||
-input disk GTDATA/mode2.gtd RECREATE \ | |||
-chat GEBSort.chat \ | |||
-rootfile GTDATA/test.root > GTDATA/GEBSort.log | |||
Of cource, there would be no mode 1 data to be displayed from the root file, but it will sort the mode 2 data. |
Revision as of 21:02, June 11, 2013
To get the tracking software (trackMain) and ROOT sorter (GEBSort_nogeb) you can
mkdir whereYouWantToWork cd whereYouWantToWork svn checkout https://svn.anl.gov/repos/gs_analysis/GEBSort . make offline
This will make the GEBSort_nogeb program, which is the GEBSort ROOTsorter without the software to connet to the GEB tap (hence, make offline). This version of the code can read mode 1 or mode 2 data and does not need a VxWorks license to be installed. The trackMain code will also be generated, the software to add tracked data to the mode 2 data steam (then also know as mode 1 data).
Here is a simple example of how to track some data from gretina and sort it using the GEBSort_nogebn program to make spectra.
First the tracking part:
./GEBSort_nogeb \ -input disk GTDATA/mode2.gtd RECREATE \ -chat GEBSort.chat \ -rootfile GTDATA/test.root > GTDATA/GEBSort.log
rm GTDATA ln -s /home/tl/d6/GEBSort/GEBSort_testdata GTDATA ./trackMain track.chat GTDATA/mode2.gtd GTDATA/mode1.gtd > GTDATA/trackMain.log
Here we ask the tracker to read the GTDATA/mode2.gtd data, add tracking information to the data stream and write the output to GTDATA/mode1.gtd. The parameters for the tracking are in the track.chat file. You should set the link GTDATA to where your data is
With the mode 1 data now created, you can now use the offline version of GEBSort_nogeb to sort the data for display in ROOT as
./GEBSort_nogeb \ -input disk GTDATA/mode1.gtd RECREATE \ -chat GEBSort.chat \ -rootfile GTDATA/test.root > GTDATA/GEBSort.log
The parameters used to sort the data are specified in the GEBSort.chat file, which came from the svn repository. To display the sorted spectra do this
root -l
A bar should pop up. Now compile GSUtil by clicking on the upper most button, then read in the root file that GEBSort_nogeb made by pushing the second button. The data is now ready to be displayed by pushing the buttons listed under mode2 or mode 1 (or by hand if you like)
Notice that you could equally well use GEBSort_nogeb to sort just the mode2 data, like
./GEBSort_nogeb \ -input disk GTDATA/mode2.gtd RECREATE \ -chat GEBSort.chat \ -rootfile GTDATA/test.root > GTDATA/GEBSort.log
Of cource, there would be no mode 1 data to be displayed from the root file, but it will sort the mode 2 data.