42 integer :: template_num
44 integer,
dimension(MAXLEN) :: mapdrs
60 /4, -2, -2, 1, 1, 1, 1, 4, 4, 4, 1, 1, 4, 1, 4, 1/
66 /4, -2, -2, 1, 1, 1, 1, 4, 4, 4, 1, 1, 4, 1, 4, 1, 1, 1/
78 /4, -2, -2, 1, -4, 2, 2, 2, 4, 1/
84 /4, -2, -2, 1, 1, 1, 1/
96 /4, -2, -2, 1, 1, 1, 1/
124 integer,
intent(in) :: number
130 if (number .eq.
templates(
j)%template_num)
then
159 integer,
intent(in) :: number
160 integer,
intent(out) :: nummap, map(*), iret
161 logical,
intent(out) :: needext
168 if (index .ne. -1)
then
171 map(1 : nummap) =
templates(index)%mapdrs(1 : nummap)
175 print *,
'getdrstemplate: DRS Template ', number, &
204 integer,
intent(in) :: number, list(*)
205 integer,
intent(out) :: nummap, map(*)
206 integer :: index, N, i
209 if (index .eq. -1)
return
212 if (.not.
templates(index)%needext)
return
215 map(1 : nummap) =
templates(index)%mapdrs(1 : nummap)
217 if (number .eq. 1)
then
218 n = list(11) + list(13)
Handles Data Representation Templates used in Section 5.
subroutine getdrstemplate(number, nummap, map, needext, iret)
Return DRS template information for a specified Data Representation Template.
subroutine extdrstemplate(number, list, nummap, map)
Generate the remaining octet map for a given Data Representation Template, if required.
integer, parameter maxtemp
maximum number of entries in the template
integer, parameter maxlen
maximum number of octets in mapdrs
integer function getdrsindex(number)
Return the index of specified Data Representation Template in array templates.
type(drstemplate), dimension(maxtemp) templates
template in type of drstemplate
This type holds information about a DRS template.