18from basf2
import set_log_level, LogLevel, create_path, process, register_module, statistics
21set_log_level(LogLevel.INFO)
26main.add_module(
"EventInfoSetter", expList=0, runList=1, evtNumList=100)
29aafh = register_module(
'AafhInput')
46 'maxSubgeneratorWeight': 1.0,
50 'maxFinalWeight': 3.0,
55 'subgeneratorWeights': [
66 'suppressionLimits': [1e100] * 4,
70aafh.logging.log_level = LogLevel.INFO
73generatorpreselection = register_module(
'GeneratorPreselection')
74generatorpreselection.param(
'nChargedMin', 1)
76generatorpreselection.param(
'MinChargedP', 0.25)
77generatorpreselection.param(
'MinChargedPt', 0.1)
78generatorpreselection.param(
'MinChargedTheta', 17.)
79generatorpreselection.param(
'MaxChargedTheta', 150.)
80generatorpreselection.param(
'nPhotonMin', 1)
82generatorpreselection.param(
'MinPhotonEnergy', 0.50)
83generatorpreselection.param(
'MinPhotonTheta', 15.)
84generatorpreselection.param(
'MaxPhotonTheta', 170.)
87mcparticleprinter = register_module(
'PrintMCParticles')
88mcparticleprinter.logging.log_level = LogLevel.INFO
90output = register_module(
'RootOutput')
91output.param(
'outputFileName',
'./aafh_out.root')
95main.add_module(generatorpreselection)
97emptypath = create_path()
98generatorpreselection.if_value(
'<1', emptypath)
100main.add_module(mcparticleprinter)
101main.add_module(output)