COSMOS v7.655  COSMOSv7655
(AirShowerMC)
cfixMCSmodel.f
Go to the documentation of this file.
1  subroutine cfixmcsmodel( aPtcl )
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
45  end
subroutine cerrormsg(msg, needrtn)
Definition: cerrorMsg.f:4
max ptcl codes in the kelec
Definition: Zcode.h:2
subroutine cfixmcsmodel(aPtcl)
Definition: cfixMCSmodel.f:2
Definition: Zptcl.h:75