ATLAS Offline Software
|
Functions | |
def | convert_channel (name, want_id=True, channel_mapping=channel_mapping) |
def | list_to_channelselection (list_, convert_channel=convert_channel, as_list=False) |
def | make_channelselection (cs, mapping=None) |
def | get_channel_ids_names (folder) |
Variables | |
dictionary | channel_mapping = {} |
list | channel_names = [] |
cm_reversed = dict((value, key) for key, value in six.iteritems(channel_mapping)) | |
def python.channel_mapping.convert_channel | ( | name, | |
want_id = True , |
|||
channel_mapping = channel_mapping |
|||
) |
Given a channel, return a name detector or an integer (depending on want_id)
Definition at line 24 of file channel_mapping.py.
def python.channel_mapping.get_channel_ids_names | ( | folder | ) |
Given a `folder` name, retrieve a list of channel ids, names and return a dictionary which will translate in either direction.
Definition at line 102 of file channel_mapping.py.
def python.channel_mapping.list_to_channelselection | ( | list_, | |
convert_channel = convert_channel , |
|||
as_list = False |
|||
) |
Given a list, return a channelselection. Does the hard work of merging together adjacent channel numbers. Will also convert channel names to numbers (if the folder is using DQ channels, otherwise will give an incorrect result or fail to convert the strings to channelids.)
Definition at line 42 of file channel_mapping.py.
def python.channel_mapping.make_channelselection | ( | cs, | |
mapping = None |
|||
) |
Helper function which can convert a channel id, name, or list of either into a cool.ChannelSelection. Includes protections for invalid channels.
Definition at line 81 of file channel_mapping.py.
python.channel_mapping.channel_mapping = {} |
Definition at line 14 of file channel_mapping.py.
dictionary python.channel_mapping.channel_names = [] |
Definition at line 15 of file channel_mapping.py.
python.channel_mapping.cm_reversed = dict((value, key) for key, value in six.iteritems(channel_mapping)) |
Definition at line 21 of file channel_mapping.py.