COSMOS v7.655  COSMOSv7655
(AirShowerMC)
Zmanagerp.h
Go to the documentation of this file.
1 #include "Zmaxdef.h"
2 /*
3 c Parameters needed for the Launcher.
4 c
5 c (-> ------------------------------------
6  integer ErrorOut !2 Error output logical dev number.
7  character*128 PrimaryFile !1 Primary Spectrum data file (full or relative path)
8  character*128 CutOffFile !1 Geomagnetic cut-off file
9  character*128 ContFile !1 Job continuation information file (full or relative path).
10  ! default is "ContInfo". This will be created when job
11  ! is finished normally.
12  character*128 GeomagFile !2 IGRF or WMM file path which contains geomagnetic field expansion
13  ! coefficients. Their format is the same one as given in their web
14  ! page. If ' ' (default), Cosmos/Data/Geomag/igrf is used.
15  character*128 SkeletonFile !1 Skeleton information file (full or relative path). created if Job =
16  ! 'skeleton'. Default is 'skeletonParam'. This is the Namelist data
17  ! referred by Cosmos automatically if Job='flesh' is specified. For
18  ! Job='flesh', you have to modify some part of this file.
19  character*128 DpmFile !2 control card to specify the dpmjet execution conditions. If ' ',
20  ! Cosmos/Data/DPM/atmos.inp is assumed.
21  character*10 Job !1 What kind of job you are going to do.\newline
22  ! =' ' (default). nothing special.\newline
23  ! ='skeleton'. Makes skeleton. \newline
24  ! ='flesh'. Flesh skeleton events. See manual.\newline
25  ! ='newskel' \newline
26  ! ='newflesh' see manual. \newline
27  character*128 SeedFile !1 File to contain the initial random numbers for those events to
28  ! which you want to flesh. You can create the file by calling
29  ! cwriteSeed in a user hook routine (say, in chookEnEvent) at
30  ! skeleton making time. Default is 'Seed'. For a normal run with
31  ! Job=' ', if SeedFile is not ' ', two integer initial random numbers
32  ! and the event number are automatically output on the speicfied disk file.
33  integer SeedFileDev !2 logical device number of SeedFile.
34  logical Cont !1 If T, continuation from a previous job is assumed. Contfile content is used.
35  integer InitRN !1 Initial random number seed. 2 integers. If InitRN(1) $<$ 0, file dev \# 14
36  ! is assumed to have pairs of IR in each row, and they are read to
37  ! initialize each event. This feature is ignored when Job = 'flesh' or
38  ! 'newflesh'. The \# 14 file should be opened by the user routine
39  ! (chookBgRun). This is almost debug purpose.\newline
40  ! If InitRn(2)$<$0, timer, hostname and process number are used for the
41  ! initialization.
42  integer EventNo !2 cumulative event number counter.(excluding discarded ones due to cutoff).
43  integer EventsInTheRun !2 Counter for event number in the run. Internal use.
44  ! (excluding discarded ones due to cutoff).
45  integer DestEventNo !1 2 integers: Final event no. to be generated and events to be generated
46  ! in the current run. If negative, their absolute is used and counting
47  ! includes discarded ones due to rigidity cutoff.
48  ! If DestEventNo(2)=0, DestEventNo(1) is used. If it is negative, only
49  ! DestEventNo(2) is checked to see events in the current run. For the
50  ! flux calculation, negative ones are better.
51  logical Hidden !1 Make T, if hidden parameters are to be written.
52  integer TempDev !2 Logical Dev. number for temporary disk use.
53  integer PrevEventNo !2 The event number already finished. System use for Cont job.
54  ! (excluding discarded ones due to cutoff).
55  character*8 DeadLine !1 The dead line before which the job should terminate.
56  ! Should be given like '10.11.15' which means the nearest 10th, 11 O'clock,
57  ! 15 min. Not used if Within has non zero value.
58  integer Within !1 The job should end within this minutes from now. Default is 99999.
59  ! If 0 is given, DeadLine is used.
60  real*8 BaseTime !1 Rough cpu time needed for completing one event (say, for protons, or
61  ! gamma rays) with energy BaseErg. The cpu time estimation is based on
62  ! A * ( E1ry par nucleon )**BasePower / BaseErg * BaseTime, where A is mass number
63  ! (for nucleus; otherwise 1).
64  real*8 BaseErg !2 See BaseTime. The default is 1000 (GeV).
65  real*8 BasePower !2 See BaseTime. Default is 1.0
66  character*100 UserHookc !2 array size is MAX\_USERHOOKC(=5). Usage is left for the user. To get the i-th
67  ! component, the use may 'call cqUHookc(i, cv)' in the userHook routine,
68  ! where cv is a character variable to receive the data.
69  real*8 UserHookr !2 array size is MAX\_USERHOOKR(=10). Usage is left for the user. To get the i-th
70  ! component, the use may 'call cqUHookr(i, rv)' in the userHook routine,
71  ! where rv is a real*8 variable to receive the data.
72  integer UserHooki !2 array size is MAX\_USERHOOKI(=10). Usage is left for the user. To get the i-th
73  ! component, the use may 'call ccqUHooki(i, iv)' in the userHook rouitne,
74  ! where iv is an integer varialbe to receive the data.
75  character*128 AtmosFile !2 path to the atmospheric data as in 'Cosmos/Data/Atmos/stdatmos2.d'
76 
77  character*32 AtEnv !2 If this is non blank, an environmental variable with that name is
78  ! assumed to exist and Cosmos tries to get the value of that env variable.
79  ! If the value is obtained, the \verb/@/ in \verb/@_/ or \verb/@./
80  ! expressing a part of a file name is replaced by that value.
81  ! (default is blank and in that case the \verb/@/ is replaced by
82  ! the host name where the job runs.)
83 
84  character*32 SharpEnv !2 If this is non blank, an environmental variable with that name is
85  ! assumed to exist and Cosmos tries to get the value of that env variable.
86  ! If the value is obtained, the \verb/#/ in \verb/#_/ or \verb/#./
87  ! expressing a part of a file name is replaced by that value.
88  ! (default is blank and in that case the \verb/#/ is replaced by
89  ! the process number of the run).
90 
91  character*32 PercentEnv !2 If this is non blank, an environmental variable with that name is
92  ! assumed to exist and Cosmos tries to get the value of that env variable.
93  ! If the value is obtained, the \verb/%/ in \verb/%_/ or \verb/%./
94  ! expressing a part of a file name is replaced by that value.
95  ! (default is blank and in that case the \verb/%/ is replaced by
96  ! the USER name).
97 
98 
99 c <-) -------------------------------------
100 */
101 
102 extern struct zmanagerpc {
103  double basetime;
104  double baseerg;
105  double basepower;
106  double within;
108  int errorout;
110  int initrn[2];
113  int desteventno[2];
115  int tempdev;
118  int eventno;
119 } zmanagerpc_;
120 
121 #define BaseTime zmanagerpc_.basetime
122 #define BaseErg zmanagerpc_.baseerg
123 #define BasePower zmanagerpc_.basepower
124 #define Within zmanagerpc_.within
125 #define UserHookr zmanagerpc_.userhookr
126 #define ErrorOut zmanagerpc_.errorout
127 #define Cont zmanagerpc_.cont
128 #define InitRN zmanagerpc_.initrn
129 #define UserHooki zmanagerpc_.userhooki
130 #define EventsInTheRun zmanagerpc_.eventsintherun
131 #define DestEventNo zmanagerpc_.desteventno
132 #define Hidden zmanagerpc_.hidden
133 #define TempDev zmanagerpc_.tempdev
134 #define PrevEventNo zmanagerpc_.preveventno
135 #define SeedFileDev zmanagerpc_.seedfiledev
136 #define EventNo zmanagerpc_.eventno
137 
138 
139 extern struct zmanagerpc2 {
140  char userhookc[MAX_USERHOOKC][100];
141  char primaryfile[128];
142  char cutofffile[128];
143  char job[10];
144  char contfile[128];
145  char atmosfile[128];
146  char geomagfile[128];
147  char skeletonfile[128];
148  char seedfile[128];
149  char dpmfile[128];
150  char deadline[8];
151  char sharpenv[32];
152  char percentenv[32];
153  char atenv[32];
154  DUMMYCHAR
155 } zmanagerpc2_;
156 
157 
158 #define UserHookc zmanagerpc2_.userhookc
159 #define PrimaryFile zmanagerpc2_.primaryfile
160 #define CutOffFile zmanagerpc2_.cutofffile
161 #define Job zmanagerpc2_.job
162 #define ContFile zmanagerpc2_.contfile
163 #define AtmosFile zmanagerpc2_.atmosfile
164 #define GeomagFile zmanagerpc2_.geomagfile
165 #define SkeltonFile zmanagerpc2_.skeletonfile
166 #define SeedFile zmanagerpc2_.seedfile
167 #define DpmFile zmanagerpc2_.dpmfile
168 #define DeadLine zmanagerpc2_.deadline
169 #define SharpEnv zmanagerpc2_.sharpenv
170 #define PercentEnv zmanagerpc2_.percentenv
171 #define AtEnv zmanagerpc2_.atenv
172 
173 
174 
#define MAX_USERHOOKR
Definition: Zmaxdef.h:11
#define DUMMYCHAR
Definition: Zdef.h:8
int initrn[2]
Definition: Zmanagerp.h:110
int desteventno[2]
Definition: Zmanagerp.h:113
double basetime
Definition: Zmanagerp.h:103
int tempdev
Definition: Zmanagerp.h:115
int errorout
Definition: Zmanagerp.h:108
double userhookr[MAX_USERHOOKR]
Definition: Zmanagerp.h:107
int userhooki[MAX_USERHOOKI]
Definition: Zmanagerp.h:111
int eventno
Definition: Zmanagerp.h:118
logical hidden
Definition: Zmanagerp.h:114
double baseerg
Definition: Zmanagerp.h:104
int seedfiledev
Definition: Zmanagerp.h:117
int preveventno
Definition: Zmanagerp.h:116
#define MAX_USERHOOKI
Definition: Zmaxdef.h:10
int logical
Definition: Zdef.h:1
struct zmanagerpc zmanagerpc_
logical cont
Definition: Zmanagerp.h:109
#define MAX_USERHOOKC
Definition: Zmaxdef.h:9
struct zmanagerpc2 zmanagerpc2_
double within
Definition: Zmanagerp.h:106
int eventsintherun
Definition: Zmanagerp.h:112
double basepower
Definition: Zmanagerp.h:105