Database installation code works only on old architecture (ubuntu12,SLC6, ...) The installation script for the database library is Modules/ILC_SDHCAL_ConfDB_installer.sh
For october 2016 GIF, the configuration setup has been included in the soft : you don't need to build against the database. So the recommended build is :
- mkdir build
- cd build
- cmake ..
- make install
To run python script under the python directory, you need to add the lib/ directory to the LD_LIBRARY_PATH environment variable
- basic_analysis_script_root.py : do a one run analysis from LCIO files with RawCalorimeterHits. Typically produce output that are in analysisResults/GIF_october2016.tgz
- produce_run_tree_GIF.py : produce a ROOT tree from results from extraction of analysisResults/GIF_october2016.tgz.
- produce_october2016_GIF_plot.py : produce plots and slides from output of produce_run_tree_GIF.py
- run_trivent.py : perform the trivent operation (readout splitting based on time clustering and outputs LCIO CalorimeterHit collection)
- produce_root_tree_for_ECAL_HCAL.py : produce root tree from run_trivent.py
- GIF_oct2016_reportslides_v1.0
From the GRPC_RawHit_Readout_Analyse directory :
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${PWD}/lib
cd python
python run_trivent.py file1.slcio file2.slcio file3.slcio ...
This produces the following files :
- file1_file2_file3_TriventSplit.slcio (if file1.slcio is not in the current directory, only the file1.slcio basename is used to name the output file)
- file1_file2_file_TriventSplit_check.root : contains monitoring plots
You can also use option -d to specify the directory where are the files and option -r to specify the list of runs :
python run_trivent.py -d directory -r 656 658
The 2 produced files are named run_656_658_TriventSplit.slcio and run_656_658_TriventSplit_check.root
Then in the python directory, starts the python interpreter and :
import produce_root_tree_for_ECAL_HCAL
produce_root_tree_for_ECAL_HCAL.makeTree("file1_TriventSplit.slcio")
This produces the file file1_TriventSplit.root
At the ROOT prompt enter README->Draw()
to get an explanation of the ROOT tree variables.
Code licensed under the CeCILL 2.1 license :