IXTgroups

From LIBISIS
Jump to navigation Jump to search

The IXMgroups module and IXTgroups type are used for storing information about logical groupsing of detectors.

Structure

The elements of the object are as follows:

Field Type Description
base IXTbase interal use
list(100) IXTgroup array of IXTgroup objects
n int size of group list

IXFname_groups Retun the name of group given its ID

IXFid_groups Return ID of group given its name

IXFparent_groups Return parent name of group given either its name or id

IXFparent_id_groups Return parent ID of group given either its name or id

IXFadd_groups Add a new group, specifying its name and parent

IXFremove_groups Remove a group, specifying either its name or id

IXFis_member_groups Test for group membership given either names or ids

IXFparent_list_groups Return all parent groups IDs for a given group i.e. all other groups that we also belong to IXFmember_list_groups Return all children groups for a given group i.e. all groups that are members of us IXFprint_groups Print out a group ID list returned from IXFparent_list_groups or IXFmember_list_groups

example: type(ITXgroups) :: groups call IXFadd_groups(groups, 'tube1', 'bank1', status) call IXFis_member_groups(groups, 'tube1', 'bank1', status) call IXFremove_groups(groups, 'bank1')