Warning, /analysis/ZDCNeutronLocPol/README.md is written in an unsupported language. File is not indexed.
0001 This module calculates the raw square root asymmetries of forward neutrons in the ZDC/SMD.
0002
0003 **Running standalone:**
0004 1) `cd macros/`
0005 2) `root.exe`
0006 3) `.x Fun4All_ZDCNeutronLocPol.C(<DST_file>,<output_file>,<startEvent>,<nEvents>)`
0007
0008 `<DST_file>`: use a raw triggered DST found in _/sphenix/lustre01/sphnxpro/commissioning/slurp/calophysics/_ or _/sphenix/lustre01/sphnxpro/physics/slurp/calophysics/_
0009 `<output_file>`: output root file that contains SMD hit trees
0010 `<startEvent>`: Event to start Fun4All at, default: 0
0011 `<nEvents>`: Number of events Fun4All will run over, default: 10000
0012
0013 **Running with condor:**
0014 To detect a percent level asymmetry it becomes necessary to run over greater than 10^7 events. Each segment of the automatically produced DSTs contain 10000 events so we can utilize condor to speed up our workflow.
0015
0016 1) `cd macros/`
0017 2) In run_smd.sh, ensure that condor=true and fullrun=true
0018 3) In run_smd.sh, set fname to the input DST with %04d where the segment number would be e.g. _"DST_TRIGGERED_EVENT_run2pp_new_2024p001-00042797-%04d.root"_
0019 4) Ensure that the directory in ofname1 exists
0020 5) In runsmd.job, change Initialdir to your directory
0021 5) In runsmd.job, set Queue <number_of_jobs>, default <number_of_jobs> = 500 (do not do too many more than this at one time)
0022 6) `condor_submit runsmd.job`
0023
0024 **Square root asymmetries:**
0025 Once you have your trees produced, the raw square root asymmetries are calculated and drawn by:
0026 1) `root.exe`
0027 2) `.x drawAsym.C(<tree_file>,<storenumber>,<runnumber>)`
0028
0029 `<tree_file>`: root output file from Fun4All containing SMD hit trees
0030 `<storenumber>`: store number, default: 34485
0031 `<runnumber>`: run number, default: 42796
0032
0033
0034 **Example results:**
0035 The asymmetries of Runs 42796+42797 from store 34485 can be seen in `macros/output`