Difference between revisions of "DV MollerTrackRecon"

From New IAC Wiki
Jump to navigation Jump to search
 
(732 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=Moller events No Solenoid=
+
=Phi shifts=
  
LUND file with Moller events
+
==gcard==
  
 +
<pre>
 +
<gcard>
 +
 +
        <detector name="../../../../../clas12/fc/forwardCarriage" factory="TEXT$
 +
        <detector name="../../../../../clas12/dc/dc"            factory="TEXT" $
 +
        <detector name="../../../../../clas12/ec/ec"            factory="TEXT" $
 +
        <detector name="../../../../../clas12/ctof/ctof"            factory="TE$
 +
        <detector name="../../../../../clas12/ftof/ftof"            factory="TE$
 +
        <detector name="../../../../../clas12/htcc/htcc"            factory="TE$
 +
        <detector name="../../../../../clas12/pcal/pcal"            factory="TE$
 +
        <option name="BEAM_P"  value="e-, 6.0*GeV, 30.0*deg, 10*deg"/>
 +
        <option name="SPREAD_P" value="5.5*GeV, 25*deg, 180*deg"/>
 +
        <option name="SCALE_FIELD" value="clas12-torus-big, -1.0"/>
 +
        <option name="HALL_FIELD"  value="clas12-solenoid"/>
 +
        <option name="SCALE_FIELD" value="clas12-solenoid, 1.0"/>
 +
        <option name="OUTPUT" value="evio,eg12.ev"/>
 +
 +
</gcard>
 +
 +
</pre>
 +
 +
=Cross-section =
 +
[[Previous attempts]]
 +
 +
 +
==Calculations of 4-momentum components (Trial 4)==
 +
===Setup===
 +
Since we want to run for a evenly spaced energy range for Moller electrons, we will need to use some of the scattered electrons to help cover this range.  A Moller scattering data file of 1E7 events has no Moller electrons with momentum over 5500 MeV.  Since momentum is conserved, and the data is verified kinematicly verified, we cannot simply "switch" the data.  This data can be altered to have a certain number of different phi values for each energy to match the Moller cross section.  This data can then be written to a LUND file, and compared to the previous calculations which did not factor in loss of initial energy.
 +
 +
===Prepare Data===
 +
 +
Using the existing Moller scattering data from a GEANT simulation of 4E8 incident electrons, a file of just scattered momentum components can be constructed using:
  
 
<pre>
 
<pre>
<b>2      1      1      1      1      0.479184        0.00217267      4.92248 21.4844 23.8994
+
awk '{print $9, $10, $11, $16, $17, $18}' MollerScattering_NH3_Large.dat > Just_Scattered_Momentum.dat
1      -1      1      11      0      0          3.38        -3.3741 10976.0996      10976.10        0.000511        0      0      -503.387
+
</pre>
2      -1      1      11      0      0          -3.38        3.3741 22.3526    22.86        0.000511        0      0      -503.387</b>
+
 
2      1      1      1      1      0.437121        0.00238175      5.34277 21.4844 26.1992
+
===Transfer to CM Frame===
1       -1      1      11      0      0          1.47        -4.8829 10973.7998      10973.80        0.000511        0      0      -504.67
+
 
2      -1      1      11      0      0          -1.47        4.8829  25.4947    26.00        0.000511        0      0      -504.67
+
Reading in the data from the dat file, we use a C++ program to read the momentum components for the Scattered and Moller electrons into 4-momentum vectors defined as the Lab_final frame of reference.
'''2      1      1      1      1      0.553268        0.00188175      4.26933 21.4844 20.6992
+
 
1      -1      1      11      0      0          -4.64        -0.1404 10979.2998      10979.30        0.000511        0      0      -509.66
+
Performing a Lorentz boost to a Center of Mass frame for the two 4-vectors from the Lab_final frame of reference, we move to a frame where the energies are equal and the momentum are equal but opposite.
2       -1      1      11      0      0          4.64        0.1404 21.0856    21.59        0.000511        0      0      -509.66'''
+
 
2      1      1      1      1      0.384318        0.00270898      5.94122 21.4844 29.7988
+
[[Relativistic Kinematics]]
1      -1      1      11      0       0           1.17        5.1811 10970.2002      10970.20        0.000511        0      0      -500.436
+
 
2      -1      1      11      0      0          -1.17        -5.1811 27.6819    28.19        0.000511        0      0      -500.436
+
For Moller Electron energies above 500 MeV, in the Lab frame, histograms of momentum, and theta as well as a 2-D histogram of Energy vs. Theta for the Moller Electron in the CM frame will be filled.
2      1      1      1      1      0.487349        0.00213627      4.84558 21.4844 23.499
+
 
1      -1      1      11      0      0          -2.98        3.8956  10976.5000      10976.50        0.000511        0      0      -508.5
+
<center>[[File:MolEThetaCM_500.png]]</center>
2      -1      1      11      0      0          2.98        -3.8956 23.5870    24.09        0.000511        0      0      -508.5
+
 
2      1      1      1      1      0.584338        0.00178169      4.02026 21.4844 19.5986
+
Using the histogram for Theta in the CM frame, we can determine the relative number of events that occur at a given angleThis information will be used to keep the relative number of particles having the same Theta angle, but multiple Psi angles to evenly cover the detector area
1      -1      1      11      0      0          -3.27        2.9010 10980.4004      10980.40        0.000511        0      0      -506.894
+
 
2      -1      1      11      0      0          3.27        -2.9010 18.7385    19.24        0.000511        0      0      -506.894
+
===Run for Necessary Amount to match Cross Section===
'''2      1       1       1       1       0.550619        0.0018908      4.29116 21.4844 20.7988
+
<center>[[File:Combo3.png‎]]</center>
1      -1     1      11      0      0          -4.37        -0.2759 10979.2002      10979.20        0.000511        0      0      -500.844
+
 
2      -1     1      11     0      0          4.37        0.2759 18.8110    19.31        0.000511        0      0      -500.844'''
+
Using the above plot for the target material, we can find the relative amount that each Theta angle should observe for this process which gives a [[known Moller differential cross section]].
2      1      1      1       1      0.535165        0.0019454      4.42049 21.4844 21.3994
+
 
1      -1      1      11      0      0          3.31        -2.9766 10978.5996      10978.60        0.000511        0      0      -502.512
+
 
2      -1      1      11      0      0          -3.31        2.9766  19.4112    19.91        0.000511        0      0      -502.512
+
{| class="wikitable" align="center" border=1
2      1       1       1      1      0.584338        0.00178169      4.02026 21.4844 19.5986
+
|-
1      -1      1      11      0       0           1.08        4.1545  10980.4004      10980.40        0.000511        0      0      -502.061
+
! Theta (degrees)
2      -1      1      11      0      0          -1.08        -4.1545 18.0534    18.56        0.000511        0      0      -502.061
+
! Number of events
2      1      1      1      1      0.486313        0.0085633      9.57364 85.9375 94.1963
+
 
1      -1      1      11      0       0          9.00        3.5603  10905.7998      10905.80        0.000511        0      0      -501.183
+
|-
2      -1     1      11      0       0          -9.00        -3.5603 92.3877    92.89        0.000511        0       0      -501.183
+
| 90
2      1       1      1      1      0.673699        0.00309073      4.65741 42.9687 33.998
+
| 5
1       -1      1      11      0      0          -3.82        4.4640  10966.0000      10966.00        0.000511        0      0      -508.975
+
 
2      -1      1      11      0       0          3.82        -4.4640 33.9199    34.43        0.000511        0      0      -508.975
+
|-
'''2      1      1       1      1      0.432175        0.002409        5.39515 21.4844 26.499
+
| 100
1      -1     1      11      0       0           4.76        1.7006 10973.5000      10973.50        0.000511        0      0      -503.214
+
| 5
2      -1     1      11      0       0          -4.76        -1.7006 25.0967    25.60        0.000511        0      0      -503.214'''
+
 
 +
|-
 +
| 110
 +
| 6
 +
 
 +
|-
 +
| 120
 +
| 8
 +
 
 +
|-
 +
| 130
 +
| 12
 +
 
 +
|-
 +
| 135
 +
| 20
 +
 
 +
|-
 +
| 140
 +
| 28
 +
 
 +
|-
 +
| 142
 +
| 30
 +
 
 +
|-
 +
| 144
 +
| 40
 +
 
 +
|-
 +
| 146
 +
| 45
 +
 
 +
|-
 +
| 148
 +
| 55
 +
 
 +
|-
 +
| 150
 +
| 70
 +
 
 +
|-
 +
| 152
 +
| 80
 +
 
 +
|-
 +
| 154
 +
| 100
 +
|}
 +
 
 +
We can set up conditional statements to check what range the Theta angle falls in, then by dividing
 +
 
 +
<center><math>\Delta \phi=\frac {2\pi}{number\ of\ events}</math></center>
 +
 
 +
we should find the change in phi needed to give an evenly distributed distribution around the xy plane for a given Theta angle.
 +
 
 +
<center>[[File:UniformPhi.png]]</center>
 +
 
 +
===Alter Phi Angles===
 +
 
 +
From a C++ program, random Energies and Angle Theta are read from the 2-D histogram created above.  Using Relativistic kinematics for CM frame, a 4-momenta vector for the Moller electron is created. Using the properties of the CM frame, a 4-momenta vector for the scattered electron is createdUsing the relative counts for number of events at a given angle theta in the CM frame, multiple copies of the Moller CM 4-momenta vector are created. Since the rotation of the angle Phi does not alter the z or total momentum, the same paired version of the scattered electron 4-momenta vector are transfered over from the Moller.
 +
[[Altering Phi Angles]]
 +
 
 +
 
 +
Using two paired 4-momenta vectors in the CM frame, we can rotate them from the "CM-final" state to the "CM-initial" state by having the total momentum of each vector being held only in the z-component as would be expected for two colliding particles (<math>\theta = 0, \phi = 0</math>). From this, a Lorentz boost can be performed to find the 4-vectors in the Lab frame for an incoming electron or various energies striking a stationary electronWith the boost vector a second Lorentz boost can be performed from the Final CM Frame to the Final Lab Frame. In this state, the phi distribution is unaffected by the Lorentz boost (perpendicular to direction of relativistic motion), while the theta angle is transformed.  
 +
 
 +
10 separate trials were run for 10,000 events each.
 +
The histograms of Momentum, Angle Theta and Phi for the scattered and Moller electron in both the final lab frame and final CM frame were combined using:
 +
 
 +
<pre>hadd -f Total_MakeCM_4e9.root set1/MakeCM_4e9.root set2/MakeCM_4e9.root set3/MakeCM_4e9.root set4/MakeCM_4e9.root set5/MakeCM_4e9.root set6/MakeCM_4e9.root set7/MakeCM_4e9.root set8/MakeCM_4e9.root set9/MakeCM_4e9.root set10/MakeCM_4e9.root</pre>
 +
 
 +
The Phi distribution for the CM and Lab frame.
 +
 
 +
 
 +
[[File:MolPhiLab.png]][[File:MolPhiCM.png]]
 +
 
 +
 
 +
Their LUND files were combined using
 +
 
 +
<pre>cat set1/Extra_Phi.LUND set2/Extra_Phi.LUND set3/Extra_Phi.LUND set4/Extra_Phi.LUND set5/Extra_Phi.LUND set6/Extra_Phi.LUND set7/Extra_Phi.LUND set8/Extra_Phi.LUND set9/Extra_Phi.LUND set10/Extra_Phi.LUND >Total_Extra_Phi.LUND</pre>
 +
 
 +
resulting in a LUND file that was 13309755 lines in length, which equates to 4436585 entries. This was divided into 177 file parts of 75000 eachThe first set from the original data set is shown below.
 +
 
 +
<pre>split -a 4 -d -l 75000 Total_Extra_Phi.LUND Phi_Parts_</pre>
 +
 
 +
 
 +
<center>[[File:File1of177.png]]</center>
 +
 
 +
It was shown earlier that the differential cross section scale is <math>\frac{d\sigma}{d\Omega}\approx 16.2\times 10^{-2}mb=16.2\mu b</math>
 +
 
 +
For an Ammonia target:
 +
:::::<math>\rho_{target}\times l_{target}=\frac{.8 g}{1 cm^3}\times \frac{1 mole}{17 g} \times  \frac{6\times10^{23} atoms}{1 mole} \times \frac{1 cm}{ } \times \frac{10^{-24} cm^2}{barn} =2.82\times 10^{-2} barns</math>
 +
 
 +
 
 +
If the beam had 4E9 incident electrons, the differential cross-section would be found with,
 +
 
 +
:::::<math>\frac{1}{\rho_{target}\times l_{target} \times 4\times 10^9}=8.87\times 10^{-9} barns=.00887 \mu b</math>
 +
 
 +
Since extra Phi angles have been produced obviously a larger number of incident electrons would be needed. Looking at the number Moller events are created for 1E6, 1E7, and 4E9 incident electrons, we can estimate the number of incident electrons needed for the number of extra Phi angles produced.
 +
 
 +
{| border=1
 +
  |+ Moller Events per Incident Electrons
 +
|-
 +
  ! # of Incident Electrons
 +
  ! # of Moller Events
 +
  ! # of E>500MeV
 +
|-
 +
  | 1e6
 +
  | 38343
 +
  | 134
 +
|-
 +
  | 1e7
 +
  | 383633
 +
  | 1490
 +
|-
 +
  | 4e9
 +
  | 12444898
 +
  | 48548
 +
|}
 +
 
 +
 
 +
 
 +
This shows a trait of providing around 100 Moller electrons of Energy greater that 500 MeV for about 1 million incident electrons of Energy 11 GeVSince the boosting of the number of Phi angles leaves around 4431573 Moller electrons with Energy greater than 500 MeV, this would imply around 4e10 incident electrons of Energy 11 GeV.
 +
 
 +
Using the same expression, but this time for 4e10 incident electrons,
 +
 
 +
:::::<math>\frac{1}{\rho_{target}\times l_{target} \times 4\times 10^{10}}=8.87\times 10^{-10} barns=.000887 \mu b</math>
 +
 
 +
Rebining the histogram to account for the unequal weighting of the bins outlined in the table above
 +
 
 +
<pre>TH1F *Combo=new TH1F("TheoryExperiment","Theoretical and Experimental Differential Cross-Section CM Frame",360,90,180);
 +
Combo->Add(MolThetaCM,8.87e-10);
 +
Combo->Draw();
 +
Double_t Bins[16]={90,100,110,120,130,135,140,142,144,146,148,150,152,154,156,180};
 +
hnew=Combo->Rebin(15,"hnew",Bins);
 +
hnew->Draw();
 +
Theory->Draw("same");</pre>
 +
 
 +
 
 +
[[File:Extended_DiffXSect_TheoryExperiment.png]]
 +
 
 +
===Running LUND files in GEMC===
 +
 
 +
Since the LUND file is limited to 75000 lines, the gemc will have to be run in batch mode;
 +
 
 +
Creating a batch directory, with two subdirectories; 1)Phi_Parts, 2)submit.
 +
 
 +
 
 +
'''1)'''Once the LUND file is broken into 178 parts, they can have the LUND extension added by:
 +
 
 +
<pre>prename 's/(Phi_Parts_\d{4})/$1.LUND/' Phi_Parts_*</pre>
 +
 
 +
Placing each of these files into its own directory, within a directory named Phi_Parts
 +
 
 +
<pre>find . -name "*.LUND" -exec sh -c 'mkdir "${1%.*}" ; mv "$1" "${1%.*}" ' _ {} \;</pre>
 +
 
 +
 
 +
'''2)'''Creating the submit directory, and using a c++ program, creating the needed 178
 +
 
 +
<pre>#include <iomanip>
 +
#include <sstream>
 +
#include <iostream>
 +
#include <fstream>
 +
 
 +
using namespace std;
 +
 
 +
void submit() {
 +
 
 +
        for(int a=0;a<2;a++)
 +
        {
 +
                for(int b=0;b<10;b++)
 +
                {
 +
                        for(int c=0;c<10;c++)
 +
                        {
 +
                                string filename="submit0";
 +
                                stringstream hundreds;
 +
                                        hundreds << a;
 +
                                stringstream tens;
 +
                                        tens << b;
 +
                                stringstream ones;
 +
                                        ones << c;
 +
                                string fullname="";
 +
                                fullname=filename + hundreds.str() + tens.str() + ones.str();
 +
                        //              cout << fullname << "\n";
 +
                       
 +
                                ofstream myfile;
 +
                                myfile.open(fullname.c_str());
 +
                               
 +
                               
 +
                                myfile << "#!/bin/sh\n";
 +
                                myfile << "#PBS -l nodes=1\n";
 +
                                myfile << "#PBS -A FIAC\n"; 
 +
                                myfile << "#PBS -M vanwdani@isu.edu\n";
 +
                                myfile << "#PBS -m abe\n";
 +
                                myfile << "#\n";
 +
                                myfile << "cd /home/lds/src/CLAS/GEMC\n";
 +
                                myfile << "tcsh\n";
 +
                                myfile << "source setup\n";
 +
                                myfile << "cd /home/lds/src/GEANT/geant4.9.6/geant4.9.6-install/bin/geant4.sh\n";
 +
                                myfile << "cd /home/vanwdani/src/GEANT4/geant4.9.6/Simulations/Research/Moller/batch/Phi_Parts/Phi_Parts_0";
 +
                                        myfile <<a<<b<<c<<"\n";
 +
                                myfile << "gemc -USE_GUI=0 -Hall_Material=\"Vacuum\" -INPUT_GEN_FILE=\"LUND, Phi_Parts_0";
 +
                                        myfile <<a<<b<<c;
 +
                                        myfile << ".LUND\" -N=75000 eg12.gcard\n";
 +
                                myfile << "~/src/CLAS/coatjava-1.0/bin/clas12-reconstruction -i eg12.ev -config DCHB::torus=1.0 ";
 +
                                        myfile << "-config DCHB::solenoid=0.0 -config DCTB::kalman=true -o eg12_rec.ev  -s DCHB:DCTB:EC:FTOF:EB\n";
 +
                                myfile << "~/src/CLAS/coatjava-1.0/bin/rungroovy Analysis.groovy eg12_rec.0.evio\n";
 +
                               
 +
                               
 +
                                myfile.close();
 +
                        }
 +
                }
 +
        }
 +
       
 +
}</pre>
 +
 
 +
 
 +
This creates the submitXXXX file
 +
 
 +
<pre>#!/bin/sh
 +
#PBS -l nodes=1
 +
#PBS -A FIAC
 +
#PBS -M vanwdani@isu.edu
 +
#PBS -m abe
 +
#
 +
cd /home/lds/src/CLAS/GEMC
 +
tcsh
 +
source setup
 +
cd /home/lds/src/GEANT/geant4.9.6/geant4.9.6-install/bin/geant4.sh
 +
cd /home/vanwdani/src/GEANT4/geant4.9.6/Simulations/Research/Moller/batch/Phi_Parts/Phi_Parts_0000
 +
gemc -USE_GUI=0 -Hall_Material="Vacuum" -INPUT_GEN_FILE="LUND, Phi_Parts_0000.LUND" -N=75000 eg12.gcard
 +
~/src/CLAS/coatjava-1.0/bin/clas12-reconstruction -i eg12.ev -config DCHB::torus=1.0 -config DCHB::solenoid=0.0 -config DCTB::kalman=true -o eg12_rec.ev -s DCHB:DCTB:EC:FTOF:EB
 +
~/src/CLAS/coatjava-1.0/bin/rungroovy Analysis.groovy eg12_rec.0.evio
 +
 
 
</pre>
 
</pre>
Picture of GEMC using the moller event
 
  
[[File:Event1.png]][[File:Event2.png]]
 
  
[[File:Event3.png]][[File:Event4.png]]
+
Creating a file named lds-submit
  
[[File:Event5.png]][[File:Event6.png]]
+
[[File:Screen_Shot_2016-03-15_at_2.36.26_PM.png]]
  
[[File:Event7.png]][[File:Event8.png]]
+
----
 +
[[DV_MollerTrackRecon#Moller_events_No_Solenoid | Back to Recon ]]
  
[[File:Event9.png]][[File:Event10.png]]
+
==Differential Cross Section==
 +
===Variables used in Elastic Scattering===
 +
[[Variables Used in Elastic Scattering]]
  
[[File:Event11.png]][[File:Event12.png]]
+
===Scattering Cross Section===
 +
[[Scattering Cross Section]]
  
[[DV_RunGroupC_Moller#Moller_Track_Reconstruction]]
+
[[old work]]

Latest revision as of 14:54, 31 March 2016

Phi shifts

gcard

<gcard>

        <detector name="../../../../../clas12/fc/forwardCarriage" factory="TEXT$
        <detector name="../../../../../clas12/dc/dc"            factory="TEXT" $
        <detector name="../../../../../clas12/ec/ec"            factory="TEXT" $
        <detector name="../../../../../clas12/ctof/ctof"            factory="TE$
        <detector name="../../../../../clas12/ftof/ftof"            factory="TE$
        <detector name="../../../../../clas12/htcc/htcc"            factory="TE$
        <detector name="../../../../../clas12/pcal/pcal"            factory="TE$
        <option name="BEAM_P"   value="e-, 6.0*GeV, 30.0*deg, 10*deg"/>
        <option name="SPREAD_P" value="5.5*GeV, 25*deg, 180*deg"/>
        <option name="SCALE_FIELD" value="clas12-torus-big, -1.0"/>
        <option name="HALL_FIELD"  value="clas12-solenoid"/>
        <option name="SCALE_FIELD" value="clas12-solenoid, 1.0"/>
        <option name="OUTPUT" value="evio,eg12.ev"/>

</gcard>

Cross-section

Previous attempts


Calculations of 4-momentum components (Trial 4)

Setup

Since we want to run for a evenly spaced energy range for Moller electrons, we will need to use some of the scattered electrons to help cover this range. A Moller scattering data file of 1E7 events has no Moller electrons with momentum over 5500 MeV. Since momentum is conserved, and the data is verified kinematicly verified, we cannot simply "switch" the data. This data can be altered to have a certain number of different phi values for each energy to match the Moller cross section. This data can then be written to a LUND file, and compared to the previous calculations which did not factor in loss of initial energy.

Prepare Data

Using the existing Moller scattering data from a GEANT simulation of 4E8 incident electrons, a file of just scattered momentum components can be constructed using:

awk '{print $9, $10, $11, $16, $17, $18}' MollerScattering_NH3_Large.dat > Just_Scattered_Momentum.dat

Transfer to CM Frame

Reading in the data from the dat file, we use a C++ program to read the momentum components for the Scattered and Moller electrons into 4-momentum vectors defined as the Lab_final frame of reference.

Performing a Lorentz boost to a Center of Mass frame for the two 4-vectors from the Lab_final frame of reference, we move to a frame where the energies are equal and the momentum are equal but opposite.

Relativistic Kinematics

For Moller Electron energies above 500 MeV, in the Lab frame, histograms of momentum, and theta as well as a 2-D histogram of Energy vs. Theta for the Moller Electron in the CM frame will be filled.

MolEThetaCM 500.png

Using the histogram for Theta in the CM frame, we can determine the relative number of events that occur at a given angle. This information will be used to keep the relative number of particles having the same Theta angle, but multiple Psi angles to evenly cover the detector area

Run for Necessary Amount to match Cross Section

Combo3.png

Using the above plot for the target material, we can find the relative amount that each Theta angle should observe for this process which gives a known Moller differential cross section.


Theta (degrees) Number of events
90 5
100 5
110 6
120 8
130 12
135 20
140 28
142 30
144 40
146 45
148 55
150 70
152 80
154 100

We can set up conditional statements to check what range the Theta angle falls in, then by dividing

[math]\Delta \phi=\frac {2\pi}{number\ of\ events}[/math]

we should find the change in phi needed to give an evenly distributed distribution around the xy plane for a given Theta angle.

UniformPhi.png

Alter Phi Angles

From a C++ program, random Energies and Angle Theta are read from the 2-D histogram created above. Using Relativistic kinematics for CM frame, a 4-momenta vector for the Moller electron is created. Using the properties of the CM frame, a 4-momenta vector for the scattered electron is created. Using the relative counts for number of events at a given angle theta in the CM frame, multiple copies of the Moller CM 4-momenta vector are created. Since the rotation of the angle Phi does not alter the z or total momentum, the same paired version of the scattered electron 4-momenta vector are transfered over from the Moller. Altering Phi Angles


Using two paired 4-momenta vectors in the CM frame, we can rotate them from the "CM-final" state to the "CM-initial" state by having the total momentum of each vector being held only in the z-component as would be expected for two colliding particles ([math]\theta = 0, \phi = 0[/math]). From this, a Lorentz boost can be performed to find the 4-vectors in the Lab frame for an incoming electron or various energies striking a stationary electron. With the boost vector a second Lorentz boost can be performed from the Final CM Frame to the Final Lab Frame. In this state, the phi distribution is unaffected by the Lorentz boost (perpendicular to direction of relativistic motion), while the theta angle is transformed.

10 separate trials were run for 10,000 events each. The histograms of Momentum, Angle Theta and Phi for the scattered and Moller electron in both the final lab frame and final CM frame were combined using:

hadd -f Total_MakeCM_4e9.root set1/MakeCM_4e9.root set2/MakeCM_4e9.root set3/MakeCM_4e9.root set4/MakeCM_4e9.root set5/MakeCM_4e9.root set6/MakeCM_4e9.root set7/MakeCM_4e9.root set8/MakeCM_4e9.root set9/MakeCM_4e9.root set10/MakeCM_4e9.root

The Phi distribution for the CM and Lab frame.


MolPhiLab.pngMolPhiCM.png


Their LUND files were combined using

cat set1/Extra_Phi.LUND set2/Extra_Phi.LUND set3/Extra_Phi.LUND set4/Extra_Phi.LUND set5/Extra_Phi.LUND set6/Extra_Phi.LUND set7/Extra_Phi.LUND set8/Extra_Phi.LUND set9/Extra_Phi.LUND set10/Extra_Phi.LUND >Total_Extra_Phi.LUND

resulting in a LUND file that was 13309755 lines in length, which equates to 4436585 entries. This was divided into 177 file parts of 75000 each. The first set from the original data set is shown below.

split -a 4 -d -l 75000 Total_Extra_Phi.LUND Phi_Parts_


File1of177.png

It was shown earlier that the differential cross section scale is [math]\frac{d\sigma}{d\Omega}\approx 16.2\times 10^{-2}mb=16.2\mu b[/math]

For an Ammonia target:

[math]\rho_{target}\times l_{target}=\frac{.8 g}{1 cm^3}\times \frac{1 mole}{17 g} \times \frac{6\times10^{23} atoms}{1 mole} \times \frac{1 cm}{ } \times \frac{10^{-24} cm^2}{barn} =2.82\times 10^{-2} barns[/math]


If the beam had 4E9 incident electrons, the differential cross-section would be found with,

[math]\frac{1}{\rho_{target}\times l_{target} \times 4\times 10^9}=8.87\times 10^{-9} barns=.00887 \mu b[/math]

Since extra Phi angles have been produced obviously a larger number of incident electrons would be needed. Looking at the number Moller events are created for 1E6, 1E7, and 4E9 incident electrons, we can estimate the number of incident electrons needed for the number of extra Phi angles produced.

Moller Events per Incident Electrons
# of Incident Electrons # of Moller Events # of E>500MeV
1e6 38343 134
1e7 383633 1490
4e9 12444898 48548


This shows a trait of providing around 100 Moller electrons of Energy greater that 500 MeV for about 1 million incident electrons of Energy 11 GeV. Since the boosting of the number of Phi angles leaves around 4431573 Moller electrons with Energy greater than 500 MeV, this would imply around 4e10 incident electrons of Energy 11 GeV.

Using the same expression, but this time for 4e10 incident electrons,

[math]\frac{1}{\rho_{target}\times l_{target} \times 4\times 10^{10}}=8.87\times 10^{-10} barns=.000887 \mu b[/math]

Rebining the histogram to account for the unequal weighting of the bins outlined in the table above

TH1F *Combo=new TH1F("TheoryExperiment","Theoretical and Experimental Differential Cross-Section CM Frame",360,90,180);
Combo->Add(MolThetaCM,8.87e-10);
Combo->Draw();
Double_t Bins[16]={90,100,110,120,130,135,140,142,144,146,148,150,152,154,156,180};
hnew=Combo->Rebin(15,"hnew",Bins);
hnew->Draw();
Theory->Draw("same");


Extended DiffXSect TheoryExperiment.png

Running LUND files in GEMC

Since the LUND file is limited to 75000 lines, the gemc will have to be run in batch mode;

Creating a batch directory, with two subdirectories; 1)Phi_Parts, 2)submit.


1)Once the LUND file is broken into 178 parts, they can have the LUND extension added by:

prename 's/(Phi_Parts_\d{4})/$1.LUND/' Phi_Parts_*

Placing each of these files into its own directory, within a directory named Phi_Parts

find . -name "*.LUND" -exec sh -c 'mkdir "${1%.*}" ; mv "$1" "${1%.*}" ' _ {} \;


2)Creating the submit directory, and using a c++ program, creating the needed 178

#include <iomanip>
#include <sstream>
#include <iostream>
#include <fstream>

using namespace std;

void submit() {

        for(int a=0;a<2;a++)
        {
                for(int b=0;b<10;b++)
                {
                        for(int c=0;c<10;c++)
                        {
                                string filename="submit0";
                                stringstream hundreds;
                                        hundreds << a;
                                stringstream tens;
                                        tens << b;
                                stringstream ones;
                                        ones << c;
                                string fullname="";
                                fullname=filename + hundreds.str() + tens.str() + ones.str();
                        //              cout << fullname << "\n";
                        
                                ofstream myfile;
                                myfile.open(fullname.c_str());
                                
                                
                                myfile << "#!/bin/sh\n";
                                myfile << "#PBS -l nodes=1\n";
                                myfile << "#PBS -A FIAC\n";   
                                myfile << "#PBS -M vanwdani@isu.edu\n";
                                myfile << "#PBS -m abe\n";
                                myfile << "#\n";
                                myfile << "cd /home/lds/src/CLAS/GEMC\n";
                                myfile << "tcsh\n";
                                myfile << "source setup\n";
                                myfile << "cd /home/lds/src/GEANT/geant4.9.6/geant4.9.6-install/bin/geant4.sh\n";
                                myfile << "cd /home/vanwdani/src/GEANT4/geant4.9.6/Simulations/Research/Moller/batch/Phi_Parts/Phi_Parts_0";
                                        myfile <<a<<b<<c<<"\n";
                                myfile << "gemc -USE_GUI=0 -Hall_Material=\"Vacuum\" -INPUT_GEN_FILE=\"LUND, Phi_Parts_0";
                                        myfile <<a<<b<<c;
                                        myfile << ".LUND\" -N=75000 eg12.gcard\n";
                                myfile << "~/src/CLAS/coatjava-1.0/bin/clas12-reconstruction -i eg12.ev -config DCHB::torus=1.0 ";
                                        myfile << "-config DCHB::solenoid=0.0 -config DCTB::kalman=true -o eg12_rec.ev  -s DCHB:DCTB:EC:FTOF:EB\n";
                                myfile << "~/src/CLAS/coatjava-1.0/bin/rungroovy Analysis.groovy eg12_rec.0.evio\n";
                                
                                
                                myfile.close();
                        }
                }
        }
         
}


This creates the submitXXXX file

#!/bin/sh
#PBS -l nodes=1
#PBS -A FIAC
#PBS -M vanwdani@isu.edu
#PBS -m abe
#
cd /home/lds/src/CLAS/GEMC
tcsh
source setup
cd /home/lds/src/GEANT/geant4.9.6/geant4.9.6-install/bin/geant4.sh
cd /home/vanwdani/src/GEANT4/geant4.9.6/Simulations/Research/Moller/batch/Phi_Parts/Phi_Parts_0000
gemc -USE_GUI=0 -Hall_Material="Vacuum" -INPUT_GEN_FILE="LUND, Phi_Parts_0000.LUND" -N=75000 eg12.gcard
~/src/CLAS/coatjava-1.0/bin/clas12-reconstruction -i eg12.ev -config DCHB::torus=1.0 -config DCHB::solenoid=0.0 -config DCTB::kalman=true -o eg12_rec.ev  -s DCHB:DCTB:EC:FTOF:EB
~/src/CLAS/coatjava-1.0/bin/rungroovy Analysis.groovy eg12_rec.0.evio


Creating a file named lds-submit

Screen Shot 2016-03-15 at 2.36.26 PM.png


Back to Recon

Differential Cross Section

Variables used in Elastic Scattering

Variables Used in Elastic Scattering

Scattering Cross Section

Scattering Cross Section

old work