/[PAMELA software]/calo/unpacking/calpulse.for
ViewVC logotype

Diff of /calo/unpacking/calpulse.for

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by mocchiut, Mon Dec 5 16:23:20 2005 UTC revision 1.3 by mocchiut, Thu Jun 29 12:50:43 2006 UTC
# Line 1  Line 1 
1  C  C
2  C  Written by Mirko Boezio and Emiliano Mocchiutti  C  Written by Mirko Boezio and Emiliano Mocchiutti
3  C  C
4  C     * Version: 3.1.4 *  C     * Version: 3.1.6 *
5    C
6    C     3.1.5 - 3.1.6: (2006-06-29) XO is rotated, not XE!! fixed.
7    C
8    C     3.1.4 - 3.1.5: (2006-06-29) save in calpuls(section,1,1) and calpuls(section,1,2) the CRC values (transmitted and calculated) in case of CRC errors
9  C  C
10  C     3.1.3 - 3.1.4: (2005-05-26) the decoding is wrong!!! we are reading all strip in one plane per time and not one strip over all planes per time!!!!  C     3.1.3 - 3.1.4: (2005-05-26) the decoding is wrong!!! we are reading all strip in one plane per time and not one strip over all planes per time!!!!
11  C  C
# Line 212  c     if we run out of vector give an er Line 216  c     if we run out of vector give an er
216  c      c    
217           if (ic.gt.(lung-1)) then           if (ic.gt.(lung-1)) then
218              me = 1              me = 1
219              print *,'1 me = 1'  c            print *,'1 me = 1'
220              call clearall              call clearall
221              do i = 1, 4              do i = 1, 4
222                 error(i) = 129                             error(i) = 129            
# Line 248  C Line 252  C
252           enddo           enddo
253           if (check.ne.vect(length)) then           if (check.ne.vect(length)) then
254              ERROR(contr) = 132              ERROR(contr) = 132
255              print *,'2 me = 1'  c            print *,'2 me = 1'
256                calpuls(k,1,1) = check
257                calpuls(k,1,2) = vect(length)            
258              me = 1              me = 1
259              goto 200              goto 200
260           endif                   endif        
# Line 278  c Line 284  c
284           do i = 1,11           do i = 1,11
285              do j = 1,96              do j = 1,96
286                 icb = icb + 1                 icb = icb + 1
287                 if (k.eq.1) then                 if (k.eq.2) then
288                    calpuls(k,i,97-j) = vect(icb)                    calpuls(k,i,97-j) = vect(icb)
289                 else                 else
290                    calpuls(k,i,j) = vect(icb)                    calpuls(k,i,j) = vect(icb)
291                 endif                 endif
292             enddo             enddo
293           enddo           enddo
294           print *,'3 me = 0'  c         print *,'3 me = 0'
295           me = 0           me = 0
296  c  c
297   50      continue   50      continue

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.23