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: 2.17 * |
C * Version: 2.18.1 * |
5 |
C |
C |
6 |
|
C (see calunpack for changelog) |
7 |
C------------------------------------------------ |
C------------------------------------------------ |
8 |
SUBROUTINE CALPULSE(vecta,lung,me) |
SUBROUTINE CALPULSE(vecta,lung,me) |
9 |
C------------------------------------------------ |
C------------------------------------------------ |
18 |
INTEGER NPLA, NCHA, LENSEV |
INTEGER NPLA, NCHA, LENSEV |
19 |
PARAMETER (NPLA=22,NCHA=96,LENSEV=NPLA*NCHA) |
PARAMETER (NPLA=22,NCHA=96,LENSEV=NPLA*NCHA) |
20 |
C |
C |
21 |
INTEGER*2 VECT(30000) |
INTEGER*2 VECT(60000) |
22 |
INTEGER*1 VECTA(lung) |
INTEGER*1 VECTA(lung) |
23 |
C |
C |
24 |
integer*2 check, crc,e2(4) |
integer*2 check, crc,e2(4) |
47 |
real calDSPtaberr(4), calevnum(4) |
real calDSPtaberr(4), calevnum(4) |
48 |
REAL DEXY(2,NPLA,NCHA), dexyc(2,npla,ncha), base(2,npla,6) |
REAL DEXY(2,NPLA,NCHA), dexyc(2,npla,ncha), base(2,npla,6) |
49 |
real perror(4) |
real perror(4) |
50 |
integer stwerr(4) |
integer stwerr(4), dump |
51 |
|
|
52 |
COMMON / evento / IEV, stwerr,perror, |
COMMON / evento / IEV, stwerr,perror, |
53 |
& dexy,dexyc,base, |
& dexy,dexyc,base, |
63 |
|
|
64 |
save / calib / |
save / calib / |
65 |
|
|
66 |
COMMON /VARIE/ error, CONTR, e2 |
COMMON /VARIE/ error, CONTR, e2, dump |
67 |
SAVE /VARIE/ |
SAVE /VARIE/ |
68 |
|
|
69 |
|
|
70 |
C |
C |
71 |
C Begin ! |
C Begin ! |
72 |
C |
C |
73 |
|
if (dump.eq.0) dump = -1 |
74 |
if (iev2.lt.0.or.iev2.gt.9000000) iev2 = 0 |
if (iev2.lt.0.or.iev2.gt.9000000) iev2 = 0 |
75 |
me = 0 |
me = 0 |
76 |
lleng = 0 |
lleng = 0 |
84 |
lunga = int(lung/2) + 1 |
lunga = int(lung/2) + 1 |
85 |
endif |
endif |
86 |
c |
c |
87 |
if (lunga.gt.30000) then |
if (lunga.gt.60000.and.dump.gt.0) then |
88 |
c print *,'Calorimeter WARNING: more than 30000 words!' |
print *,'Calorimeter WARNING: more than 30000 words!' |
89 |
lunga = 30000 |
lunga = 60000 |
90 |
endif |
endif |
91 |
c |
c |
92 |
length = ic |
length = ic |
303 |
me = 1 |
me = 1 |
304 |
goto 200 |
goto 200 |
305 |
endif |
endif |
306 |
|
|
307 |
|
c if (iev2.eq.dump) write(*,21)vect(length) |
308 |
|
c if (iev2.eq.dump) write(*,21)check |
309 |
|
c |
310 |
C |
C |
311 |
C Process data. |
C Process data. |
312 |
C |
C |
369 |
RETURN |
RETURN |
370 |
END |
END |
371 |
|
|
|
|
|