@@ -29,6 +29,11 @@ def drange(start, stop, step):
2929nruns = int (arguments ['-N' ])
3030nsetSingles = 200
3131detectorStr = f"{ arguments ['--geofile' ]} "
32+ experimentStr = f"{ arguments ['--expname' ]} "
33+ if (arguments ['--bonsai' ]):
34+ filetype = "reconstructed"
35+ else :
36+ filetype = "raw"
3237
3338# Reactor on/off ratio based on typical AGR-1 schedule
3439RonOff = (4 * 2 )/ 52.
@@ -81,20 +86,24 @@ def testEnabledCondition(arguments):
8186 additionalMacOpt = ""
8287
8388 # file naming
84- additionalString += "_%s" % (arguments ['--geofile ' ])
89+ additionalString += "_%s" % (arguments ['--expname ' ])
8590
8691 if (arguments ['--lightSimWater' ]):
8792 additionalString += "_lightSimWater"
8893
8994 if (arguments ['--lightSimWbLS' ]):
9095 additionalString += "_lightSimWbLS"
96+ arguments ['--detectMedia' ]= "WBLS"
97+
98+ if arguments ['--singles' ]:
99+ additionalString += "_singles"
91100
92101 # additional macro commands
93- if (arguments ['--detectMedia' ]):
102+ if (arguments ['--detectMedia' ]): #This does not work for lightSimWbLS unless detectMedia is changed
94103 additionalMacOpt += "/rat/db/set GEO[detector_veto1] material \" %s\" \n " % (arguments ['--detectMedia' ])
95104 additionalMacOpt += "/rat/db/set GEO[detector_target_gb] material \" %s\" \n " % (arguments ['--detectMedia' ])
96105 additionalMacOpt += "/rat/db/set GEO[detector_target_fv] material \" %s\" \n " % (arguments ['--detectMedia' ])
97- additionalString += "_detectorMedia_ %s" % (arguments ['--detectMedia' ])
106+ additionalString += "_ %s" % (arguments ['--detectMedia' ])
98107
99108 if (arguments ['--collectionEff' ]):
100109 additionalMacOpt += "/rat/db/set GEO[inner_pmts] efficiency_correction %f\n " % (float (arguments ['--collectionEff' ]))
0 commit comments