| 1 | 
************************************************************************* | 
| 2 | 
*      | 
| 3 | 
*     Common level1.f | 
| 4 | 
*      | 
| 5 | 
*     contains LEVEL1 ntuple variables definitions | 
| 6 | 
*      | 
| 7 | 
************************************************************************* | 
| 8 | 
 | 
| 9 | 
      parameter (nclstrmax_view = 200) ! maximum number of clusters per view | 
| 10 | 
      parameter (nclstrmax      = nclstrmax_view * nviews) | 
| 11 | 
      parameter (nclstrp        = 20) ! maximum number of stored strips per cluster | 
| 12 | 
      parameter (maxlength      = nclstrmax * nclstrp)  | 
| 13 | 
 | 
| 14 | 
      integer good1(nviews) | 
| 15 | 
 | 
| 16 | 
c     CLUSTER block: | 
| 17 | 
      integer nclstr1           !cluster number | 
| 18 | 
      integer view(nclstrmax)   !view the cluster belongs to      | 
| 19 | 
      integer ladder(nclstrmax) !ladder the strip carrying the largest signal  | 
| 20 | 
                                ! value belongs to | 
| 21 | 
      integer maxs(nclstrmax)   !cluster strip carrying the largest signal value | 
| 22 | 
      integer mult(nclstrmax)   !cluster multiplicity | 
| 23 | 
      real    sgnl(nclstrmax)   !cluster multiplicity | 
| 24 | 
      integer indstart(nclstrmax) !cluster starting point index in clsignal array | 
| 25 | 
      integer indmax(nclstrmax) !cluster maximum point index in clsignal array | 
| 26 | 
      integer totCLlength       !sum of all clusters length (to assign | 
| 27 | 
                                ! dimension to clsignal array) | 
| 28 | 
      real clsignal(maxlength)  !sgnal values of all strips belonging to clusters | 
| 29 | 
      real clsigma(maxlength) | 
| 30 | 
      integer cladc(maxlength) | 
| 31 | 
      integer clbad(maxlength) | 
| 32 | 
 | 
| 33 | 
      real    cnev(nviews,nva1_view)     !CN of the event for a certain view and VA1 | 
| 34 | 
      real    cnrmsev(nviews,nva1_view) !RMS of CN | 
| 35 | 
      integer cnnev(nviews,nva1_view)    !n.strips used for CN computation  | 
| 36 | 
      integer fshower(nviews)            !flag to tag views with too many clusters | 
| 37 | 
c                                        !(in this case clusters are not saved) | 
| 38 | 
      integer whichtrack(nclstrmax)      !flag to tag clusters associated to a track | 
| 39 | 
      common/level1event/good1,nclstr1,view,ladder,maxs | 
| 40 | 
     $     ,mult,sgnl,indstart | 
| 41 | 
     $     ,indmax,totCLlength,clsignal,clsigma,cladc,clbad | 
| 42 | 
     $     ,cnev,cnnev,cnrmsev,fshower,whichtrack | 
| 43 | 
       | 
| 44 | 
      SAVE/level1event/ |