type_of_dataflow = 'pipeline_single_thread'

input_root_file_name = "maus_input.root"
output_root_file_name = "maus_output1.root"


header_and_footer_mode = "dont_append" #append or dont_append

# Used by MapPyRemoveTracks.
keep_only_muon_tracks = True

# Used by MapCppSimulation
keep_tracks = False # set to true to keep start and end point of every track
keep_steps = False # set to true to keep start and end point of every track and
                   # every step point
simulation_geometry_filename = "HelicalTest_tracker0.dat"

simulation_reference_particle = { # used for setting particle phase
    "position":{"x":0.0, "y":-0.0, "z":-1990.0},
    "momentum":{"x":0.0, "y":0.0, "z":1.0},
    "particle_id":-13, "energy":226.0, "time":0.0, "random_seed":10
}

# geant4 physics model
physics_model = "QGSP_BERT" # Physics package loaded by MAUS to set default values; modifications can be made
reference_physics_processes = "none" # "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
physics_processes = "none" #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
particle_decay = False # set to true to activate particle decay, or False to inactivate particle decay

spill_generator_number_of_spills = 10

beam = {
    "particle_generator":"binomial", # routine for generating empty primaries
    "binomial_n":2, # number of coin tosses
    "binomial_p": 1, # probability of making a particle on each toss
    "random_seed":1, # random seed for beam generation; controls also how the MC
                     # seeds are generated
    "definitions":[
    ##### MUONS #######
    {
       "reference":simulation_reference_particle, # reference particle
       "random_seed_algorithm":"incrementing_random", # algorithm for seeding MC
       "weight":100., # probability of generating a particle
       "transverse":{
          "transverse_mode":"constant_solenoid", # transverse distribution matched to constant solenoid field
          "emittance_4d":8., # 4d emittance
          "normalised_angular_momentum":0.1, # angular momentum from diffuser
          "bz":4.e-3 # magnetic field strength for angular momentum calculation
       },
       "longitudinal":{"longitudinal_mode":"sawtooth_time", # longitudinal distribution sawtooth in time
                   "momentum_variable":"p", # Gaussian in total momentum (options energy, pz)
                   "sigma_p":25., # RMS total momentum
                   "t_start":-1.e6, # start time of sawtooth
                   "t_end":+1.e6}, # end time of sawtooth
       "coupling":{"coupling_mode":"none"} # no dispersion
    }]
}

reconstruction_geometry_filename = ""

SciFiPRHelicalOn = False
SciFiPRStraightOn = True

SciFiSeedCovariance = 1000 # Error estimate for Seed values of the Kalman Fit
SciFiKalmanOn = True # Flag to turn on the tracker Kalman Fit
SciFiKalman_use_MCS = False # flag to add MCS to the Kalman Fit
SciFiKalman_use_Eloss = False # flag to add Eloss to the Kalman Fit
SciFiUpdateMisalignments = False # Do Misalignment Search & Update
SciFiKalmanVerbose  = False # Dump information per fitted track
