/[PAMELA software]/calo/ground/LEVEL2/src/noint.for
ViewVC logotype

Annotation of /calo/ground/LEVEL2/src/noint.for

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Mon Dec 5 16:13:54 2005 UTC (19 years ago) by mocchiut
Branch point for: LEVEL2, MAIN
Initial revision

1 mocchiut 1.1 C$ SUBROUTINE NOINT(INDEX)
2     SUBROUTINE NOINT(IGOOD)
3     C----------------------------------------------------------------------
4     C-
5     C- Purpose and Methods :
6     C-
7     C- Inputs :
8     C- Outputs :
9     C- Controls:
10     C-
11     C- Created 20-OCT-1994 MIRKO BOEZIO
12     C-
13     C----------------------------------------------------------------------
14     INCLUDE 'INTEST.TXT'
15    
16     REAL BAR(2,NPLA)
17     REAL RIL(NCHA/2)
18     INTEGER IBAR(2,NPLA)
19     INTEGER NPIANI
20     COMMON/ANGOLO/BAR,IBAR
21     SAVE /ANGOLO/
22     COMMON/GENERAL/RIG,RMASS
23     SAVE /GENERAL/
24    
25     INDEX = 0
26     C
27     NPIANI = 0
28     C
29     EMAX = 2. * (RIG * RIG + RMASS * RMASS) / (RIG * RIG)
30     C
31     c print *,'1npiani ',npiani,' rig ',rig
32     C$ IF (RIG.NE.0) NPIANI = INT( ANINT( 14. + 1.2 * LOG(ABS(RIG)) ) )
33     IF (RIG.NE.0) NPIANI = INT( ANINT( 9. + LOG(ABS(RIG)) ) )
34     c
35     IF ( NPIANI.gt.22 ) NPIANI = 22
36     IF ( NPIANI.lt.1 ) NPIANI = 1
37     c print *,'2npiani ',npiani
38     C
39     DO K = 1,NCHA/2
40     RIL(K) = 1000.
41     ENDDO
42     C
43     NGIR = 0
44     IBAD = 0
45     IGOOD = 0
46     DO M = 1,2
47     C
48     DO J = 1,NPIANI
49     C
50     DO K = 1,NGIR
51     RIL(K) = 1000.
52     ENDDO
53     C
54     NNN = 0
55     C
56     c print *,'m j ',m,j
57     BB = BAR(M,J)
58     C
59     NGIR = NCL(M,J)
60     IF (NGIR.EQ.0) GO TO 5
61     IF (NGIR.GT.1) IBAD = IBAD + 1
62     C$ IF (IBAD.GT.1) GO TO 999
63     C$ IF (IBAD.GT.2) GO TO 999
64     IF (NGIR.GT.1) GO TO 5
65     DO L = 1,NGIR
66     RIL(L) = ABS(CLUS(M,J,L) - BB)
67     ENDDO
68     MM = NCHA/2
69     LK = LVMIN(RIL,MM)
70     C
71     C$ IF (RIL(LK).LE.4) IGOOD = IGOOD + 1
72     IF (RIL(LK).LE.4.AND.CLUS(M,J,LK+NCHA/2).LT.EMAX) IGOOD =
73     & IGOOD + J
74     C$ IF (RIL(LK).LE.8.AND.CLUS(M,J,LK+NCHA/2).LT.EMAX) IGOOD =
75     C$ & IGOOD + 1
76     C
77     5 CONTINUE
78     C
79     ENDDO
80     ENDDO
81     C
82     IF (IGOOD.GE.5) INDEX = 1
83     C
84    
85     999 RETURN
86     END

  ViewVC Help
Powered by ViewVC 1.1.23