Skip to content

Commit ebb4854

Browse files
committed
Included trigger in template generator
1 parent a77ed47 commit ebb4854

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

MC/bin/o2_hybrid_gen.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,19 @@ def main():
6969
else:
7070
print(f"Running in {mode} mode")
7171

72+
# Available options for trigger are "off", "or", "and"
73+
# in all the other cases the trigger is forced "off"
74+
75+
trgbase = {
76+
"mode": "off",
77+
"specs": [
78+
{
79+
"macro": "",
80+
"function": ""
81+
}
82+
]
83+
}
84+
7285
# put in a list all the elementes in the gen flag
7386
noConfGen = ["pythia8pp", "pythia8hf", "pythia8hi", "pythia8powheg"]
7487
gens = []
@@ -83,6 +96,7 @@ def main():
8396
configs = [get_params(cmd_instance, cmd_params), get_params(gens_instances[gen], gens_params[gen])]
8497
gens.append({
8598
'name': gen,
99+
'triggers': trgbase,
86100
'config': {
87101
"configcmd": configs[0],
88102
"confighepmc": configs[1]
@@ -92,11 +106,13 @@ def main():
92106
configs = get_params(gens_instances[gen],gens_params[gen])
93107
gens.append({
94108
'name': gen,
109+
'triggers': trgbase,
95110
'config': configs
96111
})
97112
elif gen in noConfGen:
98113
gens.append({
99114
"name": gen,
115+
'triggers': trgbase,
100116
"config": ""
101117
})
102118
else:
@@ -113,6 +129,7 @@ def main():
113129
configs["iniFile"] = ini
114130
gens.append({
115131
'name': 'external',
132+
'triggers': trgbase,
116133
'config': configs
117134
})
118135

0 commit comments

Comments
 (0)