~christopher-hunt08/maus/maus_integrated_kalman

« back to all changes in this revision

Viewing changes to bin/user/scifi/datacard_mc_helical

  • Committer: Durga Rajaram
  • Date: 2014-07-16 15:13:05 UTC
  • mfrom: (659.1.92 cand)
  • Revision ID: durga@fnal.gov-20140716151305-q27rv1y9p03v9lks
Tags: MAUS-v0.9, MAUS-v0.9.0
MAUS-v0.9.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
import os
2
2
 
 
3
#------------------------------------------
 
4
# Some initial setup
 
5
#------------------------------------------
3
6
type_of_dataflow = 'pipeline_single_thread'
4
 
 
5
 
output_json_file_name = "maus_output.json"
6
 
output_json_file_type = "text"
7
 
# input_root_file = "maus_output_10kspills_muplus_digitisation_2013-11-18.root"
8
 
# output_root_file_name = "maus_output_muminus_10kspills_2013-12-03.root"
9
 
 
10
 
 
11
 
# Used, for now, to determine what level of c++ log messages are reported to the user
12
 
# 0 = debug info (and std::cout)
13
 
# 1 = run info
14
 
# 2 = warnings
15
 
# 3 = errors (and std::cerr)
16
 
# 4 = fatal
17
 
# >4 = silent
18
 
# Doesnt effect python
19
 
verbose_level = 0
20
 
errors_to_stderr = None # None = from verbose_level; else True or False
21
 
errors_to_json = True
22
 
on_error = 'none' # none, halt or raise
23
 
 
24
 
# Used by MapPyRemoveTracks.
25
 
keep_only_muon_tracks = False
26
 
 
 
7
verbose_level = 0 # 0 = debug info (and std::cout), 1 = run info, 2 = warnings # 3 = errors (and std::cerr), 4 = fatal, >4 = silent
 
8
# output_root_file_name = "maus_output_helical_tests.root"
 
9
 
 
10
#------------------------------------------
 
11
# Used by InputCppRoot
 
12
#------------------------------------------
 
13
data_dir = '/home/adobbs/maus/output/'
 
14
input_root_file_name = data_dir + 'maus_output_10kspills_muplus_norecon_2014-02-25.root'
 
15
selected_spills = [1, 176, 7778] # e.g. [27, 52, 75] to use those spills only
 
16
 
 
17
#------------------------------------------
27
18
# Used by MapCppSimulation
 
19
#------------------------------------------
28
20
keep_tracks = True # set to true to keep start and end point of every track
29
 
keep_steps = False # set to true to keep start and end point of every track and
30
 
                   # every step point
31
 
simulation_geometry_filename = "Stage4.dat" # geometry used by simulation
32
 
# simulation_geometry_filename = "Stage4_NoField.dat" # geometry used by simulation
 
21
keep_steps = False # set to true to keep start and end point of every track and every step point
 
22
 
 
23
# Geometry used by simulation
 
24
# simulation_geometry_filename = "%s/files/geometry/download/ParentGeometryFile.dat" % os.environ.get("MAUS_ROOT_DIR")
 
25
simulation_geometry_filename = "Stage4.dat"
 
26
 
 
27
# Geant4 physics model
33
28
maximum_number_of_steps = 1000
34
 
simulation_reference_particle = {
35
 
    "position":{"x":0.0, "y":-0.0, "z":11000.0},
36
 
    "momentum":{"x":0.0, "y":0.0, "z":1.0},
37
 
    "particle_id":-13, "energy":226.0, "time":0.0, "random_seed":10
38
 
}
39
 
# geant4 physics model
40
29
physics_model = "QGSP_BERT" # Physics package loaded by MAUS to set default values; modifications can be made
41
30
reference_physics_processes = "mean_energy_loss" # controls the physics processes of the reference particle. Set to "none" to disable all physics processes; or "mean_energy_loss" to make the reference particle see deterministic energy loss only
42
31
physics_processes = "standard" # controls the physics processes of normal particles. Set to "none" to disable all physics processes; "mean_energy_loss" to enable deterministic energy loss only; or "standard" to enable all physics processes
43
32
particle_decay = True # set to true to activate particle decay, or False to inactivate particle decay
44
 
charged_pion_half_life = -1. # set the pi+, pi- half life [ns]. Negative value means use geant4 default
45
 
muon_half_life = -1. # set the mu+, mu- half life [ns]. Negative value means use geant4 default
46
 
production_threshold = 0.5 # set the threshold for delta ray production [mm]
47
33
 
48
 
# geant4 visualisation (not event display)
 
34
# Geant4 visualisation (not event display)
49
35
geant4_visualisation = False
50
 
visualisation_viewer = "VRML2FILE"  # only supported option
51
 
visualisation_theta = 90.
52
 
visualisation_phi = 90.
53
 
visualisation_zoom = 1.
54
36
accumulate_tracks = 1 # this accumulates the tracks into one vrml file 1 = yes, 0 = no
55
 
#particle colour alterations
56
 
default_vis_colour = {"red":0. , "green":100.  ,"blue":0.} #green
57
 
pi_plus_vis_colour = {"red":255. , "green":250.  ,"blue":240.} # white
58
 
pi_minus_vis_colour = {"red":105. , "green":105.  ,"blue":105.} # grey
59
 
mu_plus_vis_colour = {"red":25. , "green":25.  ,"blue":112.} # dark blue
60
 
mu_minus_vis_colour = {"red":135. , "green":206.  ,"blue":250.} # light blue
61
 
e_plus_vis_colour = {"red":250. , "green":0.  ,"blue":0.} # red
62
 
e_minus_vis_colour = {"red":250. , "green":69.  ,"blue":0.} # orange red
63
 
gamma_vis_colour = {"red":255. , "green":20.  ,"blue":147.} # pink
64
 
neutron_vis_colour = {"red":139. , "green":69.  ,"blue":19.} # brown
65
 
photon_vis_colour = {"red":255. , "green":255.  ,"blue":0.} # yellow
66
 
 
67
 
# used by InputPySpillGenerator to determine the number of empty spills that
68
 
# will be generated by the simulation
69
 
spill_generator_number_of_spills = 100
70
 
# used by MapPyBeamMaker to generate input particle data
71
 
# This is a sample beam distribution based on guesses by Chris Rogers of what
72
 
# an optimised beam might look like
 
37
 
 
38
#------------------------------------------
 
39
# Used by InputPySpillGenerator
 
40
#------------------------------------------
 
41
spill_generator_number_of_spills = 10
 
42
 
 
43
#------------------------------------------
 
44
# Used by MapPyBeamMaker to generate input particle data
 
45
#------------------------------------------
 
46
simulation_reference_particle = {
 
47
    "position":{"x":0.0, "y":-0.0, "z":11000.0},
 
48
    "momentum":{"x":0.0, "y":0.0, "z":1.0},
 
49
    "particle_id":-13, "energy":226.0, "time":0.0, "random_seed":10
 
50
}
 
51
# This is a sample beam disto based on guesses by C. Rogers of what an optimised beam might be like
73
52
beam = {
74
53
    "particle_generator":"binomial", # routine for generating empty primaries
75
54
    "binomial_n":1, # number of coin tosses
98
77
  ]
99
78
}
100
79
 
101
 
# this is used by reconstruction
 
80
#------------------------------------------
 
81
# Reconstruction parameters
 
82
#------------------------------------------
102
83
reconstruction_geometry_filename = simulation_geometry_filename
103
 
 
104
 
# scifi tracker digitization
105
 
#SciFiDeadChanFName = ""
106
 
SciFiMUXNum = 7
107
 
SciFiFiberDecayConst = 2.7
108
 
SciFiFiberConvFactor =  3047.1
109
 
SciFiFiberRefractiveIndex = 1.6
110
 
SciFiFiberCriticalAngle = 0.4782 # rad
111
 
SciFiFiberTrappingEff = 0.056
112
 
SciFiFiberMirrorEff = 0.6
113
 
SciFiFiberTransmissionEff = 0.8
114
 
SciFiMUXTransmissionEff = 1.0
115
 
SciFiFiberRunLength = 5000.0 # mm
116
 
SciFivlpcQE = 0.8
117
 
SciFivlpcEnergyRes = 4.0 # MeV
118
 
SciFivlpcTimeRes = 0.2 # ns
119
 
SciFiadcBits = 8
120
 
SciFiadcFactor = 6.0
121
 
SciFitdcBits = 16
122
 
SciFitdcFactor = 1.0
123
 
SciFinElecChanPerPlane = 1429
124
 
SciFinPlanes = 3
125
 
SciFinStations = 5
126
 
SciFinTrackers = 2
127
 
SciFiNPECut = 2
128
 
SciFiClustExcept = 100
129
84
SciFiPRHelicalOn = True
130
 
SciFiPRStraightOn = False
 
85
SciFiPRStraightOn = True
131
86
SciFiKalmanOn = True
132
 
 
133
 
# configuration database
134
 
cdb_upload_url = "http://cdb.mice.rl.ac.uk/cdb/" # target URL for configuration database uploads
135
 
cdb_download_url = "http://cdb.mice.rl.ac.uk/cdb/" # target URL for configuration database downloads
136
 
 
137
 
# geometry download
138
 
geometry_download_wsdl = "geometry?wsdl" # name of the web service used for downloads
139
 
geometry_download_directory   = "%s/files/geometry/download" % os.environ.get("MAUS_ROOT_DIR") # name of the local directory where downloads will be placed
140
 
geometry_download_by = 'run_number' # choose 'run_number' to download by run number, 'current' to use
141
 
                                    # the currently valid geometry or 'id' to use the cdb internal id 
142
 
                                    # (e.g. if it is desired to access an old version of a particular
143
 
                                    # geometry)
144
 
geometry_download_run_number = 0
145
 
geometry_download_id = 0
146
 
geometry_download_cleanup = True # set to True to clean up after download
147
 
 
148
 
# geometry upload
149
 
geometry_upload_wsdl = "geometrySuperMouse?wsdl" # name of the web service used for uploads
150
 
geometry_upload_directory = "%s/files/geometry/upload" % os.environ.get("MAUS_ROOT_DIR") # name of the local directory where uploads are drawn from
151
 
geometry_upload_note = "" # note, pushed to the server to describe the geometry. A note must be specified here (default will throw an exception).
152
 
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).
153
 
geometry_upload_cleanup = True # set to True to clean up after upload
154
 
 
155
 
# this is used by InputCppRealData
156
 
Number_of_DAQ_Events = -1
157
 
Phys_Events_Only = False
158
 
Calib_Events_Only = False
159
 
Enable_V1290_Unpacking = True
160
 
Enable_V1731_Unpacking = True
161
 
Enable_V1724_Unpacking = True
162
 
Enable_V830_Unpacking = True
163
 
Enable_VLSB_Unpacking = True
164
 
Enable_VLSB_C_Unpacking = True
165
 
Enable_DBB_Unpacking = True
166
 
Do_V1731_Zero_Suppression = False
167
 
V1731_Zero_Suppression_Threshold = 100
168
 
Do_V1724_Zero_Suppression = True
169
 
V1724_Zero_Suppression_Threshold = 100
170
 
Do_VLSB_Zero_Suppression = False
171
 
VLSB_Zero_Suppression_Threshold = 0
172
 
Do_VLSB_C_Zero_Suppression = False
173
 
VLSB_C_Zero_Suppression_Threshold = 0
174
 
Enable_TOF = True
175
 
Enable_EMR = True
176
 
Enable_KL = True
177
 
Enable_CKOV = True
178
 
DAQ_cabling_file = "/files/cabling/DAQChannelMap.txt"
179
 
 
180
 
daq_data_path = '%s/src/input/InputCppDAQData' % os.environ.get("MAUS_ROOT_DIR") # path to daq data. Multiple locations can be specified with a space
181
 
#daq_data_file = '02873.003' # file name for daq data; if this is just a integer string, MAUS assumes this is a run number. Multiple entries can be specified separated by a space
182
 
daq_data_file = 'gdc1901.001'
183
 
 
184
 
maus_version = "" # set at runtime - do not edit this (changes are ignored)
185
 
configuration_file = "" # should be set on the command line only (else ignored)
186
 
 
187
 
doc_store_class = "InMemoryDocumentStore.InMemoryDocumentStore"
188
 
couchdb_url = "http://localhost:5984" # Default CouchDB URL. Only needed if using CouchDBDocumentStore.
189
 
couchdb_database_name = "mausdb" # Default CouchDB database name. Only needed if using CouchDBDocumentStore.
190
 
 
191
 
mongodb_host = "localhost" # Default MongoDB host name. Only needed if using MongoDBDocumentStore.
192
 
mongodb_port = 27017 # Default MongoDB port. Only needed if using MongoDBDocumentStore.
193
 
mongodb_database_name = "mausdb" # Default MongoDB database name. Only needed if using MongoDBDocumentStore.
194
 
mongodb_collection_name = "spills" # Default MongoDB collection name. Only needed if using MongoDBDocumentStore.
 
87
SciFiPatRecVerbosity = 0 # The verbosity of the pat rec (0 - quiet, 1 - more)
 
88
SciFiStraightRoadCut = 2.0 # The road cut in pat rec for straights (mm)
 
89
SciFiStraightChi2Cut = 15.0 # Chi^2 on pat rec straight track fit
 
90
SciFiRadiusResCut = 150.0 # Helix radius cut (mm)
 
91
SciFiPatRecCircleChi2Cut = 15.0 # Chi^2 on pat rec circle fit
 
92
SciFiNTurnsCut = 0.75 # Cut used when resolving number of turns between tracker stations (mm)
 
93
SciFiPatRecSZChi2Cut = 4.0 # Chi^2 cut on pat rec s-z fit
 
94
SciFiMaxPt = 180.0 # Transverse momentum upper limit cut used in pattern recognition
 
95
SciFiMinPz = 50.0 # Longitudinal momentum lower limit cut used in pattern recognition
 
96