ATLAS Offline Software
Loading...
Searching...
No Matches
ProphecyPowhegCommon.py
Go to the documentation of this file.
1from Prophecy4fControl import ProphecyPowhegDefault
2
3# Use the Powheg parameters for configuration
4transform_runArgs = runArgs if 'runArgs' in dir() else None
5transform_opts = opts if 'opts' in dir() else None
6ProphecyConfig4e = ProphecyPowhegDefault( runArgs=transform_runArgs, opts=transform_opts )
7ProphecyConfig4mu = ProphecyPowhegDefault( runArgs=transform_runArgs, opts=transform_opts )
8ProphecyConfig2e2mu = ProphecyPowhegDefault( runArgs=transform_runArgs, opts=transform_opts )
9
10# runargs.maxEvents number of generated events
11
12# Generate a file for 4e
13ProphecyConfig4e.mass_t = PowhegConfig.mass_t
14ProphecyConfig4e.mass_b = PowhegConfig.mass_b
15ProphecyConfig4e.mass_c = PowhegConfig.mass_c
16ProphecyConfig4e.mass_H = PowhegConfig.mass_H
17ProphecyConfig4e.channel = "e anti-e e anti-e"
18ProphecyConfig4e.output_events_file_name = "ProphecyOTF4e._1.events"
19
20# for testing, set nEvents_weighted. nEvents is normally set by --maxEvents in launching script
21ProphecyConfig4e.nEvents = int( 1.3 * runArgs.maxEvents / 4 + 0.5 ) # 1/4 for this channel
22ProphecyConfig4e.nEvents_weighted = 100*runArgs.maxEvents # for prod jobs
23ProphecyConfig4e.random_seed = 123*runArgs.randomSeed # separate random seed for 4e
24
25ProphecyConfig4e.generateRunCard()
26ProphecyConfig4e.generateEvents()
27
28# Generate a file for 4mu
29ProphecyConfig4mu.mass_t = PowhegConfig.mass_t
30ProphecyConfig4mu.mass_b = PowhegConfig.mass_b
31ProphecyConfig4mu.mass_c = PowhegConfig.mass_c
32ProphecyConfig4mu.mass_H = PowhegConfig.mass_H
33ProphecyConfig4mu.channel = "mu anti-mu mu anti-mu"
34ProphecyConfig4mu.output_events_file_name = "ProphecyOTF4mu._1.events"
35
36# for testing, set nEvents_weighted. nEvents is normally set by --maxEvents in launching script
37ProphecyConfig4mu.nEvents = int( 1.3 * runArgs.maxEvents / 4 + 0.5 ) # 1/4 for this channel
38ProphecyConfig4mu.nEvents_weighted = 100*runArgs.maxEvents # for prod jobs
39ProphecyConfig4mu.random_seed = 368*runArgs.randomSeed # separate random seed for 4mu
40
41ProphecyConfig4mu.generateRunCard()
42ProphecyConfig4mu.generateEvents()
43
44# Generate a file for 2e2mu
45ProphecyConfig2e2mu.mass_t = PowhegConfig.mass_t
46ProphecyConfig2e2mu.mass_b = PowhegConfig.mass_b
47ProphecyConfig2e2mu.mass_c = PowhegConfig.mass_c
48ProphecyConfig2e2mu.mass_H = PowhegConfig.mass_H
49ProphecyConfig2e2mu.channel = "e anti-e mu anti-mu"
50ProphecyConfig2e2mu.output_events_file_name = 'ProphecyOTF2e2mu._1.events'
51
52# for testing, set nEvents_weighted. nEvents is normally set by --maxEvents in launching script
53ProphecyConfig2e2mu.nEvents = int( 1.3 * runArgs.maxEvents / 2 + 0.5 ) # 1/2 for this channel
54ProphecyConfig2e2mu.nEvents_weighted = 200*runArgs.maxEvents # for prod jobs
55ProphecyConfig2e2mu.random_seed = 278*runArgs.randomSeed # separate random seed for 2e2mu
56
57ProphecyConfig2e2mu.generateRunCard()
58ProphecyConfig2e2mu.generateEvents()