![]() |
ATLAS Offline Software
|
Public Types | |
| typedef HLT::TypeInformation::for_each_type_c< typenameEDMLIST::map, my_functor, my_result<>, my_arg< HLT::TypeInformation::get_cont, CONTAINER > >::type | result |
Public Member Functions | |
| None | __init__ (self) |
| Set[int] | defect_ids (self) |
| Set[str] | defect_names (self) |
| MutableMapping[Union[str, int], Union[str, int]] | defect_id_map (self) |
| Set[int] | virtual_defect_ids (self) |
| Set[str] | virtual_defect_names (self) |
| MutableMapping[Union[str, int], Union[str, int]] | virtual_defect_id_map (self) |
| int | defect_chan_as_id (self, Union[str, int] channel, bool primary_only=False) |
| List[int] | defect_names_as_ids (self, Iterable[Union[str, int]] channels) |
| Tuple[Set[int], Set[str], Mapping[Union[str, int], Union[str, int]]] | get_channels (self) |
| Tuple[Set[int], Set[str], Mapping[Union[str, int], Union[str, int]]] | get_virtual_channels (self) |
| MutableMapping[Union[str, int], str] | get_channel_descriptions (self, Iterable[Union[str, int]] channels) |
| MutableMapping[Union[str, int], str] | get_virtual_channel_descriptions (self, Iterable[Union[str, int]] channels) |
| Mapping[Union[str, int], str] | all_defect_descriptions (self) |
| None | set_channel_description (self, Union[str, int] channel, str description) |
| bool | defect_is_virtual (self, Union[str, int] defect_id) |
| Union[str, List[str]] | normalize_defect_names (self, Union[str, Iterable[str]] defect_id) |
Public Attributes | |
| virtual_defect_ids | |
| defect_names | |
| virtual_defect_names | |
| defect_ids | |
Protected Member Functions | |
| None | _populate_defect_ids (self) |
| None | _populate_virtual_defect_ids (self) |
| None | _new_defect (self, int did, str dname) |
| None | _new_virtual_defect (self, int did, str dname) |
Protected Attributes | |
| bool | _initialized = False |
| bool | _virtual_initialized = False |
| dict | _defect_id_map = {} |
| Set[int] | _defect_ids = set() |
| Set[str] | _defect_names = set() |
| dict | _virtual_defect_id_map = {} |
| Set[int] | _virtual_defect_ids = set() |
| Set[str] | _virtual_defect_names = set() |
| dict | _virtual_defect_map = {} |
| _virtual_defect_logics = None | |
Contains the logic for storing knowledge of which defects exist, and their channel names and IDs
|
inherited |
Definition at line 90 of file EDM_MasterSearch.h.
| None python.ids.DefectsDBIDsNamesMixin.__init__ | ( | self | ) |
Definition at line 78 of file ids.py.
|
protected |
Internal function used to keep defect IDs/names uptodate.
|
protected |
Internal function used to keep defect IDs/names uptodate.
Definition at line 129 of file ids.py.
|
protected |
Called the first time any of defect_{ids,names,id_map,etc} is called,
and populates internal variables to store the channel ids/names for the
life of the DefectsDB instance.
Definition at line 89 of file ids.py.
|
protected |
Called the first time any of virtual_defect_{ids,names,id_map,etc} is called,
and populates internal variables to store the channel ids/names for the
life of the DefectsDB instance.
Definition at line 100 of file ids.py.
| Mapping[Union[str, int], str] python.ids.DefectsDBIDsNamesMixin.all_defect_descriptions | ( | self | ) |
A dictionary of all (virtual and primary) defect descriptions
Definition at line 264 of file ids.py.
| int python.ids.DefectsDBIDsNamesMixin.defect_chan_as_id | ( | self, | |
| Union[str, int] | channel, | ||
| bool | primary_only = False ) |
Returns the defect ID for a virtual defect. Accepts a `channel` as an integer/string and returns it as an integer. Will raise DefectUnknownError if `channel` is an unknown ID or string. This function first checks against non-virtual defects, then virutal defects. Thus virtual-defects are lazily loaded.
Definition at line 202 of file ids.py.
| MutableMapping[Union[str,int], Union[str,int]] python.ids.DefectsDBIDsNamesMixin.defect_id_map | ( | self | ) |
Gives the dictionary relating COOL channel ids to defect names and vice versa, retrieving them from the database if necessary.
Definition at line 162 of file ids.py.
| Set[int] python.ids.DefectsDBIDsNamesMixin.defect_ids | ( | self | ) |
Gives the set of defect IDs that exist in COOL
Definition at line 141 of file ids.py.
| bool python.ids.DefectsDBIDsNamesMixin.defect_is_virtual | ( | self, | |
| Union[str, int] | defect_id ) |
Returns True if the `defect_id` represents a virtual defect, False if it
is not and raises if it doesn't exist
Parameters:
`defect_id` : defect channel id or name
Definition at line 284 of file ids.py.
| Set[str] python.ids.DefectsDBIDsNamesMixin.defect_names | ( | self | ) |
Gives the set of defect names that exist in COOL
Definition at line 151 of file ids.py.
| List[int] python.ids.DefectsDBIDsNamesMixin.defect_names_as_ids | ( | self, | |
| Iterable[Union[str, int]] | channels ) |
| MutableMapping[Union[str, int], str] python.ids.DefectsDBIDsNamesMixin.get_channel_descriptions | ( | self, | |
| Iterable[Union[str, int]] | channels ) |
For the list of channel IDs "channels", return dict mapping ID to description
Definition at line 245 of file ids.py.
| Tuple[Set[int], Set[str], Mapping[Union[str, int], Union[str, int]]] python.ids.DefectsDBIDsNamesMixin.get_channels | ( | self | ) |
Return channel IDs, names, and dict relating the two
Definition at line 233 of file ids.py.
| MutableMapping[Union[str, int], str] python.ids.DefectsDBIDsNamesMixin.get_virtual_channel_descriptions | ( | self, | |
| Iterable[Union[str, int]] | channels ) |
For the list of channel IDs "channels", return dict mapping ID to descriptiondefect_id
Definition at line 254 of file ids.py.
| Tuple[Set[int], Set[str], Mapping[Union[str, int], Union[str, int]]] python.ids.DefectsDBIDsNamesMixin.get_virtual_channels | ( | self | ) |
Return channel IDs, names, and dict relating the two
Definition at line 239 of file ids.py.
| Union[str, List[str]] python.ids.DefectsDBIDsNamesMixin.normalize_defect_names | ( | self, | |
| Union[str, Iterable[str]] | defect_id ) |
Returns correct name(s) of defects, given name(s) that possibly differ from the correct ones by case. Raises if an input name doesn't map to any existing defect. You can pass either a string or an iterable object as `defect_id`.
Definition at line 307 of file ids.py.
| None python.ids.DefectsDBIDsNamesMixin.set_channel_description | ( | self, | |
| Union[str, int] | channel, | ||
| str | description ) |
Set a defect description
Definition at line 273 of file ids.py.
| MutableMapping[Union[str,int], Union[str,int]] python.ids.DefectsDBIDsNamesMixin.virtual_defect_id_map | ( | self | ) |
Returns a dict() mapping virtual defect names to IDs and vice-versa.
Definition at line 193 of file ids.py.
| Set[int] python.ids.DefectsDBIDsNamesMixin.virtual_defect_ids | ( | self | ) |
Returns the set of existing virtual defect IDs
Definition at line 173 of file ids.py.
| Set[str] python.ids.DefectsDBIDsNamesMixin.virtual_defect_names | ( | self | ) |
Returns the set of existing virtual defect names
Definition at line 183 of file ids.py.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |