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

Contents of /calo/unpacking/calib.for

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Mon Dec 5 16:23:20 2005 UTC (19 years ago) by mocchiut
Branch: MAIN, unpacking
CVS Tags: start, v1r00, HEAD
Changes since 1.1: +0 -0 lines
Error occurred while calculating annotation data.
Imported sources

1 REAL FUNCTION calib()
2 *********************************************************
3 * *
4 * This file was generated by HUWFUN. *
5 * *
6 *********************************************************
7 *
8 * Ntuple Id: 2
9 * Ntuple Title: Pamela data
10 * Creation: 13/07/2004 11.39.53
11 *
12 *********************************************************
13 *
14 INCLUDE 'comcheck.txt'
15 *
16 vector pede(2,22,96)
17 vector matmip(2,22,96)
18 real bas, valore
19 integer m, inf, sup
20 *
21 *-- Enter user code here
22 *
23 do i=1,2
24 do j=1,22
25 c
26 c commenta questo per la mip totale globale
27 c
28 c if (i.eq.2.and.j.eq.1) then
29 pre = 0
30 do k=1,96
31 if (mod(k+15,16).eq.0) pre = pre + 1
32 c print *,k, pre
33 if (dexyc(i,j,k).gt.0) then
34 calbase = 0.
35
36 if (base(i,j,pre).eq.0.) then
37 inf = (pre - 1) * 16 + 1
38 sup = pre * 16
39 C print *,'i s ',inf,sup,pre
40 do m = inf, sup
41 valore = valore + dexyc(i,j,m)
42 enddo
43 c bas = valore / 16.
44 bas = base(i,j,pre)
45 else
46 bas = base(i,j,pre)
47 endif
48
49 calbase=(dexyc(i,j,k)-bas-pede(i,j,k))/matmip(i,j,k)
50 call hf1(600,calbase,1.)
51 call hf1(700,dexyc(i,j,k),1.)
52 endif
53 call hf1(800,dexy(i,j,k),1.)
54 call hf1(900,base(i,j,pre),1.)
55 c if (cal_rms(i,j,k).ne.0.)
56 c & print *,'rms ',cal_rms(i,j,k),' i=',i,' j=',j,' k=',k
57 enddo
58 c
59 c e commenta anche qua ovviamente!
60 c
61 c endif
62 enddo
63 enddo
64 c
65 calib = 1.
66 *
67 END

  ViewVC Help
Powered by ViewVC 1.1.23