Repository navigation
Expand file tree
/
Copy pathConfigs.toml
More file actions
306 lines (247 loc) · 7.96 KB
/
Copy pathConfigs.toml
File metadata and controls
306 lines (247 loc) · 7.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
# Config File formatted as follows:
# Each parameter is formatted like: [XXX.YYY] where XXX refers to the group of the parameter and YYY refers to the name of the parameter
# Each parameter has exactly two key:value pairs.
# The first is the actual value of the parameter (a path, a number, a string etc.)
# The second is the sanity check/constraint on the parameter. See TomlSanityCheck.py for a current list of supported constraints
### Parameters Used across all calculations
[General.Geometry]
# Geometry of detector. Options are {"flat","cube"}
value= "cube"
constraint ="DetectorGeometry"
[General.RABinnings]
#binnings on skymap fro source and background in Right Ascension
value = 500.0
constraint = "SPosFloat"
[General.ALTBinnings]
#binnings on skymap from source and background in Declination
value = 500.0
constraint = "SPosFloat"
[General.output_directory]
value = "/nevis/milne/files/ms6556/BleekerData/test"
constraint = "ValidFolder"
[General.MC_truth]
# flag to denote if using MC_truth/Reconstruct executable
value = true
constraint = "Boolean"
[General.scale]
# What scale the binnings should be. Options are {"linear","log"}
value = "linear"
constraint = "ScaleCheck"
[General.local_run]
# Run code locally instead of on condor
value = false
constraint = "Boolean"
### Effective Area: Read in by Effective Area condor job and CalcEffArea
## GramsSky portion. Some fixed parameters of the simulation
# -o gramssky.hepmc3
# PositionGeneration Iso
# --PhiMinMax \"(-3.14159,3.14159)\" --ThetaMinMax \"(-1.57079,1.57079)\"
# --OriginSphere depends on Geometry. Cube is \"(0,0,-40.0 )\". Flat is --OriginSphere \"(0,0,-10.0 )\"
[EffectiveArea.gramssky.RadiusSphere]
# Generating sphere where photons start at
value = 300.0
constraint = "SPosFloat"
[EffectiveArea.gramssky.RadiusDisc]
# Disk along which photons get translated
value = 200.0
constraint = "SPosFloat"
[EffectiveArea.gramssky.minE]
# Minimum energy to test
value = 0.1
constraint = "SPosFloat"
[EffectiveArea.gramssky.maxE]
# Maximum energy to test
value = 10.0
constraint = "SPosFloat"
[EffectiveArea.gramssky.energy_bins]
# Number of energy bins
value = 100
constraint = "SPosInt"
[EffectiveArea.gramssky.nparticles]
# Number of particles to generate at each energy
value = 20000
constraint = "SPosInt"
## Gramsg4 section of effective area
# Defaults. These shouldn't be changed by user.
# -i gramssky.hepmc3
# -o gramsg4.root
# -g {GDML} where GDML is dependent on Geometry. ThinGrams.gdml for 'cube', ThinFlatGrams.gdml for 'flat'
# -m {MAC} where {MAC} is ./mac/EffAreaHepmc3.mac, which is a file created by GenCondorJobs
[EffectiveArea.gramsg4]
# No user defined parameters here... yet
## GramsDetSim section
# Defaults. These shouldn't be changed by user.
# -i gramssky.root
# -o gramsdetsim.root
[EffectiveArea.gramsdetsim]
# No user defined parameters here... yet
## Extract section
# Defaults
# --GramsG4Name gramsg4.root
# --GramsDetSimName gramsdetsim.root
[EffectiveArea.Extract.ExtractOutput]
value = "EffectiveAreaExtract"
constraint = "NonEmptyString"
## EffectiveArea
# Defaults
# -i ExtractOutput key in Extract
[EffectiveArea.Reconstruct.ReconstructOutput]
value = "EffectiveAreaReconstruction" # _${process}.root gets appended to this string
constraint = "NonEmptyString"
### Point Source Generation Section
## Input parameters
[Source.Input.SourceEnergy]
value = 1.0 # Energy of Source (MeV)
constraint = "SPosFloat"
[Source.Input.SourceEventsPerJob]
value = 10000 # Number of Source events per job
constraint = "SPosInt"
[Source.Input.SourceBatches]
value = 10 # Number of jobs to generate with source
constraint = "SPosInt"
[Source.Input.RASourceLoc]
value = 0.0 # Location of source in Right Ascension in degrees (in xy plane)
constraint = "Floating"
[Source.Input.ALTSourceLoc]
value = 0.0 # Loocation of source in Altitude in degrees (moving up from xy plane)
constraint = "Floating"
## GramsSky section of Point Source
# Defaults
# --PositionGeneration Point
# --PointSource calculated from RA and ALT locations
# -o uses Events.hepmc3
# --RadiusSphere 300
# --RadiusDisc 200
# OriginSphere from Geometry
# --EnergyGeneration Fixed
[Source.gramssky]
# Nothing user define... for now
## GramsG4 section of Source
# Defaults
# -o is default
# -g dependent on geometry
# -i is gramssky.hepmc3
# -m dependent on number of particle generated. Generated by GenCondorJobs.py
[Source.gramsg4]
# Nothing user define... for now
## GramsDetSim section of Source
# -i is default gramsg4
# -o is default gramsdetsim
[Source.gramsdetsim]
# Nothing user define... for now
## Extract section of Source
# GramsG4Name is default
# GramsDetSimName is default
[Source.Extract.ExtractOutput]
value = "SourceExtract"
constraint = "NonEmptyString"
## Reconstruct section of Source
# Defaults
#input is output of Extract
# SourceType is Point
# SourceLoc is from RA and ALT
[Source.Reconstruct]
value = "SourceReconstruct" # _${process}.root gets appended to this string
constraint = "NonEmptyString"
## Skymap section of source
# Input is output of Reconstruct
# EffAreaFile from CalcEffArea.py
# Mask from mask
[Source.SkyMap]
# _${process}.root gets appended to this string
value = "SourceSkyMap"
constraint = "NonEmptyString"
### Background Section
## General user input section
[Background.Input.BackgroundEventsPerJob]
# Number of Background events per job
value= 10000
constraint = "SPosInt"
[Background.Input.BackgroundBatches]
# Number of jobs to generate
value= 10
constraint = "SPosInt"
## GramsSky section of background
# Defaults
# default output GramsG4Name
# RadiusSphere 300
# PositionGeneration Iso
#--PhiMinMax "(-3.14159,3.14159)" --ThetaMinMax "(0,3.14159265)"
# OriginSphere from Geometry
[Background.gramssky.Spectrum]
# Energy generation type. {"PowerLaw","Uniform"}
value = "PowerLaw"
constraint = "EnergyDist"
[Background.gramssky.minE]
# Energy in MeV
value = 0.1
constraint= "SPosFloat"
[Background.gramssky.maxE]
value = 10.0
constraint= "SPosFloat"
## GramsG4 section of background
# output is default
# input is gramssky.hepmc3
# m is hepmc3 macro generated by GenCondorJobs
[Background.gramsg4]
# No user-defined parameters... for now
## GramsDetSim section of background
# output default
# input default gramsg4
[Background.gramsdetsim]
# No user-defined parameters... for now
## Extract section of background
# GramsG4Name is default
# GramsDetSimName is default
[Background.Extract.ExtractOutput]
value = "BackgroundExtract"
constraint = "NonEmptyString"
## Reconstruct section of background
# Defaults
#input is output of Extract
# SourceType is Iso
[Background.Reconstruct.ReconstructOutput]
# _${process}.root gets appended to this string
value = "BackgroundReconstruction"
constraint = "NonEmptyString"
## SkyMap section of background
# EffAreaFile from CalcEffArea.py
# Flux files created with GenEnergySpectrum
[Background.SkyMap.SkyMapOutput]
# _${process}.root gets appended to this string
value = "BackgroundSkyMap"
constraint = "NonEmptyString"
[Background.SkyMap.ExposureTime]
value = 86400.0 # In seconds
constraint = "SPosFloat"
### Binary Mask generation,to limit skymaps to certain portions of the sky
# Inputs
# Defaults
# RA and ALT locations from Source
# Same binnings as in General
# Calcuates BinaryMask which can be applied to a skymap
[Mask.Input.nevents]
# Number of Source events per job
value = 10000
constraint = "SPosInt"
[Mask.Input.nbins]
# Number of binnings in ARM distribution
value = 1000
constraint = "SPosInt"
[Mask.Input.MaskOutput]
# Output File name
value = "BinaryMask.root"
constraint = "NonEmptyString"
[Mask.Input.draw]
# Write out png of what mask looks like
value = true
constraint = "Boolean"
### Effective Area
[CalcEffArea.Input.OutputFileName]
value = "EffectiveArea.root"
constraint = "NonEmptyString"
### Sensitivity Calc
[Sensitivity.Input.TimeScaling]
# How much to scale up/down the exposure time
value = 1.0
constraint = "SPosFloat"