# File: LaserballSource.mac # Date: 2018/02/15 # Contact: Ana Inacio # # Example macro to be run with a specified event number and laserball run number /rat/physics_list/OmitMuonicProcesses true /rat/physics_list/OmitHadronicProcesses true /rat/db/set DETECTOR geo_file "geo/snoplus_water.geo" # Simulate noise using per-pmt rates: /rat/db/set NOISE_MC noise_flag 2 # Read the per-pmt noise rates from the NOISE_RUN_INTEGRATED table: /rat/db/set NOISE_MC integ_noise_flag 1 /rat/db/set DAQ perfect_trigger 1 # Input for the SOC file /rat/db/set LASERBALL_SIMULATION simulation_mode 2 # Load laserball parameters from ratdb /rat/db/set LASERBALL_SIMULATION intensity 9000 /rat/db/set LASERBALL_SIMULATION lb_id "AUG06" /rat/db/set LASERBALL_SIMULATION angle_mode "SINCOEF" /run/initialize ########## EVENT LOOP ############ /rat/proc frontend /rat/proc trigger /rat/proc eventbuilder /rat/proc calibratePMT #/rat/proc triggerEfficiency /rat/proc/if trigTypeSelector /rat/procset trigType "EXTASY" /rat/proc socdata /rat/proc/endif /rat/proc socpeakfind /rat/proc socfitter /rat/procset method "socPositionTimeChiSquared" /rat/procset optimiser "minuit" /rat/procset selector "null" /rat/procset name "lbfit" /rat/proc outsoc ########## EVENT LOOP ############ # Choose the Laserball generator from fixed point, uniform in time /generator/add combo vertexlaserball:poslaserball:uniform /generator/rate/set 100 /rat/run/start exit