|
30 | 30 | parser.add_argument('-ptHatBin',help='pT hard bin number', default=-1) |
31 | 31 | parser.add_argument('-ptHatMin',help='pT hard minimum when no bin requested', default=0) |
32 | 32 | parser.add_argument('-ptHatMax',help='pT hard maximum when no bin requested', default=-1) |
| 33 | +parser.add_argument('-weightPow',help='Flatten pT hard spectrum with power', default=-1) |
| 34 | + |
33 | 35 | parser.add_argument('-ptTrigMin',help='generated pT trigger minimum', default=0) |
34 | 36 | parser.add_argument('-ptTrigMax',help='generated pT trigger maximum', default=-1) |
35 | 37 |
|
@@ -122,6 +124,9 @@ def getDPL_global_options(bigshm=False,nosmallrate=False): |
122 | 124 | PTTRIGMIN=float(args.ptTrigMin) |
123 | 125 | PTTRIGMAX=float(args.ptTrigMax) |
124 | 126 |
|
| 127 | + ## Pt Hat productions |
| 128 | + WEIGHTPOW=int(args.weightPow) |
| 129 | + |
125 | 130 | # Recover PTHATMIN and PTHATMAX from pre-defined array depending bin number PTHATBIN |
126 | 131 | # or just the ones passed |
127 | 132 | PTHATBIN=int(args.ptHatBin) |
@@ -185,14 +190,16 @@ def getDPL_global_options(bigshm=False,nosmallrate=False): |
185 | 190 | SGN_CONFIG_task=createTask(name='gensgnconf_'+str(tf), tf=tf, cwd=timeframeworkdir) |
186 | 191 | if GENERATOR == 'pythia8': |
187 | 192 | SGN_CONFIG_task['cmd'] = '${O2DPG_ROOT}/MC/config/common/pythia8/utils/mkpy8cfg.py \ |
188 | | - --output=pythia8_'+ str(tf) +'.cfg \ |
| 193 | + --output=pythia8.cfg \ |
189 | 194 | --seed='+str(RNDSEED)+' \ |
190 | 195 | --idA='+str(PDGA)+' \ |
191 | 196 | --idB='+str(PDGB)+' \ |
192 | 197 | --eCM='+str(ECMS)+' \ |
193 | 198 | --process='+str(PROCESS)+' \ |
194 | 199 | --ptHatMin=' + str(PTHATMIN) + ' \ |
195 | 200 | --ptHatMax=' + str(PTHATMAX) |
| 201 | + if WEIGHTPOW > -1: |
| 202 | + SGN_CONFIG_task['cmd'] = SGN_CONFIG_task['cmd'] + ' --weightPow=' + str(WEIGHTPOW) |
196 | 203 | workflow['stages'].append(SGN_CONFIG_task) |
197 | 204 | # elif GENERATOR == 'extgen': what do we do if generator is not pythia8? |
198 | 205 |
|
|
0 commit comments