Add a possibility to write tuples in Gauss
This adds a possibility to write tuples in Gauss needed for the production of fast simualtion training datasets.
tested with:
lb-run --use AppConfig.v3r409 --use ProdConf Gauss/v55r3 gaudirun.py -T '$APPCONFIGOPTS/Gauss/Beam7000GeV-mu100-nu3.8-HorExtAngle.py' '$DECFILESROOT/options/30000000.py' '$LBPYTHIA8ROOT/options/Pythia8.py' '$APPCONFIGOPTS/Gauss/Gauss-Upgrade-Baseline-20150522.py' '$APPCONFIGOPTS/Gauss/G4PL_FTFP_BERT_EmOpt2.py' options.py gauss_opts.py -n -o config-output.py
Although this works locally with ProdConf, it definitely needs some changes in the options of NTupleSvc
that I am not sure how to configure in order to make it compatible with Dirac... Any hints would be greatly appreciated!
Update 10/05/22
Added a few sanity checks. I made a few additional tests, which would normally go in the integration tests of ProdConf, but I think we need !18 first. In any case, I am writing all the possible outcomes here in case it will be later used by in the tests.
Test1: production without tuples
lb-run --use AppConfig.v3r409 --use ProdConf Gauss/v55r4 gaudirun.py -T gauss_options.py prodconf_options.py -o config-output.py
Possible outcomes:
OutputFileType | Status |
---|---|
[] |
ValueError: Min 1 OutputFileTypes required |
['sim'] |
OK & correct |
['sim', 'gen'] |
ValueError: Max 1 standard Gauss accepted |
['sim', 'gen', 'mctuple.root'] |
ValueError: Max 2 OutputFileTypes supported |
['sim', 'wrong.root'] |
ValueError: Max 1 standard Gauss accepted |
['sim', 'mctuple.root'] |
OK, but not correct |
['fastsim_mctuple.root', 'sim'] |
OK, but not correct |
['SiM', 'FaStSiM_McTuPlE.RoOt'] |
OK, but not correct |
['SiM', 'mctuple.root'] |
OK, but not correct |
['mctuple.root'] |
OK, but not correct |
['1_mctuple.root', '2_mctuple.root'] |
ValueError: Max 1 ntuple output supported |
Test2: production with tuples
gauss_options_with_ntuplesvc.py
lb-run --use AppConfig.v3r409 --use ProdConf Gauss/v55r4 gaudirun.py -T gauss_options_with_ntuplesvc.py prodconf_options.py -o config-output.py
Possible outcomes:
OutputFileType | Status |
---|---|
[] |
ValueError: Min 1 OutputFileTypes required |
['sim'] |
OK, but Gauss will fail |
['sim', 'gen'] |
ValueError: Max 1 standard Gauss accepted |
['sim', 'gen', 'mctuple.root'] |
ValueError: Max 2 OutputFileTypes supported |
['sim', 'wrong.root'] |
ValueError: Max 1 standard Gauss accepted |
['sim', 'mctuple.root'] |
OK & correct |
['fastsim_mctuple.root', 'sim'] |
OK & correct |
['SiM', 'FaStSiM_McTuPlE.RoOt'] |
OK & correct |
['SiM', 'mctuple.root'] |
OK & correct |
['mctuple.root'] |
OK & correct |
['1_mctuple.root', '2_mctuple.root'] |
ValueError: Max 1 ntuple output supported |
Edited by Michal Mazurek