/[PAMELA software]/DarthVader/CalorimeterLevel2/src/baric.for
ViewVC logotype

Contents of /DarthVader/CalorimeterLevel2/src/baric.for

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri May 19 13:15:50 2006 UTC (18 years, 6 months ago) by mocchiut
Branch: MAIN
Branch point for: DarthVader
Initial revision

1 C
2 C------------------------------------------------------
3 SUBROUTINE BARIC(Q,INF,ISUP,BAR,EPLA4,INDEX)
4 C------------------------------------------------------
5 INCLUDE 'INTEST.TXT'
6 REAL Q(NCHA)
7 REAL BAR
8
9 COMMON / SHIFT / SHIFT
10 SAVE / SHIFT /
11
12 CM = 0.
13 EPLA4 = 0.
14 DO LL = INF,ISUP
15 ENN = Q(LL)
16 IF (ENN.GT.EMIN) THEN
17 C
18 CALL MILLIM(LL,RMM)
19 CM = CM + RMM * ENN
20 EPLA4 = EPLA4 + ENN
21 ENDIF
22 ENDDO
23 IF (EPLA4.EQ.0) GO TO 300
24 BAR = CM / EPLA4
25 GOTO 400
26 C
27 300 INDEX = 0
28 GOTO 500
29 C
30 400 INDEX = 1
31 C
32 500 CONTINUE
33 RETURN
34 END
35 C

  ViewVC Help
Powered by ViewVC 1.1.23