(file) Return to s_one_ev_track.f CVS log (file) (dir) Up to [HallC] / Analyzer / ONEEV

File: [HallC] / Analyzer / ONEEV / s_one_ev_track.f (download)
Revision: 1.1, Wed Jan 17 16:38:09 1996 UTC (28 years, 8 months ago) by cdaq
Branch: MAIN
CVS Tags: spring03, sep0596, sep-26-2002, sep-25-2002, sep-24-2002, sep-09-2002, sane, pionct, online07, online04, online03, oct1199, nov2696, mduality, mar-24-2003, jan2496, jan1896, jan1796, gep_online, gep3, fpi2, emc, e01004, dec0198, bigcal, baryon, aug-12-2003, apr3096, apr-02-2003, Initial-CVS-Release, HEAD, Extra_Shower_Tubes_on_HMS_not_SOS
Initial revision

      subroutine s_one_ev_track
*
* $Log: s_one_ev_track.f,v $
* Revision 1.1  1996/01/17 16:38:09  cdaq
* Initial revision
*

      implicit none

      include 'sos_data_structures.cmn'
      include 'sos_tracking.cmn'
      include 'sos_geometry.cmn'
      include 'sos_calorimeter.cmn'
      include 'gen_event_info.cmn'
      include 'sos_one_ev.par'
      include 'gen_one_ev_gctrak.cmn'
      include 'gen_one_ev_gckine.cmn'
      include 'gen_one_ev_gcvolu.cmn'

      real track_x, track_y, track_z    ! a point on the track
      real track_x_slope, track_y_slope ! slope of the track
      real x, y, z                      ! coordinates
      real z_distance                   ! z distance to end of hut
      integer track                     ! index variables

*
* Take care of creating the reconstructed tracks
*
      vect(4) =  0.0
      vect(5) =  0.0
      vect(6) =  1.
      vect(7) =  1.
*      ipart = 3            !electron to make track red
*      ipart = 13          !neutron to make track black
*      ipart = 5            !muon to make track green
      ipart = 1                         !photon to make track blue
      tofg  = 1e-5
      itra  = 1
*      amass = 0.511e-3
*      amass = 0.93957
      sleng = 200.
      step  = 200.

      do track = 1, SNTRACKS_FP
        ipart = 1                       !photon to make track blue
        if (track.eq.SSNUM_FPTRACK) then
          ipart = 3                     !electron to make track red
        endif
        track_x       = -sx_fp(track)   ! x position on track
        track_y       = sy_fp(track)    ! y position on track
        track_z       = 0               ! z position on track
        track_x_slope = -sxp_fp(track)  ! track slope in x
        track_y_slope = syp_fp(track)   ! track slope in y
        
        z		= -SHUT_HEIGHT / 2. ! bottom of hut
        z_distance	= track_z - z   ! distance from point to floor
        x		= track_x - z_distance * sin(track_x_slope) ! x loci
        y		= track_y - z_distance * sin(track_y_slope) ! y loci
        vect(1) = x
        vect(2) = y
        vect(3) = z
        call gsxyz
        z		= SHUT_HEIGHT / 2. ! bottom of hut
        z_distance	= z - track_z   ! distance from point to roof
        x		= track_x + z_distance * sin(track_x_slope) ! x loci
        y		= track_y + z_distance * sin(track_y_slope) ! y loci
        vect(1) = x
        vect(2) = y
        vect(3) = z
        call gsxyz
        call gdxyz (track)
*     call gdpart (itra,01,0.5)  !this will number the tracks
        itra = itra+1
*     ipart = ipart+1   !this changes the color for each track
      enddo
*
      end

Analyzer/Replay: Mark Jones, Documents: Stephen Wood
Powered by
ViewCVS 0.9.2-cvsgraph-1.4.0