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

Go to the source code of this file.

Functions/Subroutines

subroutine cfixmcsmodel (aPtcl)
 

Function/Subroutine Documentation

◆ cfixmcsmodel()

subroutine cfixmcsmodel ( type(ptcl aPtcl)

Definition at line 2 of file cfixMCSmodel.f.

References cerrormsg(), and kelec.

Referenced by csampeintl().

2  use modmcscontrol
3  implicit none
4 !
5 ! fix how to treat MCS for this e-/e+
6 !
7 #include "Zptcl.h"
8 #include "Zcode.h"
9 
10  type(ptcl):: aptcl ! input. e+/e-
11 
12  integer i
13  integer :: icon
14 
15  if( aptcl%code /= kelec) then
16  write(0,*) 'cfixMSmodel is called non e-/e+'
17  write(0,*) ' the code,subcode,charge= ',
18  * aptcl%code, aptcl%subcode, aptcl%charge
19  stop
20  endif
21  kegev = aptcl%fm%p(4)- aptcl%mass
22  keev = kegev*1.0d9
23  if(kegev > maxergmcs) then
24  activemcs = 'Mol'
25  else
26  do i = 1, noofhowmcs
27  if( kegev < mcserg(i)) then
28  if(kegev > minergmcs) then
29  activemcs = howmcslist(i)
30  else
31  activemcs = 'Mol'
32  endif
33 !!!!!!!!!!!!!
34 !! write(0,*) 'E=',KEeV,' model=',ActiveMCS
35 !!!!!!!!!!!
36  return !!!!!!!!!!
37  endif
38  enddo
39  call cerrormsg('MCSModel and energy range strange', 1)
40  do i = 1, noofhowmcs
41  write(0,*) howmcslist(i), mcserg(i)
42  enddo
43  stop 44444
44  endif
subroutine cerrormsg(msg, needrtn)
Definition: cerrorMsg.f:4
nodes i
max ptcl codes in the kelec
Definition: Zcode.h:2
Definition: Zptcl.h:75
Here is the call graph for this function:
Here is the caller graph for this function: