COSMOS v7.655  COSMOSv7655
(AirShowerMC)
det2Exyz.f
Go to the documentation of this file.
1 ! convert a given (x,y,z) in the detector system into
2 ! E-xyz system.
3 !
4 ! input. latitude, longitude, height(depth) from param.
5 ! (name 'param' is fixed)
6 ! (x,y,z) is from stdin.
7 ! output. (X,Y,Z) in E-xyz on stdout.
8 !
9 
10 #include "BlockData/cblkGene.h"
11  implicit none
12 
13 #include "Zglobalc.h"
14 #include "Ztrack.h"
15 #include "Ztrackp.h"
16 #include "Ztrackv.h"
17 #include "Zobs.h"
18 #include "Zobsp.h"
19 #include "Zobsv.h"
20 
21 
22 
23 
24  type(coord):: a, b, det, detyaxis
25 
26 
27 ! open(10, file="param")
28 
29  call creadparam(6)
30  call cbeginrun
31  det = obssites(noofsites)%pos%xyz
32 
33  call cvecprod(detzaxis, detxaxis, detyaxis)
34 ! write(*,*) ' transformation matrix '
35 ! (x,y,z,1) = (X,Y,Z, 1) * Matrix
36  write(* ,
37  * '("# place: long=",f8.2, " lat=",f7.2, " height=",f10.1)')
38  * longitofsite, latitofsite, obssites(noofsites)%pos%height
39  write(*,'("# E-xyz values are",3G17.9)') det%x, det%y, det%z
40  write(*,'(3g17.9, a)') detxaxis%x, detxaxis%y, detxaxis%z, " 0"
41  write(*,'(3g17.9, a)') detyaxis%x, detyaxis%y, detyaxis%z, " 0"
42  write(*,'(3g17.9, a)') detzaxis%x, detzaxis%y, detzaxis%z, " 0"
43  write(*,'(3g17.9, a)') det%x, det%y, det%z, " 1"
44 
45 ! this is for colum vector
46 ! write(*,'(3g17.9, a)') DetXaxis.x, DetYaxis.x, DetZaxis.x, " 0"
47 ! write(*,'(3g17.9, a)') DetXaxis.y, DetYaxis.y, DetZaxis.y, " 0"
48 ! write(*,'(3g17.9, a)') DetXaxis.z, DetYaxis.z, DetZaxis.z, " 0"
49 ! write(*,'(3g17.9, a)') det.x, det.y, det.z, " 1"
50 
51 
52 ! do while(.true.)
53 ! write(*,*) 'enter x,y,z in det sys'
54 ! read(*,*) a.x, a.y, a.z
55 ! call cdet2xyz(det, a, b)
56 ! write(*,*) ' input=', a.x, a.y, a.z
57 ! write(*,*) ' output=', b.x, b.y, b.z
58 ! enddo
59  end
60  subroutine chooktrace
61  end
62  subroutine chookceren
63  end
64  subroutine chookcerens
65  end
66  subroutine chookcerene
67  end
68  subroutine chookbgrun
69  end
subroutine cvecprod(a, b, c)
Definition: cvecProd.f:4
subroutine chookceren
Definition: det2Exyz.f:63
subroutine creadparam(io)
Definition: creadParam.f:5
subroutine chooktrace
Definition: chook.f:275
subroutine chookcerene
Definition: det2Exyz.f:67
nodes a
subroutine chookcerens(no, primary, angle)
Definition: ctemplCeren.f:19
dE dx *! Nuc Int sampling table b
Definition: cblkMuInt.h:130
Definition: Zcoord.h:43
subroutine cbeginrun
Definition: cbeginRun.f:7
subroutine chookbgrun
Definition: chook.f:15