Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
atlas
athena
Commits
01346776
Commit
01346776
authored
May 04, 2021
by
William Patrick Mccormack
Browse files
Updating jobOptions files and adding initial state protons to EventFiller
parent
85377c7c
Changes
6
Hide whitespace changes
Inline
Side-by-side
Generators/Superchic_i/python/EventFiller.py
View file @
01346776
...
...
@@ -49,6 +49,34 @@ class LheEVNTFiller(EvgenAlg):
if
event
and
firstLine
:
firstLine
=
False
evt
.
weights
().
push_back
(
float
(
line
.
split
()[
2
]))
#Add the initial state protons
pos
=
HepMC
.
FourVector
(
0.0
,
0.0
,
0.0
,
0.0
)
gv
=
HepMC
.
GenVertex
(
pos
)
ROOT
.
SetOwnership
(
gv
,
False
)
evt
.
add_vertex
(
gv
)
mom
=
HepMC
.
FourVector
(
0.
,
0.
,
6499999.9323
,
6500000.00
)
gp
=
HepMC
.
GenParticle
()
gp
.
set_status
(
2
)
gp
.
set_pdg_id
(
2212
)
gp
.
set_momentum
(
mom
)
gp
.
set_generated_mass
(
938.272046
)
ROOT
.
SetOwnership
(
gp
,
False
)
gv
.
add_particle_out
(
gp
)
pos
=
HepMC
.
FourVector
(
0.0
,
0.0
,
0.0
,
0.0
)
gv
=
HepMC
.
GenVertex
(
pos
)
ROOT
.
SetOwnership
(
gv
,
False
)
evt
.
add_vertex
(
gv
)
mom
=
HepMC
.
FourVector
(
0.
,
0.
,
-
6499999.9323
,
6500000.00
)
gp
=
HepMC
.
GenParticle
()
gp
.
set_status
(
2
)
gp
.
set_pdg_id
(
2212
)
gp
.
set_momentum
(
mom
)
gp
.
set_generated_mass
(
938.272046
)
ROOT
.
SetOwnership
(
gp
,
False
)
gv
.
add_particle_out
(
gp
)
continue
if
event
:
pos
=
HepMC
.
FourVector
(
0.0
,
0.0
,
0.0
,
0.0
)
...
...
@@ -60,7 +88,6 @@ class LheEVNTFiller(EvgenAlg):
gp
.
set_status
(
int
(
line
.
split
()[
1
])
)
gp
.
set_pdg_id
(
int
(
line
.
split
()[
0
])
)
gp
.
set_momentum
(
mom
)
print
(
float
(
line
.
split
()[
10
])
*
1000.
)
gp
.
set_generated_mass
(
float
(
line
.
split
()[
10
])
*
1000.
)
ROOT
.
SetOwnership
(
gp
,
False
)
gv
.
add_particle_out
(
gp
)
...
...
Generators/Superchic_i/share/jobOptions.Super
c
hicPy8
EG
_yyMuMu_DD.py
→
Generators/Superchic_i/share/jobOptions.Super
C
hicPy8_yyMuMu_DD.py
View file @
01346776
...
...
@@ -35,54 +35,48 @@ Init.genunw = ".true."
hasNev
=
hasattr
(
runArgs
,
"maxEvents"
)
if
hasNev
:
Init
.
nev
=
str
(
runArgs
.
maxEvents
)
Init
.
ymin
=
"-
2.4
d0"
# Minimum object rapidity Y_X
Init
.
ymax
=
"
2.4
d0"
# Maximum object rapidity Y_X
Init
.
mmin
=
"
6
d0"
# Minimum object mass M_X
Init
.
mmax
=
"
5
00d0"
# Maximum object mass M_X
Init
.
ymin
=
"-
5.0
d0"
# Minimum object rapidity Y_X
Init
.
ymax
=
"
5.0
d0"
# Maximum object rapidity Y_X
Init
.
mmin
=
"
20
d0"
# Minimum object mass M_X
Init
.
mmax
=
"
20
00d0"
# Maximum object mass M_X
Init
.
gencuts
=
".true."
# Generate cuts below
Init
.
ptxmax
=
"100d0"
#cut on proton pt
Init
.
ptamin
=
"
3
.0d0"
# Minimum pT of outgoing object a
Init
.
ptbmin
=
"
3
.0d0"
# Minimum pT of outgoing object b
Init
.
etaamin
=
"-2.
4
d0"
# Minimum eta of outgoing object a
Init
.
etaamax
=
"2.
4
d0"
# Maximum eta of outgoing object a
Init
.
etabmin
=
"-2.
4
d0"
# Minimum eta of outgoing object b
Init
.
etabmax
=
"2.
4
d0"
# Maximum eta of outgoing object b
Init
.
ptamin
=
"
10
.0d0"
# Minimum pT of outgoing object a
Init
.
ptbmin
=
"
10
.0d0"
# Minimum pT of outgoing object b
Init
.
etaamin
=
"-2.
5
d0"
# Minimum eta of outgoing object a
Init
.
etaamax
=
"2.
5
d0"
# Maximum eta of outgoing object a
Init
.
etabmin
=
"-2.
5
d0"
# Minimum eta of outgoing object b
Init
.
etabmax
=
"2.
5
d0"
# Maximum eta of outgoing object b
Init
.
acoabmax
=
"100d0"
SuperChicRun
(
Init
)
## Base config for Pythia8
from
Pythia8_i.Pythia8_iConf
import
Pythia8_i
genSeq
+=
Pythia8_i
(
"Pythia8"
)
evgenConfig
.
generators
+=
[
"Pythia8"
]
include
(
"Pythia8_i/Pythia8_Base_Fragment.py"
)
## Control storing LHE in the HepMC record
if
"StoreLHE"
in
genSeq
.
Pythia8
.
__slots__
.
keys
():
print
"Pythia8_Base_Fragment.py: DISABLING storage of LHE record in HepMC by default. Please re-enable storage if desired"
genSeq
.
Pythia8
.
StoreLHE
=
False
genSeq
.
Pythia8
.
Commands
+=
[
"PDF:pSet= LHAPDF6:NNPDF23_nnlo_as_0118_qed"
,
"SpaceShower:rapidityOrder = on"
,
"SigmaProcess:alphaSvalue = 0.140"
,
"SpaceShower:pT0Ref = 1.56"
,
"SpaceShower:pTmaxFudge = 0.91"
,
"SpaceShower:pTdampFudge = 1.05"
,
"SpaceShower:alphaSvalue = 0.127"
,
"TimeShower:alphaSvalue = 0.127"
,
"SpaceShower:pTdampMatch = 1"
,
"BeamRemnants:primordialKThard = 1.88"
,
"PartonLevel:MPI = off"
,
"PartonLevel:FSR = on"
,
"SpaceShower:dipoleRecoil = on"
,
"SpaceShower:pTmaxMatch = 2"
,
"SpaceShower:QEDshowerByQ = off"
"BeamRemnants:primordialKT = off"
,
"SpaceShower:QEDshowerByQ = off"
,
"BeamRemnants:unresolvedHadron = 0"
,
"SpaceShower:pTdampMatch=1"
]
evgenConfig
.
tune
=
"NNPDF23_QED"
#EvtGen for b fragmentation as default. No EvtGen is available in "nonStandard"
include
(
"Pythia8_i/Pythia8_EvtGen.py"
)
include
(
"Pythia8_i/Pythia8_ShowerWeights.py"
)
assert
hasattr
(
genSeq
,
"Pythia8"
)
fileName
=
"evrecs/evrec"
+
Init
.
outtg
[
1
:
-
1
]
+
".dat"
genSeq
.
Pythia8
.
LHEFile
=
fileName
genSeq
.
Pythia8
.
CollisionEnergy
=
int
(
runArgs
.
ecmEnergy
)
testSeq
.
TestHepMC
.
MaxTransVtxDisp
=
1000000
testSeq
.
TestHepMC
.
MaxVtxDisp
=
1000000000
Generators/Superchic_i/share/jobOptions.SuperChicPy8_yyMuMu_El.py
0 → 100644
View file @
01346776
evgenConfig
.
description
=
"SuperChic4 MC gamma + gamma pp collisions at 13000 GeV to 2 muons with dissociation on both side"
evgenConfig
.
keywords
=
[
"2photon"
,
"2muon"
,
"dissociation"
]
#evgenConfig.weighting = 0
evgenConfig
.
contact
=
[
"william.patrick.mccormack.iii@cern.ch"
]
if
not
os
.
path
.
exists
(
'inputs'
):
os
.
makedirs
(
'inputs'
)
if
not
os
.
path
.
exists
(
'evrecs'
):
os
.
makedirs
(
'evrecs'
)
if
not
os
.
path
.
exists
(
'outputs'
):
os
.
makedirs
(
'outputs'
)
from
Superchic_i.SuperChicUtils
import
*
#class with the superchic initialization parameters. Please see SuperChicUtils for a complete list of tunable parameters.
Init
=
SuperChicConfig
()
hasECM
=
hasattr
(
runArgs
,
"ecmEnergy"
)
if
hasECM
:
ecm
=
int
(
runArgs
.
ecmEnergy
)
Init
.
rts
=
str
(
ecm
)
+
"d0"
# set the COM collision energy (in fortran syntax)
Init
.
isurv
=
"4"
# Model of soft survival (from 1 -> 4, corresponding to arXiv:1306.2149)
Init
.
intag
=
"'in5'"
# for input files
Init
.
PDFname
=
"'MMHT2014lo68cl'"
# PDF set name
Init
.
PDFmember
=
"0"
# PDF member
Init
.
proc
=
"57"
# Process number (59 = gg->gg, 56 = gg->ee, 68 = gg->a->gg ); Please consult Superchic Manual https://superchic.hepforge.org/
Init
.
beam
=
"'prot'"
# Beam type ('prot', 'ion')
Init
.
outtg
=
"'out'"
# for output file name
Init
.
sfaci
=
".true."
# Include soft survival effects
Init
.
diff
=
"'el'"
# interaction: elastic ('el'), single ('sd','sda','sdb') and double ('dd') dissociation.
hasSeed
=
hasattr
(
runArgs
,
"randomSeed"
)
if
hasSeed
:
Init
.
iseed
=
str
(
int
(
runArgs
.
randomSeed
))
Init
.
genunw
=
".true."
hasNev
=
hasattr
(
runArgs
,
"maxEvents"
)
if
hasNev
:
Init
.
nev
=
str
(
runArgs
.
maxEvents
)
Init
.
ymin
=
"-5.0d0"
# Minimum object rapidity Y_X
Init
.
ymax
=
"5.0d0"
# Maximum object rapidity Y_X
Init
.
mmin
=
"20d0"
# Minimum object mass M_X
Init
.
mmax
=
"2000d0"
# Maximum object mass M_X
Init
.
gencuts
=
".true."
# Generate cuts below
Init
.
ptxmax
=
"100d0"
#cut on proton pt
Init
.
ptamin
=
"10.0d0"
# Minimum pT of outgoing object a
Init
.
ptbmin
=
"10.0d0"
# Minimum pT of outgoing object b
Init
.
etaamin
=
"-2.5d0"
# Minimum eta of outgoing object a
Init
.
etaamax
=
"2.5d0"
# Maximum eta of outgoing object a
Init
.
etabmin
=
"-2.5d0"
# Minimum eta of outgoing object b
Init
.
etabmax
=
"2.5d0"
# Maximum eta of outgoing object b
Init
.
acoabmax
=
"100d0"
SuperChicRun
(
Init
)
## Base config for Pythia8
from
Pythia8_i.Pythia8_iConf
import
Pythia8_i
genSeq
+=
Pythia8_i
(
"Pythia8"
)
evgenConfig
.
generators
+=
[
"Pythia8"
]
## Control storing LHE in the HepMC record
if
"StoreLHE"
in
genSeq
.
Pythia8
.
__slots__
.
keys
():
print
"Pythia8_Base_Fragment.py: DISABLING storage of LHE record in HepMC by default. Please re-enable storage if desired"
genSeq
.
Pythia8
.
StoreLHE
=
False
genSeq
.
Pythia8
.
Commands
+=
[
"PartonLevel:MPI = off"
,
"SpaceShower:pTmaxMatch = 2"
,
"BeamRemnants:primordialKT = off"
,
"BeamRemnants:unresolvedHadron = 3"
,
"SpaceShower:pTdampMatch=1"
,
"PartonLevel:ISR = off"
,
"LesHouches:matchInOut = off"
]
assert
hasattr
(
genSeq
,
"Pythia8"
)
fileName
=
"evrecs/evrec"
+
Init
.
outtg
[
1
:
-
1
]
+
".dat"
genSeq
.
Pythia8
.
LHEFile
=
fileName
genSeq
.
Pythia8
.
CollisionEnergy
=
int
(
runArgs
.
ecmEnergy
)
testSeq
.
TestHepMC
.
MaxTransVtxDisp
=
1000000
testSeq
.
TestHepMC
.
MaxVtxDisp
=
1000000000
Generators/Superchic_i/share/jobOptions.SuperChicPy8_yyMuMu_SDA.py
0 → 100644
View file @
01346776
evgenConfig
.
description
=
"SuperChic4 MC gamma + gamma pp collisions at 13000 GeV to 2 muons with dissociation on both side"
evgenConfig
.
keywords
=
[
"2photon"
,
"2muon"
,
"dissociation"
]
#evgenConfig.weighting = 0
evgenConfig
.
contact
=
[
"william.patrick.mccormack.iii@cern.ch"
]
if
not
os
.
path
.
exists
(
'inputs'
):
os
.
makedirs
(
'inputs'
)
if
not
os
.
path
.
exists
(
'evrecs'
):
os
.
makedirs
(
'evrecs'
)
if
not
os
.
path
.
exists
(
'outputs'
):
os
.
makedirs
(
'outputs'
)
from
Superchic_i.SuperChicUtils
import
*
#class with the superchic initialization parameters. Please see SuperChicUtils for a complete list of tunable parameters.
Init
=
SuperChicConfig
()
hasECM
=
hasattr
(
runArgs
,
"ecmEnergy"
)
if
hasECM
:
ecm
=
int
(
runArgs
.
ecmEnergy
)
Init
.
rts
=
str
(
ecm
)
+
"d0"
# set the COM collision energy (in fortran syntax)
Init
.
isurv
=
"4"
# Model of soft survival (from 1 -> 4, corresponding to arXiv:1306.2149)
Init
.
intag
=
"'in5'"
# for input files
Init
.
PDFname
=
"'MMHT2014lo68cl'"
# PDF set name
Init
.
PDFmember
=
"0"
# PDF member
Init
.
proc
=
"57"
# Process number (59 = gg->gg, 56 = gg->ee, 68 = gg->a->gg ); Please consult Superchic Manual https://superchic.hepforge.org/
Init
.
beam
=
"'prot'"
# Beam type ('prot', 'ion')
Init
.
outtg
=
"'out'"
# for output file name
Init
.
sfaci
=
".true."
# Include soft survival effects
Init
.
diff
=
"'sda'"
# interaction: elastic ('el'), single ('sd','sda','sdb') and double ('dd') dissociation.
hasSeed
=
hasattr
(
runArgs
,
"randomSeed"
)
if
hasSeed
:
Init
.
iseed
=
str
(
int
(
runArgs
.
randomSeed
))
Init
.
genunw
=
".true."
hasNev
=
hasattr
(
runArgs
,
"maxEvents"
)
if
hasNev
:
Init
.
nev
=
str
(
runArgs
.
maxEvents
)
Init
.
ymin
=
"-5.0d0"
# Minimum object rapidity Y_X
Init
.
ymax
=
"5.0d0"
# Maximum object rapidity Y_X
Init
.
mmin
=
"20d0"
# Minimum object mass M_X
Init
.
mmax
=
"2000d0"
# Maximum object mass M_X
Init
.
gencuts
=
".true."
# Generate cuts below
Init
.
ptxmax
=
"100d0"
#cut on proton pt
Init
.
ptamin
=
"10.0d0"
# Minimum pT of outgoing object a
Init
.
ptbmin
=
"10.0d0"
# Minimum pT of outgoing object b
Init
.
etaamin
=
"-2.5d0"
# Minimum eta of outgoing object a
Init
.
etaamax
=
"2.5d0"
# Maximum eta of outgoing object a
Init
.
etabmin
=
"-2.5d0"
# Minimum eta of outgoing object b
Init
.
etabmax
=
"2.5d0"
# Maximum eta of outgoing object b
Init
.
acoabmax
=
"100d0"
SuperChicRun
(
Init
)
## Base config for Pythia8
from
Pythia8_i.Pythia8_iConf
import
Pythia8_i
genSeq
+=
Pythia8_i
(
"Pythia8"
)
evgenConfig
.
generators
+=
[
"Pythia8"
]
## Control storing LHE in the HepMC record
if
"StoreLHE"
in
genSeq
.
Pythia8
.
__slots__
.
keys
():
print
"Pythia8_Base_Fragment.py: DISABLING storage of LHE record in HepMC by default. Please re-enable storage if desired"
genSeq
.
Pythia8
.
StoreLHE
=
False
genSeq
.
Pythia8
.
Commands
+=
[
"PartonLevel:MPI = off"
,
"SpaceShower:dipoleRecoil = on"
,
"SpaceShower:pTmaxMatch = 2"
,
"BeamRemnants:primordialKT = off"
,
"SpaceShower:QEDshowerByQ = off"
,
"BeamRemnants:unresolvedHadron = 2"
,
"SpaceShower:pTdampMatch=1"
]
assert
hasattr
(
genSeq
,
"Pythia8"
)
fileName
=
"evrecs/evrec"
+
Init
.
outtg
[
1
:
-
1
]
+
".dat"
genSeq
.
Pythia8
.
LHEFile
=
fileName
genSeq
.
Pythia8
.
CollisionEnergy
=
int
(
runArgs
.
ecmEnergy
)
testSeq
.
TestHepMC
.
MaxTransVtxDisp
=
1000000
testSeq
.
TestHepMC
.
MaxVtxDisp
=
1000000000
Generators/Superchic_i/share/jobOptions.SuperChicPy8_yyMuMu_SDB.py
0 → 100644
View file @
01346776
evgenConfig
.
description
=
"SuperChic4 MC gamma + gamma pp collisions at 13000 GeV to 2 muons with dissociation on both side"
evgenConfig
.
keywords
=
[
"2photon"
,
"2muon"
,
"dissociation"
]
#evgenConfig.weighting = 0
evgenConfig
.
contact
=
[
"william.patrick.mccormack.iii@cern.ch"
]
if
not
os
.
path
.
exists
(
'inputs'
):
os
.
makedirs
(
'inputs'
)
if
not
os
.
path
.
exists
(
'evrecs'
):
os
.
makedirs
(
'evrecs'
)
if
not
os
.
path
.
exists
(
'outputs'
):
os
.
makedirs
(
'outputs'
)
from
Superchic_i.SuperChicUtils
import
*
#class with the superchic initialization parameters. Please see SuperChicUtils for a complete list of tunable parameters.
Init
=
SuperChicConfig
()
hasECM
=
hasattr
(
runArgs
,
"ecmEnergy"
)
if
hasECM
:
ecm
=
int
(
runArgs
.
ecmEnergy
)
Init
.
rts
=
str
(
ecm
)
+
"d0"
# set the COM collision energy (in fortran syntax)
Init
.
isurv
=
"4"
# Model of soft survival (from 1 -> 4, corresponding to arXiv:1306.2149)
Init
.
intag
=
"'in5'"
# for input files
Init
.
PDFname
=
"'MMHT2014lo68cl'"
# PDF set name
Init
.
PDFmember
=
"0"
# PDF member
Init
.
proc
=
"57"
# Process number (59 = gg->gg, 56 = gg->ee, 68 = gg->a->gg ); Please consult Superchic Manual https://superchic.hepforge.org/
Init
.
beam
=
"'prot'"
# Beam type ('prot', 'ion')
Init
.
outtg
=
"'out'"
# for output file name
Init
.
sfaci
=
".true."
# Include soft survival effects
Init
.
diff
=
"'sdb'"
# interaction: elastic ('el'), single ('sd','sda','sdb') and double ('dd') dissociation.
hasSeed
=
hasattr
(
runArgs
,
"randomSeed"
)
if
hasSeed
:
Init
.
iseed
=
str
(
int
(
runArgs
.
randomSeed
))
Init
.
genunw
=
".true."
hasNev
=
hasattr
(
runArgs
,
"maxEvents"
)
if
hasNev
:
Init
.
nev
=
str
(
runArgs
.
maxEvents
)
Init
.
ymin
=
"-5.0d0"
# Minimum object rapidity Y_X
Init
.
ymax
=
"5.0d0"
# Maximum object rapidity Y_X
Init
.
mmin
=
"20d0"
# Minimum object mass M_X
Init
.
mmax
=
"2000d0"
# Maximum object mass M_X
Init
.
gencuts
=
".true."
# Generate cuts below
Init
.
ptxmax
=
"100d0"
#cut on proton pt
Init
.
ptamin
=
"10.0d0"
# Minimum pT of outgoing object a
Init
.
ptbmin
=
"10.0d0"
# Minimum pT of outgoing object b
Init
.
etaamin
=
"-2.5d0"
# Minimum eta of outgoing object a
Init
.
etaamax
=
"2.5d0"
# Maximum eta of outgoing object a
Init
.
etabmin
=
"-2.5d0"
# Minimum eta of outgoing object b
Init
.
etabmax
=
"2.5d0"
# Maximum eta of outgoing object b
Init
.
acoabmax
=
"100d0"
SuperChicRun
(
Init
)
## Base config for Pythia8
from
Pythia8_i.Pythia8_iConf
import
Pythia8_i
genSeq
+=
Pythia8_i
(
"Pythia8"
)
evgenConfig
.
generators
+=
[
"Pythia8"
]
## Control storing LHE in the HepMC record
if
"StoreLHE"
in
genSeq
.
Pythia8
.
__slots__
.
keys
():
print
"Pythia8_Base_Fragment.py: DISABLING storage of LHE record in HepMC by default. Please re-enable storage if desired"
genSeq
.
Pythia8
.
StoreLHE
=
False
genSeq
.
Pythia8
.
Commands
+=
[
"PartonLevel:MPI = off"
,
"SpaceShower:dipoleRecoil = on"
,
"SpaceShower:pTmaxMatch = 2"
,
"BeamRemnants:primordialKT = off"
,
"SpaceShower:QEDshowerByQ = off"
,
"BeamRemnants:unresolvedHadron = 1"
,
"SpaceShower:pTdampMatch=1"
]
assert
hasattr
(
genSeq
,
"Pythia8"
)
fileName
=
"evrecs/evrec"
+
Init
.
outtg
[
1
:
-
1
]
+
".dat"
genSeq
.
Pythia8
.
LHEFile
=
fileName
genSeq
.
Pythia8
.
CollisionEnergy
=
int
(
runArgs
.
ecmEnergy
)
testSeq
.
TestHepMC
.
MaxTransVtxDisp
=
1000000
testSeq
.
TestHepMC
.
MaxVtxDisp
=
1000000000
Generators/Superchic_i/share/jobOptions.Super
c
hic_ALP2.py
→
Generators/Superchic_i/share/jobOptions.Super
C
hic_ALP2.py
View file @
01346776
File moved
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment