~9marusia6/maus/beamlinesimulation

« back to all changes in this revision

Viewing changes to src/common_py/ConfigurationDefaults.py

  • Committer: justinchristensen at berkeley
  • Date: 2012-06-08 08:47:52 UTC
  • mfrom: (669.1.1 release)
  • Revision ID: justinchristensen@berkeley.edu-20120608084752-5x3f3rzflhhcewwi
new version

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
maximum_number_of_steps = 10000 # particles are killed after this number of
63
63
                                # steps (assumed to be stuck in the fields)
64
64
simulation_reference_particle = { # used for setting particle phase
65
 
    "position":{"x":0.0, "y":-0.0, "z":-15000.0},
 
65
    "position":{"x":0.0, "y":-0.0, "z":-5500.0},
66
66
    "momentum":{"x":0.0, "y":0.0, "z":1.0},
67
67
    "particle_id":-13, "energy":226.0, "time":0.0, "random_seed":10
68
68
}
82
82
visualisation_theta = 90.
83
83
visualisation_phi = 90.
84
84
visualisation_zoom = 1.
85
 
accumulate_tracks = 1 # this accumulates the tracks into one vrml file 1 = yes, 0 = no
 
85
accumulate_tracks = 0 # this accumulates the tracks into one vrml file 1 = yes, 0 = no
86
86
#particle colour alterations
87
87
default_vis_colour = {"red":0. , "green":100.  ,"blue":0.} #green
88
88
pi_plus_vis_colour = {"red":255. , "green":250.  ,"blue":240.} # white
95
95
neutron_vis_colour = {"red":139. , "green":69.  ,"blue":19.} # brown
96
96
photon_vis_colour = {"red":255. , "green":255.  ,"blue":0.} # yellow
97
97
 
98
 
# monte carlo run number - negative means "not a MC run against a real configuration"
99
 
monte_carlo_run_number = 0
100
98
# used by InputPySpillGenerator to determine the number of empty spills that
101
99
# will be generated by the simulation
102
100
spill_generator_number_of_spills = 10
116
114
       "random_seed_algorithm":"incrementing_random", # algorithm for seeding MC
117
115
       "weight":90., # probability of generating a particle
118
116
       "transverse":{
119
 
          "transverse_mode":"twiss", # transverse distribution asymmetric in x and y and uncoupled
120
 
          "beta_x":1000., # 1000 mm beta function
121
 
          "alpha_x":0.5, # beam converging (into Q7-9)
122
 
          "emittance_x":0.5, # smallish emittance
123
 
          "beta_y":1000., # 1000 mmm beta function
124
 
          "alpha_y":0.5, # beam converging (into Q7-9)
125
 
          "emittance_y":0.5, # smallish emittance
 
117
          "transverse_mode":"constant_solenoid", # transverse distribution matched to constant solenoid field
 
118
          "emittance_4d":6., # 4d emittance
 
119
          "normalised_angular_momentum":0.1, # angular momentum from diffuser
 
120
          "bz":4.e-3 # magnetic field strength for angular momentum calculation
126
121
       },
127
122
       "longitudinal":{"longitudinal_mode":"sawtooth_time", # longitudinal distribution sawtooth in time
128
123
                   "momentum_variable":"p", # Gaussian in total momentum (options energy, pz)
134
129
    ##### PIONS #####
135
130
    { # as above...
136
131
       "reference":{
137
 
           "position":{"x":0.0, "y":-0.0, "z":-14200.0},
 
132
           "position":{"x":0.0, "y":-0.0, "z":-5500.0},
138
133
           "momentum":{"x":0.0, "y":0.0, "z":1.0},
139
134
           "particle_id":211, "energy":285.0, "time":0.0, "random_seed":10
140
135
       },
152
147
    ##### ELECTRONS #####
153
148
    { # as above...
154
149
        "reference":{
155
 
            "position":{"x":0.0, "y":-0.0, "z":-14200.0},
 
150
            "position":{"x":0.0, "y":-0.0, "z":-5500.0},
156
151
            "momentum":{"x":0.0, "y":0.0, "z":1.0},
157
152
            "particle_id":-11, "energy":200.0, "time":0.0, "random_seed":10
158
153
        },
220
215
geometry_upload_valid_from = "" # date-time in format like: that the specified installation was made in the experiment. A date-time must be specified here (default will throw an exception).
221
216
geometry_upload_cleanup = True # set to True to clean up after upload
222
217
 
 
218
#dates need to get geomtry ids
 
219
get_ids_start_time = ""
 
220
get_ids_stop_time = ""
 
221
get_ids_create_file = True
223
222
 
224
223
# this is used by ImputCppRealData
225
224
Number_of_DAQ_Events = -1
246
245
Enable_CKOV = True
247
246
DAQ_cabling_file = "/files/cabling/DAQChannelMap.txt"
248
247
 
249
 
#cerenkov digitization
250
 
ckov_position_threshold = 40
251
 
ckov_pulse_area_threshold = 1
252
 
ckov_window_min = 19
253
 
ckov_window_max = 80
254
 
 
255
248
# tof digitization
256
249
TOFconversionFactor = 0.01 # MeV
257
250
TOFpmtTimeResolution = 0.1 # nanosecond
288
281
mongodb_host = "localhost" # Default MongoDB host name. Only needed if using MongoDBDocumentStore.
289
282
mongodb_port = 27017 # Default MongoDB port. Only needed if using MongoDBDocumentStore.
290
283
mongodb_database_name = "mausdb" # Default MongoDB database name. Only needed if using MongoDBDocumentStore.
 
284
mongodb_collection_name = "spills" # Default MongoDB collection name. Only needed if using MongoDBDocucmentStore.
291
285
 
292
286
# Default OutputPyImage image directory. MAUS web application directory.
293
287
image_directory = os.environ.get("MAUS_WEB_MEDIA_RAW") if (os.environ.get("MAUS_WEB_MEDIA_RAW") != None) else os.getcwd()
294
288
# Default OutputPyFile output directory. MAUS web application directory.
295
289
output_file_directory = os.environ.get("MAUS_WEB_MEDIA_RAW") if (os.environ.get("MAUS_WEB_MEDIA_RAW") != None) else os.getcwd()
296