- Author : Yves Lemiere
- email : lemiere-at-lpccaen.in2p3.fr
- date : 2018
sn-flash is python wrapper to use Falaise software for simulation, processing (and analysis).
- Tested at CCLYON
- Tested using another batch system
- Fill Database
- sn-flash initial configuration to improve
To use sn-flash on your computer (account at CCLYON), you have to install :
- Falaise 3.0 or higher
- Python 3.5 or higher
- pyAMI_core
- pyAMI_supernemo
To get the python scripts get the latest dev., use
git clone https://github.com/lemiere/sn-flash.git
Fill correctly the snemo.cfg file (mainly [SW_CFG] section)
- Prepare working tree
- Run on batch system
- Store production on HPSS@CCLYON
./main_mgr.py --help
- Prepare directory tree and configure simulation production
- Run simulation based on previous configuration
- Store simulated directory tree with .brio files
- Prepare directory tree and configure reconstruction based on previous simualtion production
- Run reconstruction
- Store reconstruction directory tree with .brio files
$ python main_mgr.py --task simu --prepare --nb_file 5 --event_per_file 1000 --exp_name Demonstrator
Answer to questions to configure your production (default use GUI)
DEBUG : [prepare_tree] : working tree starting by /path/on/sps/at/lyon/ylemiere/damned_sn_simu_1000
|-> CONFIG PATH : /path/on/sps/at/lyon/ylemiere/damned_sn_simu_1000/config.d
| |-> VARIANT PATH : /variant.d/
| | `-> file name: variant.profile
| |-> SEED PATH : /seeds.d/
| `-> CONF PATH : /conf.d/
|-> OUTPUT DATA PATH : /path/on/sps/at/lyon/ylemiere/damned_sn_simu_1000/output_files.d
`-> SYS PATH : /path/on/sps/at/lyon/ylemiere/damned_sn_simu_1000/.sys
|-> LOG PATH : /log.d/
| `-> file name: main.log
`-> LAUNCHER PATH : /launcher.d/
[...]
INFO : [main_mgr.py] : You can process that cmd :
python main_mgr.py --task simu --run PATH
Check that /path/on/sps/at/lyon/ylemiere/damned_sn_simu_1000 looks fine
$ python main_mgr.py --task simu --run /path/on/sps/at/lyon/ylemiere/damned_sn_simu_1000
CCLYON Batch system will start soon.
Check batch status using qstat command and Wait a while
$ python main_mgr.py --task simu --store /path/on/sps/at/lyon/ylemiere/damned_sn_simu_1000
- For a blessed production, storage path has to be define by a blessed path.
- For a user production, storage path on HPSS will be
/path/on/hpss/at/lyon/${USER}/
[...]
INFO : [store_mc] : Expected storage path : /path/on/hpss/at/lyon/ylemiere/damned_sn_simu_1000
You can reconstruct simulated data based on simulation production on /sps or /hpss.
$ python main_mgr.py --task reco --prepare --input_data /path/on/hpss/at/lyon/ylemiere/damned_sn_simu_1000 --exp_name Demonstrator
or
$ python main_mgr.py --task reco --prepare --input_data /path/on/sps/at/lyon/ylemiere/damned_sn_simu_1000 --exp_name Demonstrator
Answer to questions
INFO : [prepare_tree] : Based on SD production :/path/on/hpss/at/lyon/ylemiere/damned_sn_simu_1000s
|-> CONFIG PATH : /path/on/sps/at/lyon/ylemiere/damned_sn_reco_1000/config.d
| `-> CONF PATH : /conf.d/
|-> OUTPUT DATA PATH : /path/on/sps/at/lyon/ylemiere/damned_sn_reco_1000/output_files.d
`-> SYS PATH : /path/on/sps/at/lyon/ylemiere/damned_sn_reco_1000/.sys
|-> LOG PATH : /log.d/
| `-> file name: main.log
`-> LAUNCHER PATH : /launcher.d/
DEBUG : [prepare_tree] : Working tree produced !
[...]
INFO : [main_mgr.py] : You can process that cmd :
python main_mgr.py --task reco --run PATH
$ python main_mgr.py --task reco --run /path/on/sps/at/lyon/ylemiere/damned_sn_reco_1000
To check the running jobs on batch system, use qstat command
$ python main_mgr.py --task reco --store /path/on/sps/at/lyon/ylemiere/damned_sn_reco_1000
[...]
INFO : [store_mc] : Expected storage path : /path/on/hpss/at/lyon/ylemiere/damned_sn_reco_1000
$ python main_mgr.py --task simu --prepare --nb_file 5 --event_per_file 1000 --exp_name Demonstrator
$ python main_mgr.py --task simu --run /path/on/sps/at/lyon/ylemiere/damned_sn_simu_1000
$ python main_mgr.py --task simu --store /path/on/sps/at/lyon/ylemiere/damned_sn_simu_1000
$ python main_mgr.py --task reco --prepare --input_data /path/on/hpss/at/lyon/ylemiere/damned_sn_simu_1000 --exp_name Demonstrator
$ python main_mgr.py --task reco --run /path/on/sps/at/lyon/ylemiere/damned_sn_reco_1000
$ python main_mgr.py --task reco --store /path/on/sps/at/lyon/ylemiere/damned_sn_reco_1000
Problem, questions, suggestions : raise an issue.
