![]() |
ATLAS Offline Software
|
Public Member Functions | |
def | __init__ (self, keep_dcsofl=False) |
def | run (self, lbtime, run_iovs=None) |
def | __repr__ (self) |
def | get_variable (self, name) |
def | set_input_mapping (self, what, mapping) |
def | evaluate_inputs (self, lbtime) |
def | merge_variable_states (self, states) |
def | merge_inputs (self, channel, *inputs) |
def | merge_input_information (self, channel, *inputs) |
def | merge_input_variables (self, inputs) |
def | map_inputs_to_outputs (self, inputs) |
def | input_channel_set (self) |
def | get_name_for_input_channel (self, input_channel) |
def | get_ids_which_are (self, output_channel, states, what) |
def | calculate_dead_fraction (self, since, until, output_channel, states, state_iovs) |
def | debug_what_changed (self, runlb, prev_states, states) |
def | calculate_dead_fraction_all (self, output_channel, local_variables) |
def | dq_worst (self, states) |
def | merge_globals (self, output_channel, dead_frac_iovs, global_variables) |
def | calculate_result_for_output (self, output_channel, local_variables, global_variables) |
def | select_globals (self, output_channel, input_globals) |
def | calculate_result (self, inputs_by_output, global_variables) |
def | start (self) |
def | done (self) |
Static Public Member Functions | |
def | color_to_defect_translator (inflag, outdefect, badcolors=[RED]) |
Public Attributes | |
translators | |
keep_dcsofl | |
input_to_output_map | |
channel_indices | |
run_iovs | |
A defect calculator for one subsystem that still works in terms of color flags. The colors need to be translated into defects by building translators with the color_to_defect_translator static method.
Definition at line 532 of file subdetector.py.
def python.subdetector.DCSC_DefectTranslate_Subdetector.__init__ | ( | self, | |
keep_dcsofl = False |
|||
) |
A defect calculator for one subsystem that still works in terms of color flags. The colors need to be translated into defects by building translators with the color_to_defect_translator static method.
Definition at line 539 of file subdetector.py.
|
inherited |
Definition at line 39 of file subdetector.py.
|
inherited |
Calculate the dead fraction and the resulting traffic light code.
Reimplemented in python.subdetectors.tile.Tile.
Definition at line 264 of file subdetector.py.
|
inherited |
Definition at line 336 of file subdetector.py.
|
inherited |
Terrible name for a method. Calculate the iov extents and dead fractions for all output channels. In other words, the IoVs to be written to DCSOFL for this subdetector.
Definition at line 464 of file subdetector.py.
|
inherited |
Calculate the iov extents and dead fractions for one output channel * If there are 'non-global' variables, evaluate the dead fraction, which effectively becomes a new global variable. * If there are no global variables, return the above as a result * If there are global variables, merge them together.
Definition at line 426 of file subdetector.py.
|
static |
Definition at line 559 of file subdetector.py.
|
inherited |
|
inherited |
An empty function which can be overloaded to do any needed post-processing
Definition at line 526 of file subdetector.py.
|
inherited |
|
inherited |
Read the cool database and determine the state of the input channels by luminosity block
Definition at line 64 of file subdetector.py.
|
inherited |
Definition at line 258 of file subdetector.py.
|
inherited |
If it is possible to give a logical name for an input channel, return it here. These numbers are used for debugging purposes. By default, do nothing. Over-ridden by subdetectors
Definition at line 249 of file subdetector.py.
|
inherited |
Get a DCS_Variable by name.
Definition at line 42 of file subdetector.py.
|
inherited |
Return a set containing the all input channel IDs for this subdetector
Definition at line 243 of file subdetector.py.
|
inherited |
Determine which input channels belong to which output channels. inputs is a list of IOVSets, exactly one per channel.
Definition at line 200 of file subdetector.py.
|
inherited |
Merge together global states to decide a final code If the dead fraction is unavailable, writes -1.
Definition at line 382 of file subdetector.py.
|
inherited |
Join up the information which was used to make a decision across multiple variables.
Definition at line 137 of file subdetector.py.
|
inherited |
Merge multiple variables together for many channels. Takes a list of IOVSets, one for each DCSC_Variable.
Definition at line 150 of file subdetector.py.
|
inherited |
Merge multiple variables together for one input channel. Each 'inputs' arg is an IOVSet that corresponds to this input channel.
Definition at line 121 of file subdetector.py.
|
inherited |
Merge input channel states across variables, taking the worst. For detector configuration variables, it is assumed that if no IoV exists for that channel in this variable, then it is in a good state.
Definition at line 83 of file subdetector.py.
def python.subdetector.DCSC_DefectTranslate_Subdetector.run | ( | self, | |
lbtime, | |||
run_iovs = None |
|||
) |
Run the DCSC for this subdetector. * Evaluate inputs * Merge input variables together * Calculate resulting IoVs to be written
Reimplemented from python.subdetector.DCSC_Subdetector.
Definition at line 544 of file subdetector.py.
|
inherited |
Returns a list where each element is a list of (single channel) iovs. The `input_globals` may contain a list of iovs which has multiple channels. This function may be over-ridden by inheriting classes to select channels for this output channel.
Reimplemented in python.subdetectors.lar.LAr.
Definition at line 449 of file subdetector.py.
|
inherited |
Set mapping of input channels for a DCSC_Variable_With_Mapping. Some input folders have different channel numbering conventions.
Definition at line 52 of file subdetector.py.
|
inherited |
Definition at line 523 of file subdetector.py.
|
inherited |
Determine which input channels belong to which output channels. inputs is a list of IOVSets, exactly one per channel.
Definition at line 211 of file subdetector.py.
|
inherited |
Definition at line 37 of file subdetector.py.
python.subdetector.DCSC_DefectTranslate_Subdetector.keep_dcsofl |
Definition at line 542 of file subdetector.py.
|
inherited |
Run the DCSC for this subdetector. * Evaluate inputs * Merge input variables together * Calculate resulting IoVs to be written
Definition at line 489 of file subdetector.py.
python.subdetector.DCSC_DefectTranslate_Subdetector.translators |
Definition at line 541 of file subdetector.py.