Difference between revisions of "Solid output"

From Hall A Wiki
Jump to: navigation, search
(banks)
Line 1: Line 1:
 
= banks =
 
= banks =
  
== Location of package ==
+
== Location of package ==
  
 
* We are currently using the "banks" package that Maurizio built to convert evio format to root.
 
* We are currently using the "banks" package that Maurizio built to convert evio format to root.
 
* The package can be aquired with: svn co https://clas12svn.jlab.org/repos/trunk/clas12/banks
 
* The package can be aquired with: svn co https://clas12svn.jlab.org/repos/trunk/clas12/banks
  
== How to run it ==
+
== How to run it ==
  
 
* Set the appropriate environment with: setenv JLAB_ROOT /site/12gev_phys and source $JLAB_ROOT/ce/jlab.csh
 
* Set the appropriate environment with: setenv JLAB_ROOT /site/12gev_phys and source $JLAB_ROOT/ce/jlab.csh
Line 12: Line 12:
 
: The executables are located in the bin directory
 
: The executables are located in the bin directory
  
== What can the current version do for you? ==
+
== What can the current version do for you? ==
  
 
: There are four executables in the bin directory and I will exemplify what they do using a evio output file that Zhiwen produced with SoLID GEMC:
 
: There are four executables in the bin directory and I will exemplify what they do using a evio output file that Zhiwen produced with SoLID GEMC:
Line 48: Line 48:
 
[[Image:Evn.jpg|thumb|500px|center|number of events from SoLID GEMC root output file]]
 
[[Image:Evn.jpg|thumb|500px|center|number of events from SoLID GEMC root output file]]
  
== Room for improvement ==
+
== Room for improvement ==
  
 
: Currently the program that converts evio to root needs to have put in by hand the bank variables that the user wants in the root Tree. Ideally, the conversion program should be smart enough to avoid that.
 
: Currently the program that converts evio to root needs to have put in by hand the bank variables that the user wants in the root Tree. Ideally, the conversion program should be smart enough to avoid that.

Revision as of 14:05, 30 May 2011

banks

Location of package

How to run it

  • Set the appropriate environment with: setenv JLAB_ROOT /site/12gev_phys and source $JLAB_ROOT/ce/jlab.csh
  • Compile the package with: scons
The executables are located in the bin directory

What can the current version do for you?

There are four executables in the bin directory and I will exemplify what they do using a evio output file that Zhiwen produced with SoLID GEMC:

(note from Zhiwen: for the output file, I used only baffle as FLUX type sensitive detector with option -BEAM_P="e-, 11*GeV, 60*deg, 0*deg")

  • banks_example1: this needs as argument the name of the database and lists on the screen the banks
./bin/banks_example1 clas12_banks
Loading bank definitions from clas12_banks
Bank <BMT> loaded with id 460
Bank <BST> loaded with id 400
...
  • banks_example2: this needs as arguments the evio file name and the bank name and will print on the screen all the variables from the bank specified.
./bin/banks_example2 output.ev FLUX
...
>> Event number: 10
ETot: 31.9338 31.4093 0 1.41605 0 0.482844 3.49607 1.08118 0 1.50174 ...
<x>: 720.504 1223.97 1289.92 1243.55 1289.86 1214.5 1204.92 ...
...
  • banks_example3: this needs as arguments the evio file name, the bank name and the variable name and it will print only the variable specified at the command line.
./bin/banks_example3 output.ev FLUX ETot
...
>> Event number: 10
FLUX, ETot: 31.9338 31.4093 0 1.41605 0 0.482844 3.49607 ...
...
  • banks_example4: this will convert the evio file to root and it needs as arguments the evio file name and the bank name
./bin/banks_example4 output.ev FLUX
I used it to convert the evio file that Zhiwen sent me and it worked fine. Below I attach 2 picures that I got from the root file:
total energy deposited from SoLID GEMC root output file
number of events from SoLID GEMC root output file

Room for improvement

Currently the program that converts evio to root needs to have put in by hand the bank variables that the user wants in the root Tree. Ideally, the conversion program should be smart enough to avoid that.

gemc_evio2root

this will convert EXISTING CLAS12 output banks https://clas12svn.jlab.org/repos/trunk/clas12/gemc_evio2root/