11.01.2015 Views

Geant4 Simulations for the Radon Electric Dipole Moment Search at

Geant4 Simulations for the Radon Electric Dipole Moment Search at

Geant4 Simulations for the Radon Electric Dipole Moment Search at

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3 minTheta,stepTheta,maxTheta,pops)<br />

4 Ji = abs(ji);<br />

5 Jf = abs(jf);<br />

6 Alpha2 = Alpha(2,Ji,pops);<br />

7 Alpha4 = Alpha(4,Ji,pops);<br />

8 A2max = Amax(2,Ji,L1,L2,Jf,∆);<br />

9 A4max = Amax(4,Ji,L1,L2,Jf,∆);<br />

10 A2 = Alpha2*A2max;<br />

11 A4 = Alpha4*A4max;<br />

12 sum = 0;<br />

13 <strong>the</strong>ta =minTheta:stepTheta:maxTheta;<br />

14 xy=zeros(length(<strong>the</strong>ta),2);<br />

15 <strong>for</strong> i=1:1:length(<strong>the</strong>ta)<br />

16 xy(i,1) = <strong>the</strong>ta(i);<br />

17 xy(i,2) = 1 + A2*LegendreP(2,cos(<strong>the</strong>ta(i))) +...<br />

18 A4*LegendreP(4,cos(<strong>the</strong>ta(i)));<br />

19 sum = sum + sin(<strong>the</strong>ta(i)).*xy(i,2)*stepTheta;<br />

20 end<br />

21 disp( sprintf( 'Amax%d = %d', 2,A2max ) );<br />

22 disp( sprintf( 'Amax%d = %d', 4,A4max ) );<br />

23 disp( sprintf( 'MyAlpha%d = %d', 2,Alpha2 ) );<br />

24 disp( sprintf( 'MyAlpha%d = %d', 4,Alpha4 ) );<br />

25 disp( sprintf( 'Integral = %d', sum ) );<br />

26 colors={'−+k';'−−or';':*b';'−.xk';'−sr';'−−db';':ˆk';'−.vr';'−>b'};<br />

27 plot(xy(:,1),xy(:,2),char(colors(1)))<br />

28 hold on<br />

29 set(gca,'XTick',0:pi/4:pi)<br />

30 set(gca,'XTickLabel',{'0','pi/4','pi/2','3*pi/2','pi'})<br />

31 xlabel('\<strong>the</strong>ta')<br />

32 ylabel('W')<br />

100

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!