      INTEGER NPLA, NCHA, LENSEV
      PARAMETER (NPLA=22,NCHA=96,LENSEV=NPLA*NCHA)
      REAL ADIST, AA
      PARAMETER( ADIST=80.5,AA=0.96)
c      REAL PIANO(22)
C      PARAMETER (PIANO=8.59)
      REAL DEXY(2,NPLA,NCHA)
      REAL CLUS(2,NPLA,NCHA)
      INTEGER NCL(2,NPLA)
      REAL CLUS2(2,2,NCHA)
      INTEGER NCL2(2,2)
      INTEGER SELFTRIGGER
C
c      integer obt,pkt_num,pro_num
      real nstrip, qtot, ncore, qcore, impx, impy, tanx, tany
      real noint, trigty
      REAL ncyl, qcyl, qtrack, qmax, nx22, qx22
      real qq(4)
      REAL QTRACKX, QTRACKY, DXTRACK, DYTRACK, QLAST, NLAST, QPRE, NPRE
      REAL QPRESH,NPRESH,QLOW,NLOW,QTR,NTR
      INTEGER CIBAR(2,NPLA)
      INTEGER TIBAR(2,NPLA)
      REAL CBAR(2,NPLA)
      REAL TBAR(2,NPLA)
      REAL PLANETOT, QMEAN
      REAL VARCFIT(2)
      REAL ELEN, SELEN
      INTEGER NPCFIT(2), PLANEMAX(2)
C
C	      logical perr(4), swerr(4), crc(4),good
      integer perr, swerr, crc,good
c
      double precision al_pp(2,5)
      INTEGER good2, trkchi2
      REAL estrip(2,22,96), emin
      real zalig, xalig, yalig
      REAL DX0L
C
      COMMON / clevel1 / al_pp,estrip, good2,
     &     trkchi2, xalig, yalig, zalig, emin
      SAVE / clevel1 /
C
      COMMON / clevel2 / trigty,good,perr(4)
     &     ,swerr(4),crc(4),selftrigger,
     &     nstrip, qtot, ncore, qcore, impx, impy, 
     &     tanx, tany, noint, ncyl, qcyl, qtrack, qmax, nx22, 
     &     qx22, qq, qtrackx, qtracky, dxtrack, dytrack, qlast, nlast,
     &     qpre, npre, qpresh, npresh, qlow, nlow, qtr, ntr,
     &     planetot, qmean, PLANEMAX, DX0L, varcfit, npcfit,
     $     cibar, tibar,
     $     cbar, tbar,
     $     ELEN, SELEN
      SAVE / clevel2 /
C
      COMMON / EVENTI / DEXY
      SAVE / EVENTI /
C
      COMMON / GRUPPO / CLUS, NCL
      SAVE / GRUPPO /
C
      COMMON / GRUPPO2 / CLUS2, NCL2
      SAVE / GRUPPO2 / 
