ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Generators
Superchic_i
python
SuperChicControl.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
3
4
class
SuperChicControl
:
5
6
def
__init__
(self, Config={}, gridpack="auto", makeGridpack=False, strictGridpack=True):
7
"""
8
Config : dictionary of SuperChicConfig parameters
9
gridpack : "auto" - use the DSID gridpack mc_<E>TeV.<physics_short>.GRID.tar.gz
10
if found, otherwise run init in this job
11
<path> - use this gridpack
12
False - ignore gridpacks and run init
13
makeGridpack : run init and pack the result into a gridpack
14
strictGridpack : treat differences in input.DAT (other than iseed and nev)
15
between the gridpack and this job as errors
16
"""
17
self.
gridpack
= gridpack
18
self.
makeGridpack
= makeGridpack
19
self.
strictGridpack
= strictGridpack
20
21
# Create the `SuperChicConfig` instance used to run SuperChic
22
from
Superchic_i.SuperChicUtils
import
SuperChicConfig
23
self.
scConfig
=
SuperChicConfig
()
24
25
# Parse parameters from `Config` dict to the `SuperChicConfig` instance
26
self.
scConfig
.from_dict(Config)
27
print
(self.
scConfig
.toFortran())
28
29
def
initialize
(self):
30
# Create SuperChic run card
31
self.
scConfig
.writeInputDAT()
32
33
# Run SuperChic internal initialization script
34
self.
scConfig
.prepareGrids(gridpack=self.
gridpack
, makeGridpackFile=self.
makeGridpack
, strict=self.
strictGridpack
)
35
36
def
generate
(self):
37
# Run SuperChic internal generation script
38
self.
scConfig
.superChicExecute()
print
void print(char *figname, TCanvas *c1)
Definition
TRTCalib_StrawStatusPlots.cxx:26
SuperChicControl.SuperChicControl
Definition
SuperChicControl.py:4
SuperChicControl.SuperChicControl.__init__
__init__(self, Config={}, gridpack="auto", makeGridpack=False, strictGridpack=True)
Definition
SuperChicControl.py:6
SuperChicControl.SuperChicControl.strictGridpack
strictGridpack
Definition
SuperChicControl.py:19
SuperChicControl.SuperChicControl.gridpack
gridpack
Definition
SuperChicControl.py:17
SuperChicControl.SuperChicControl.scConfig
scConfig
Definition
SuperChicControl.py:23
SuperChicControl.SuperChicControl.generate
generate(self)
Definition
SuperChicControl.py:36
SuperChicControl.SuperChicControl.makeGridpack
makeGridpack
Definition
SuperChicControl.py:18
SuperChicConfig
Definition
SuperChicConfig.py:1
initialize
void initialize()
Definition
run_EoverP.cxx:894
Generated on
for ATLAS Offline Software by
1.17.0