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

Go to the source code of this file.

Data Types

type  efield
 

Modules

module  modefield
 

Functions/Subroutines

subroutine cefieldread
 
subroutine cefieldwrite
 
subroutine cefieldcheck
 
subroutine cefielddet2xyz
 
subroutine cefield0 (aTrack, Efout)
 
subroutine cefieldcheckr (aTrack, i, out)
 
subroutine cgetpcoredist (aTrack, r)
 
subroutine cgethcoredist (aTrack, r)
 

Variables

integer, parameter nmaxefield =5
 
integer, save howefield =0
 
character(len=1), save defofr ='h'
 
type(efield), dimension(nmaxefield), save myef
 
integer, save nefield = 0
 
logical, dimension(nmaxefield), save checkh = .false.
 
logical, dimension(nmaxefield), save checkr = .false.
 
logical, dimension(nmaxefield), save checkt = .false.
 
logical, save useh =.false.
 
logical, save user =.false.
 
logical, save uset =.false.
 
real(8), dimension(3, nmaxefield), save efxyz
 

Function/Subroutine Documentation

◆ cgethcoredist()

subroutine cgethcoredist ( type (track aTrack,
real(8), intent(out)  r 
)

Definition at line 272 of file cEfield0.f.

References cxyz2det().

Referenced by modefield::cefieldcheckr().

272  implicit none
273 #include "Ztrack.h"
274 #include "Zincidentv.h"
275 #include "Zobs.h"
276 #include "Zobsv.h"
277  type(track):: atrack ! input. in E-xyz system
278  real(8),intent(out):: r ! Perpendicular core distance
279 
280  real(8):: rdet(3) ! ptcl pos in det-sys
281  real(8):: raxis(3) ! shower core at the same height
282  ! as the ptcl
283 
284 
285  call cxyz2det(obssites(atrack%where)%pos%xyz,
286  * atrack%pos%xyz%r(:), rdet(:))
287  raxis(:) =
288  * (atrack%pos%height - obssites(atrack%where)%pos%height) /
289  * angleatobscopy%r(3) ! length from origin( <0 )
290  * * angleatobscopy%r(:) ! vector (now upgoing) since
291  ! AngleAtObsCopy is downogin.
292  r = sqrt(sum( ( rdet(:)-raxis(:))**2 ))
*Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p *Zfirst pos xyz r
Definition: ZavoidUnionMap.h:1
Definition: Ztrack.h:44
subroutine cxyz2det(det, a, b)
Definition: cxyz2det.f:7
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cgetpcoredist()

subroutine cgetpcoredist ( type (track aTrack,
real(8), intent(out)  r 
)

Definition at line 256 of file cEfield0.f.

References cxyz2det().

Referenced by modefield::cefieldcheckr().

256  implicit none
257 #include "Ztrack.h"
258 #include "Zincidentv.h"
259 #include "Zobs.h"
260 #include "Zobsv.h"
261  type(track):: atrack ! input. in E-xyz system
262  real(8),intent(out):: r ! Perpendicular core distance
263 
264  real(8):: rdet(3) ! ptcl pos in det-sys
265 
266  call cxyz2det(obssites(atrack%where)%pos%xyz,
267  * atrack%pos%xyz%r(:), rdet(:))
268  r = abs(dot_product(rdet(:), angleatobscopy%r(:))) ! Angle.. is dwn.g
*Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p *Zfirst pos xyz r
Definition: ZavoidUnionMap.h:1
Definition: Ztrack.h:44
subroutine cxyz2det(det, a, b)
Definition: cxyz2det.f:7
Here is the call graph for this function:
Here is the caller graph for this function: