@author: Claus Kleinwort (DESY), Tadeas Bilka
def alignment.constraints.generate_constraints |
( |
|
constraint_sets, |
|
|
|
timedep, |
|
|
|
global_tags, |
|
|
|
init_event |
|
) |
| |
Run the constraints generation and return file names
Parameters
----------
constraint_sets : list (alignment.Constraints)
List of sets of constraints
timedep_config : list(tuple(list(int), list(tuple(int, int, int))))
Time-depence configuration.
Each list item is 2-tuple with list of parameter numbers (use alignment.parameters to get them) and
the (event, run, exp) numbers at which values of these parameters can change.
global_tags : list (str)
List of global tag names and/or (absolute) file paths to local databases
init_event : tuple( int, int, int)
Event (event, run, exp) at which to initialize time-INdependent constraints
Definition at line 85 of file constraints.py.
85 def generate_constraints(constraint_sets, timedep, global_tags, init_event):
87 Run the constraints generation and return file names
91 constraint_sets : list (alignment.Constraints)
92 List of sets of constraints
93 timedep_config : list(tuple(list(int), list(tuple(int, int, int))))
94 Time-depence configuration.
95 Each list item is 2-tuple with list of parameter numbers (use alignment.parameters to get them) and
96 the (event, run, exp) numbers at which values of these parameters can change.
97 global_tags : list (str)
98 List of global tag names and/or (absolute) file paths to local databases
99 init_event : tuple( int, int, int)
100 Event (event, run, exp) at which to initialize time-INdependent constraints
103 for filename
in [consts.filename
for consts
in constraint_sets]:
104 files.append(os.path.abspath(filename))
107 ccfn = save_config(constraint_sets, timedep, global_tags, init_event)
108 os.system(
'basf2 {} {}'.format(b2.find_file(
'alignment/scripts/alignment/constraints_generator.py'), ccfn))