ATLAS Offline Software
Loading...
Searching...
No Matches
SuperChicControl.SuperChicControl Class Reference
Collaboration diagram for SuperChicControl.SuperChicControl:

Public Member Functions

 __init__ (self, Config={}, gridpack="auto", makeGridpack=False, strictGridpack=True)
 initialize (self)
 generate (self)

Public Attributes

 gridpack = gridpack
 makeGridpack = makeGridpack
 strictGridpack = strictGridpack
 scConfig = SuperChicConfig()

Detailed Description

Definition at line 4 of file SuperChicControl.py.

Constructor & Destructor Documentation

◆ __init__()

SuperChicControl.SuperChicControl.__init__ ( self,
Config = {},
gridpack = "auto",
makeGridpack = False,
strictGridpack = True )
Config          : dictionary of SuperChicConfig parameters
gridpack        : "auto" - use the DSID gridpack mc_<E>TeV.<physics_short>.GRID.tar.gz
                           if found, otherwise run init in this job
                  <path> - use this gridpack
                  False  - ignore gridpacks and run init
makeGridpack    : run init and pack the result into a gridpack
strictGridpack  : treat differences in input.DAT (other than iseed and nev)
                  between the gridpack and this job as errors

Definition at line 6 of file SuperChicControl.py.

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
void print(char *figname, TCanvas *c1)

Member Function Documentation

◆ generate()

SuperChicControl.SuperChicControl.generate ( self)

Definition at line 36 of file SuperChicControl.py.

36 def generate(self):
37 # Run SuperChic internal generation script
38 self.scConfig.superChicExecute()

◆ initialize()

SuperChicControl.SuperChicControl.initialize ( self)

Definition at line 29 of file SuperChicControl.py.

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
void initialize()

Member Data Documentation

◆ gridpack

SuperChicControl.SuperChicControl.gridpack = gridpack

Definition at line 17 of file SuperChicControl.py.

◆ makeGridpack

SuperChicControl.SuperChicControl.makeGridpack = makeGridpack

Definition at line 18 of file SuperChicControl.py.

◆ scConfig

SuperChicControl.SuperChicControl.scConfig = SuperChicConfig()

Definition at line 23 of file SuperChicControl.py.

◆ strictGridpack

SuperChicControl.SuperChicControl.strictGridpack = strictGridpack

Definition at line 19 of file SuperChicControl.py.


The documentation for this class was generated from the following file: