19 from basf2
import set_log_level, LogLevel, create_path, process, register_module, statistics
22 set_log_level(LogLevel.INFO)
27 main.add_module(
"EventInfoSetter", expList=0, runList=1, evtNumList=100)
30 aafh = register_module(
'AafhInput')
47 'maxSubgeneratorWeight': 1.0,
51 'maxFinalWeight': 3.0,
56 'subgeneratorWeights': [
67 'suppressionLimits': [1e100] * 4,
71 aafh.logging.log_level = LogLevel.INFO
74 generatorpreselection = register_module(
'GeneratorPreselection')
75 generatorpreselection.param(
'nChargedMin', 1)
77 generatorpreselection.param(
'MinChargedP', 0.25)
78 generatorpreselection.param(
'MinChargedPt', 0.1)
79 generatorpreselection.param(
'MinChargedTheta', 17.)
80 generatorpreselection.param(
'MaxChargedTheta', 150.)
81 generatorpreselection.param(
'nPhotonMin', 1)
83 generatorpreselection.param(
'MinPhotonEnergy', 0.50)
84 generatorpreselection.param(
'MinPhotonTheta', 15.)
85 generatorpreselection.param(
'MaxPhotonTheta', 170.)
88 mcparticleprinter = register_module(
'PrintMCParticles')
89 mcparticleprinter.logging.log_level = LogLevel.INFO
91 output = register_module(
'RootOutput')
92 output.param(
'outputFileName',
'./aafh_out.root')
96 main.add_module(generatorpreselection)
98 emptypath = create_path()
99 generatorpreselection.if_value(
'<1', emptypath)
101 main.add_module(mcparticleprinter)
102 main.add_module(output)