COSMOS v7.655  COSMOSv7655
(AirShowerMC)
cxyz2det.f File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine cxyz2det (det, a, b)
 
subroutine cdet2xyz (det, a, b)
 
subroutine cxyz2detd (a, b)
 
subroutine cdet2xyzd (a, b)
 

Function/Subroutine Documentation

◆ cdet2xyz()

subroutine cdet2xyz ( type(coord det,
type(coord a,
type(coord b 
)

Definition at line 48 of file cxyz2det.f.

Referenced by __det2prim2.f__(), cdet2primfe(), cdet2xyzfe(), cinitracking0(), cmintime2websec(), and convcoord().

48 ! *******************************
49  implicit none
50 
51 #include "Zcoord.h"
52 #include "Zobs.h"
53 #include "Zpos.h"
54 #include "Zmagfield.h"
55 #include "Zobsv.h"
56 
57 !
58 ! why type(coord)::
59  type(coord)::a
60  type(coord)::b
61  type(coord)::det
62  real(8)::temp(3)
63  temp(:) = matmul( tdet2xyz(:,:), a%r(:))
64  b%r(:) = temp(:) + det%r(:)
65  b%sys = 'xyz'
66 ! record /coord/ tempa
67 ! real*8 leng
68 ! to direction cos in 'det'
69 ! call c3DV2DDCos(a, tempa, leng)
70 ! to direction cos in 'zyz'
71 ! call ctransVectZx(1, DetZaxis, DetXaxis,tempa, b)
72 ! to xyz sys
73 ! b.r(1) = b.r(1) *leng + det.r(1)
74 ! b.r(2) = b.r(2) *leng + det.r(2)
75 ! b.r(3) = b.r(3) *leng + det.r(3)
76 ! b.sys = 'xyz'
real(4), dimension(:), allocatable, save temp
Definition: cNRLAtmos.f:29
real(4), save a
Definition: cNRLAtmos.f:20
real(4), save b
Definition: cNRLAtmos.f:21
Definition: Zcoord.h:43
Here is the caller graph for this function:

◆ cdet2xyzd()

subroutine cdet2xyzd ( type(coord a,
type(coord b 
)

Definition at line 101 of file cxyz2det.f.

Referenced by __det2prim2.f__(), cdet2primfe(), cdet2xyzfe(), modefield::cefielddet2xyz(), and cmyefield().

101  implicit none
102 #include "Zcoord.h"
103 #include "Zobs.h"
104 #include "Zpos.h"
105 #include "Zmagfield.h"
106 #include "Zobsv.h"
107 
108  type(coord)::a
109  type(coord)::b
110  real(8):: temp(3)
111  temp(:) = matmul( tdet2xyz(:,:), a%r(:))
112  b%r(:) = temp(:)
113 ! call ctransVectZx(1, DetZaxis, DetXaxis, a, b)
real(4), dimension(:), allocatable, save temp
Definition: cNRLAtmos.f:29
real(4), save a
Definition: cNRLAtmos.f:20
real(4), save b
Definition: cNRLAtmos.f:21
Definition: Zcoord.h:43
Here is the caller graph for this function:

◆ cxyz2det()

subroutine cxyz2det ( type(coord det,
type(coord a,
type(coord b 
)

Definition at line 7 of file cxyz2det.f.

Referenced by __det2prim.f__(), __det2prim2.f__(), __xyz2det.f__(), ccoordfortr(), cgethcoredist(), cgetpcoredist(), cinitracking(), cmyefield(), cobservation(), convcoord(), cprim2detfe(), csetthinwgt(), and cxyz2detfe().

7 ! convert coord value in the "xyz" system into "det" system.
8 ! det: /coord/ input. detector coord in "xyz"
9 ! a: /coord/ input. coord in 'xyz'
10 ! b: /coord/ outupt. coord in 'det'
11 !
12  implicit none
13 
14 #include "Zcoord.h"
15 #include "Zobs.h"
16 #include "Zpos.h"
17 #include "Zmagfield.h"
18 #include "Zobsv.h"
19 
20  type(coord)::a
21  type(coord)::b
22  type(coord)::det
23 
24 ! record /coord/ tempa
25  real(8):: temp(3)
26  temp(:) = a%r(:) - det%r(:)
27  b%r(:) = matmul( txyz2det(:,:), temp(:))
28  b%sys = 'det'
29 ! real*8 leng
30 ! coord in "xyz" from the origin of det.
31 
32 ! tempa.r(1) = a.r(1) - det.r(1)
33 ! tempa.r(2) = a.r(2) - det.r(2)
34 ! tempa.r(3) = a.r(3) - det.r(3)
35 ! make it direction cos.
36 ! call c3DV2DDCos(tempa, tempa, leng)
37 ! maket it direction cos in "det" system.
38 ! call ciTransVectZx(1, DetZaxis, DetXaxis, tempa, b)
39 ! to 3D vectors
40 !
41 ! b.r(1) = b.r(1) *leng
42 ! b.r(2) = b.r(2) *leng
43 ! b.r(3) = b.r(3) *leng
44 ! b.sys = 'det'
real(4), dimension(:), allocatable, save temp
Definition: cNRLAtmos.f:29
real(4), save a
Definition: cNRLAtmos.f:20
real(4), save b
Definition: cNRLAtmos.f:21
Definition: Zcoord.h:43
Here is the caller graph for this function:

◆ cxyz2detd()

subroutine cxyz2detd ( type(coord a,
type(coord b 
)

Definition at line 80 of file cxyz2det.f.

Referenced by cobservation(), cprim2detfe(), and cxyz2detfe().

80  implicit none
81 
82 #include "Zcoord.h"
83 #include "Zobs.h"
84 #include "Zpos.h"
85 #include "Zmagfield.h"
86 #include "Zobsv.h"
87 
88 
89 !
90  type(coord)::a
91  type(coord)::b
92  real::temp(3)
93  temp(:) =matmul(txyz2det(:,:), a%r(:))
94  b%r(:) = temp(:)
95  b%sys = 'det'
96 ! call ciTransVectZx(1, DetZaxis, DetXaxis, a, b)
97 ! b.sys = 'det'
real(4), dimension(:), allocatable, save temp
Definition: cNRLAtmos.f:29
real(4), save a
Definition: cNRLAtmos.f:20
real(4), save b
Definition: cNRLAtmos.f:21
Definition: Zcoord.h:43
Here is the caller graph for this function: