Difference between revisions of "Occupancy for Sector 1"
Line 125: | Line 125: | ||
=Using the Cross Section= | =Using the Cross Section= | ||
− | If we make the assumption that the beam of incoming electrons is a flux over an area, | + | If we make the assumption that the beam of incoming electrons is a flux over an area for a given time, |
− | <center><math>N_{incident}=\Phi\ A_{beam}\rightarrow dN_{incident}=\Phi\ dA_{beam}\rightarrow \frac{dN_{incident}}{ dA_{beam}}=\Phi</math></center> | + | <center><math>N_{incident}=\Phi\ A_{beam}\ t \rightarrow dN_{incident}=\Phi\ dA_{beam}\rightarrow\ t \frac{dN_{incident}}{ dA_{beam}}=\Phi\ t</math></center> |
Line 137: | Line 137: | ||
Substituting using the flux | Substituting using the flux | ||
− | <center><math> \frac{d\sigma}{d\Omega}\Biggl(\frac{dN_{incident}}{dA}\Biggr)=\Biggl(\frac{dN_{scattered}}{d\Omega} \Biggr)\rightarrow \frac{d\sigma}{d\Omega}\Phi=\Biggl(\frac{dN_{scattered}}{d\Omega} \Biggr)</math></center> | + | <center><math> \frac{d\sigma}{d\Omega}\Biggl(\frac{dN_{incident}}{dA}\Biggr)=\Biggl(\frac{dN_{scattered}}{d\Omega} \Biggr)\rightarrow \frac{d\sigma}{d\Omega}\Phi\ t=\Biggl(\frac{dN_{scattered}}{d\Omega} \Biggr)</math></center> |
− | <center><math>\rightarrow dN_{scattered}= \frac{d\sigma}{d\Omega}\Phi d\Omega= \frac{d\sigma}{d\Omega}\Phi\sin \theta\ d\theta\ d\phi</math></center> | + | <center><math>\rightarrow dN_{scattered}= \frac{d\sigma}{d\Omega}\Phi d\Omega= \frac{d\sigma}{d\Omega}\Phi\ t\ \sin \theta\ d\theta\ d\phi</math></center> |
Line 146: | Line 146: | ||
Since the differential cross section is known in the Center of Mass frame of reference, but measurements are taken in the Lab Frame, a transformation must occur. | Since the differential cross section is known in the Center of Mass frame of reference, but measurements are taken in the Lab Frame, a transformation must occur. | ||
− | <center><math>\rightarrow dN_{scattered}= \frac{d\sigma}{d\Omega_{Lab}}\Phi \sin \theta_{Lab}\ d\theta_{Lab}\ d\phi_{Lab}</math></center> | + | <center><math>\rightarrow dN_{scattered}= \frac{d\sigma}{d\Omega_{Lab}}\Phi\ t\ \sin \theta_{Lab}\ d\theta_{Lab}\ d\phi_{Lab}</math></center> |
Line 157: | Line 157: | ||
− | <center><math>\rightarrow dN_{scattered}=\frac{d\sigma}{d\Omega_{CM}}\frac{\sin \theta_{CM}\ d\theta_{CM}\ d\phi_{CM}}{\sin \theta_{Lab}\ d\theta_{Lab}\ d\phi_{Lab}}\Phi \sin \theta_{Lab}\ d\theta_{Lab}\ d\phi_{Lab}</math></center> | + | <center><math>\rightarrow dN_{scattered}=\frac{d\sigma}{d\Omega_{CM}}\frac{\sin \theta_{CM}\ d\theta_{CM}\ d\phi_{CM}}{\sin \theta_{Lab}\ d\theta_{Lab}\ d\phi_{Lab}}\Phi\ t\ \sin \theta_{Lab}\ d\theta_{Lab}\ d\phi_{Lab}</math></center> |
Line 163: | Line 163: | ||
− | <center><math>\rightarrow \frac{dN_{scattered}}{t}=\frac{d\sigma}{d\Omega_{CM}}\frac{\sin \theta_{CM}\ d\theta_{CM}\ d\phi_{CM}}{\sin \theta_{Lab}\ d\theta_{Lab}\ d\phi_{Lab}} | + | <center><math>\rightarrow \frac{dN_{scattered}}{t}=\frac{d\sigma}{d\Omega_{CM}}\frac{\sin \theta_{CM}\ d\theta_{CM}\ d\phi_{CM}}{\sin \theta_{Lab}\ d\theta_{Lab}\ d\phi_{Lab}}\Phi \sin \theta_{Lab}\ d\theta_{Lab}\ d\phi_{Lab}</math></center> |
=Occupancy= | =Occupancy= |
Revision as of 18:18, 25 April 2018
A bash script to run the GEMC simulations is created. tcsh scripts to run root2evio on lds2 is called using sshpass. The lds2 scripts use sshfs The main script on lds3:
The 3 scripts on lds2:
LUND File Output
0.1 degree spacing in the Lab frame. CM Frame is not evenly spaced.
Applying the weight
Looking at the angles and the associated weight, we can find the sums
Once_Angles_and_weight=3399.930890560805437
Total_Angles_and_weight=1023379.198058736044914
Checking with Mathematica
"Integrating" with Cosine term
Finding the Cross Section
Performing a Riemann sum for
The cross section should be equal between both frames since the number of particles is an invariant. The differential cross section must differ between frames since the solid angle does vary.
Adjust for DC Sector 1 Limits
GEMC Cross Section
Only taking GEMC hits in Sector 1 with Track ID of the mother of the FP equal to zero:
Taking GEMC hits with ANY Track ID of the mother of the FP :
Using the Cross Section
If we make the assumption that the beam of incoming electrons is a flux over an area for a given time,
Using the definition of the differential cross section:
Substituting using the flux
Since the differential cross section is known in the Center of Mass frame of reference, but measurements are taken in the Lab Frame, a transformation must occur.
If we divide both sides by time
Occupancy
LH2_NOSol_0Tor_11GeV_IsotropicPhi_v2_6_ShieldOut
Run
./BUILD_GEMC_SIMULATION.sh
Clas12Mon
Create hipo file
Move hipo file to clas12mon folder
mv LH2_NOSol_0Tor_11GeV_IsotropicPhi_v2_6_ShieldOut.hipo ~/clas12mon
Run monitor program
./README
Load hipo file
"Press H for hipo" "Press play" "Switch to
For
FOR DC Limits
Calculating