ATLAS Offline Software
Loading...
Searching...
No Matches
SuperChicControl.py
Go to the documentation of this file.
1# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
3
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
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()
void print(char *figname, TCanvas *c1)
__init__(self, Config={}, gridpack="auto", makeGridpack=False, strictGridpack=True)
void initialize()