-
Notifications
You must be signed in to change notification settings - Fork 1
/
miniboone.py
53 lines (46 loc) · 2.34 KB
/
miniboone.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# fill dag with MiniBooNE-like test jobs
import msg
import outputPaths
import os
import commonFunctions
# 1st attempt to generate MiniBooNE event sample(s) (minimalistic 10K events
#
# numu CCQE, Release-2010
#
# gevgen -n 10000 -p 14 -t 1000060120[0.857142],1000010010[0.142857] \
# -e 0,10. --cross-sections gxspl-vA-trunk.xml -r 10000 \
# -f data/fluxes/miniboone/miniboone_april07_baseline_rgen610.6_flux_pospolarity_fluxes.root,flux_pos_pol_numu
#
# numubar CCQE, Release-2013
# gevgen -n 10000 -p -14 -t 1000060120[0.857142],1000010010[0.142857] \
# -e 0,10. --cross-sections gxspl-vA-trunk.xml -r 20000 \
# -f data/fluxes/miniboone/miniboone_december2007_horn-174ka_rgen610.6_flux_negpolarity_fluxes.root,flux_neg_pol_numub
#
# NOTE: one may also want to use --seed <SEED>
#
# nevents="100000"
meta = {
'Experiment' : 'MiniBooNE',
'target' : '1000060120[0.857142],1000010010[0.142857]'
}
data_struct = {
'numuccqe' : { 'projectile' : '14', 'energy' : '0,10.',
'flux' : 'data/fluxes/miniboone/miniboone_april07_baseline_rgen610.6_flux_pospolarity_fluxes.root,flux_pos_pol_numu',
'releaselabel' : 'numu_ccqe_2010',
'datafiles' : [ 'miniboone_nuccqe_2010.xml' ], # no need for leading 'data/measurements/vA/miniboone/'
'dataclass' : 'MBCCQEData',
'mcpredictions' : [ 'MBCCQEPrediction' ]
} #,
# 'numubarccqe' : { 'projectile' : '-14', 'energy' : '0,10.',
# 'flux' : 'data/fluxes/miniboone/miniboone_december2007_horn-174ka_rgen610.6_flux_negpolarity_fluxes.root,flux_neg_pol_numub',
# 'releaselabel' : 'numubar_ccqe_2013',
# 'datafiles' : [ 'miniboone_nubarccqe_2013.xml' ], # no need for leading 'data/measurements/vA/miniboone/'
# 'dataclass': 'MBCCQEData',
# 'mcpredictions' : ['MBCCQEPrediction']
# }
}
def fillDAG( jobsub, tag, date, paths, main_tune, tunes, regretags, regredir ):
outputPaths.expand( paths['miniboone'], tunes )
commonFunctions.fillDAG_GHEP( meta, data_struct, jobsub, tag, paths['xsec_A'], paths['miniboone'], main_tune, tunes )
commonFunctions.createCmpConfigs( meta, data_struct, tag, date, paths['mbrep'], main_tune, tunes, regretags, regredir )
commonFunctions.fillDAG_cmp( meta, data_struct, jobsub, tag, date, paths['xsec_A'], paths['miniboone'], paths['mbrep'], main_tune, tunes, regretags, regredir )