ZDC Simulation files and documentation

The simulations consists of three files:
phiAsymmetry_Sim*.C   generates the simulated coincidence histograms.
phiAsymmetry_LinSim*.C  calculates asymmetries and generates their plots.
phibins02*.h defines the binning configuration to be used in asymmetry calculations

There are three different versions of the simulation.
Where the * in the above file name is replaced with nothing is the simulation for the detector as it is.  Where * is replaced with "Res" is a simulation being able to read out each SMD strip individually thus increasing the resolution of the coincidence histograms.  It also uses a binning configuration that only utilizes data in a circular region on the ZDC and divides it into six phi bins.  Where * is replaced with "Res2" is the same as "Res" but with ten phi bins.

To run the simulation, just have the three files for the version you want in the same directory and then execute phiAsymmetry_Sim*.C in root.  The program takes some time to run and a progress counter will tick off every 50,000 events or so. The progress counter may repeat numbers, this is not a bug just a side effect of not counting events that do not land on the detector.  When it is finished it will display a canvas with six plots on it.  The top two are the simulated 2D coincidence histograms.  The middle left is 2 histograms showing left and right binning. The middle right is the physics asymmetry vs. the sine of phi. The bottom two are the geometry asymmetry and the luminosity asymmetry both vs. phi