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

Contents of /calo/unpacking/matra.for

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Mon Dec 5 16:23:21 2005 UTC (18 years, 11 months ago) by mocchiut
Branch: MAIN, unpacking
CVS Tags: start, v1r00, HEAD
Changes since 1.1: +0 -0 lines
Imported sources

1 REAL FUNCTION matra()
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 'common.txt'
15 *
16 vector pede(2,22,96)
17 vector matmip(2,22,96)
18 *
19 *-- Enter user code here
20 *
21 l = 0
22 sthit = 0.
23 do i=1,2
24 do j=1,22
25 pre = 0
26 do k=1,96
27 if (mod(k+15,16).eq.0) pre = pre + 1
28 if (base(i,j,pre).eq.0.) then
29 inf = (pre - 1) * 16 + 1
30 sup = pre * 16
31 valore = 0.
32 test = 0.
33 do m = inf, sup
34 valore = valore + dexyc(i,j,m)
35 test = test + dexy(i,j,m)
36 enddo
37 c bas = valore / 16.
38 bas = base(i,j,pre)
39 c valore2 = dexyc(i,j,k) - pede(i,j,k)
40 if (test.ne.0.) then
41 valore2 = dexy(i,j,k) - pede(i,j,k)
42 else
43 valore2 = dexyc(i,j,k) - pede(i,j,k)
44 endif
45 IF (i.eq.1.and.pre.eq.6.and.j.eq.17) then
46 call hf1(900+j,float(k),valore2)
47 c print *,'i j k pre, pede',i,j,k,pre, pede(i,j,k)
48 cx print *,'base dexyc',base(i,j,pre), dexyc(i,j,k)
49 endif
50 else
51 bas = base(i,j,pre)
52 IF (i.eq.1.and.pre.eq.6.and.j.eq.17) then
53 c valore2 = dexyc(i,j,k) - pede(i,j,k)
54 valore2 = dexy(i,j,k) - pede(i,j,k)
55 call hf1(900+j,float(k),valore2)
56 call hf1(999,float(k),base(i,j,pre))
57 endif
58 endif
59 if (dexyc(i,j,k).gt.0) then
60 c
61 sthit = sthit + 1.
62 calbase=(dexyc(i,j,k)-bas-pede(i,j,k))/matmip(i,j,k)
63 if (calbase.gt.0.7) then
64 if (i.eq.1) then
65 call hf2(300,float(k),float(j*2),calbase)
66 endif
67 if (i.eq.2) then
68 call hf2(400,float(k),float(j*2),calbase)
69 endif
70 endif
71 endif
72 enddo
73 enddo
74 enddo
75 c
76 call hf1(666,sthit,1.)
77 matra = 1.
78 *
79 END

  ViewVC Help
Powered by ViewVC 1.1.23