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