<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=OhieMayenin</id>
	<title>PBTWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=OhieMayenin"/>
	<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/wiki/Special:Contributions/OhieMayenin"/>
	<updated>2026-04-06T10:01:14Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2351</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2351"/>
		<updated>2019-03-13T17:42:48Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* Plotting Phase Space */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Learn CAD conversion/import method, which is currently understood to be STEP to GDML conversion using python script - send Stewart STEP files.&lt;br /&gt;
* Run the new version of the simulations provided by Jacinta.&lt;br /&gt;
* Import different versions of the CAD model into BDSIM to test each new component.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
==== Term 1 ====&lt;br /&gt;
&lt;br /&gt;
* Background theory reading.&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Partially ran Geant4 simulation of CCC by Matthieu.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
&lt;br /&gt;
==== Term 2 ====&lt;br /&gt;
&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
* Created troubleshooting log and added more detail on fixing issues.&lt;br /&gt;
* Verified new dose monitor version and scheduled Clatterbridge visit.&lt;br /&gt;
* Modified CAD model to include updated physical measurements sent by Jacinta.&lt;br /&gt;
* Obtained and visualised CCC BDSIM gmad files sent by Jacinta.&lt;br /&gt;
* Performed optical analysis and tracking visualisation on CCC BDSIM simulation.&lt;br /&gt;
* Visited Clatterbridge and took various measurements, including of the dose monitor enclosure.&lt;br /&gt;
* Added updated dose monitors with enclosures and aluminium collimator to beamline model.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log and Useful Information ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up BDSIM envrionment ===&lt;br /&gt;
&lt;br /&gt;
* Initially ran the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim, giving a runtime error every time a pybdsim function is executed. The error I received was as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;h = _ROOT.Header()&lt;br /&gt;
RuntimeError:Header::Header()&lt;br /&gt;
could not resolve ::()&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
I fixed this issue by instead running the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim runtime error issues.&lt;br /&gt;
&lt;br /&gt;
=== X11 Forwarding via SSH ===&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster from a Windows machine, X11 forwarding was not enabled. This meant that any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
PuTTY for Windows was easily installed from the web. Exceed was installable from the UCL Software Database. &lt;br /&gt;
&lt;br /&gt;
The Exceed client must be opened before starting an ssh session via PuTTY. Once Exceed is open, open PuTTY and go to the SSH tab. Then, under the Auth tab, click on X11, and check the box &amp;quot;Enable X11 forwarding.&amp;quot; Then, navigate back to the session tab and connect to plus1 by writing plus1.hep.ucl.ac.uk. A PuTTY terminal window will then open allowing you to input username and password as usual.&lt;br /&gt;
&lt;br /&gt;
=== BDSIM Visualiser using OpenGL ===&lt;br /&gt;
&lt;br /&gt;
* Even after fixing this X11 issues, the BDSIM visualiser which renders the geometry in the BDSIM GUI was not working correctly, showing a static black screen. To fix this, I installed the Exceed extension Exceed 3D, also available from the UCL Software Database, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Plotting with Pybdsim ===&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots did not pop up in a graphical window when generated, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once can also use pyplot.savefig() to save these figures, as some pybdsim plot functions do not have any outputsavefile arguments.&lt;br /&gt;
&lt;br /&gt;
=== Plotting Phase Space ===&lt;br /&gt;
&lt;br /&gt;
Laurie on how to overcome pybdsim bug when plotting beam phase space:&lt;br /&gt;
&lt;br /&gt;
There&#039;s a bug in our Python where we passed the wrong argument not as a keyword argument but just as the 2nd order and this results in the string &#039;output&#039; being used for binning, which it can&#039;t do.  This is fixed now for the next version of pybdsim.  &lt;br /&gt;
&lt;br /&gt;
In the mean time, you can get around this with:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import pybdsim&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; d = pybdsim.Data.Load(&amp;quot;haloprimaries.root&amp;quot;)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; phaseSpaceData = pybdsim.Data.PhaseSpaceData(d)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; pybdsim.Plot.PhaseSpace(phaseSpaceData, outputfilename=&#039;output&#039;)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== BDSIM Optical Analysis and Event Visualisation ===&lt;br /&gt;
&lt;br /&gt;
* Optical analysis allows us to compare the twiss parameters for horizontal and vertical beam components between BDSIM and MAD-x.&lt;br /&gt;
* We start with gmad files containing the bdsim simulations and a tfs file containing the MAD-x beamline of magnetic components.&lt;br /&gt;
&lt;br /&gt;
First, run the simulation in batch mode with N primaries to produce the output output.root:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ bdsim --file=input.gmad --ngenerate=N --outfile=output&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* On the output file, we can use rebdsim to produce new ROOT files that contain histograms and optical data. For example, to merge events into bins in order to generate histograms, we write the following to produce histograms.root:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ rebdsimHistoMerge output.root histograms.root&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The output histograms.root can be opened in a ROOT TBrowser in order to view the histograms, or the histograms can be plotted using pybdsim, and then displayed or saved using matplotlib.pyplot.&lt;br /&gt;
&lt;br /&gt;
* To run the rebdsim optical analysis, we write the following to produce optics.root:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ rebdsimOptics output.root optics.root&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* We can then use pybsdim on the output file optics.root and the .tfs file containing the MAD-x beam line to create a series of plots comparing the beam size and twiss functions along with a machine diagram of the magnetic beamline, by using the following pybdsim function:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; pybdsim.Compare.MadxVsBDSIM(&#039;beamline.tfs&#039;, &#039;optics.root&#039;)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Once the optical analysis is done, we can try to visualise some of the events in the BDSIM GUI, by opening the simulation without the batch mode flag:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ bdsim --file=input.gmad --outfile=data&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Then, in the BDSIM command line, we write &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;/run/beamOn 10&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which produces 10 events whose tracks are rendered in the GUI OpenGL display.&lt;br /&gt;
&lt;br /&gt;
* No more than ~100 events will be displayed at once due to memory constraints.&lt;br /&gt;
&lt;br /&gt;
* If a large simulation has been carried out in batch mode already, one can &#039;recreate&#039; this in order to visualise a particular event in the BDSIM GUI, by writing the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ bdsim --file=mymodel.gmad --outfile=data --recreate=originaldatafile.root -startFromEvent=5&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Then, in the BDSIM command line, we can write&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;/run/beamOn 1&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
to render one event.&lt;br /&gt;
&lt;br /&gt;
=== Twiss Parameters and Tfs Diagrams ===&lt;br /&gt;
&lt;br /&gt;
* The tfs machine diagram depicts quadrupoles using the following key:&lt;br /&gt;
&lt;br /&gt;
Above line - Horizontal  focusing, vertical defocusing&lt;br /&gt;
&lt;br /&gt;
Below line - Horizontal defocusing, vertical focusing&lt;br /&gt;
&lt;br /&gt;
* The plots produced by rebdsim plot twiss parameters to describe the evolution of the beam. These parameters are based on MAD-X (Methodical Accelerator Design), which is a general-purpose tool for charged-particle optics design and is used in the study of beam lines. MAD-X succeeded MAD-8 and was specifically adapted to the needs of the LHC.&lt;br /&gt;
&lt;br /&gt;
* Twiss parameter definitions:&lt;br /&gt;
&lt;br /&gt;
Beta - beam size and reciprocal divergence &lt;br /&gt;
&lt;br /&gt;
Alpha - negative gradient of beta&lt;br /&gt;
&lt;br /&gt;
D_{x,y} - (assumption) position dispersion&lt;br /&gt;
&lt;br /&gt;
D_{p_x,p_y} - (assumption) momentum dispersion&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2350</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2350"/>
		<updated>2019-03-13T17:42:12Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* Plotting Phase Space */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Learn CAD conversion/import method, which is currently understood to be STEP to GDML conversion using python script - send Stewart STEP files.&lt;br /&gt;
* Run the new version of the simulations provided by Jacinta.&lt;br /&gt;
* Import different versions of the CAD model into BDSIM to test each new component.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
==== Term 1 ====&lt;br /&gt;
&lt;br /&gt;
* Background theory reading.&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Partially ran Geant4 simulation of CCC by Matthieu.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
&lt;br /&gt;
==== Term 2 ====&lt;br /&gt;
&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
* Created troubleshooting log and added more detail on fixing issues.&lt;br /&gt;
* Verified new dose monitor version and scheduled Clatterbridge visit.&lt;br /&gt;
* Modified CAD model to include updated physical measurements sent by Jacinta.&lt;br /&gt;
* Obtained and visualised CCC BDSIM gmad files sent by Jacinta.&lt;br /&gt;
* Performed optical analysis and tracking visualisation on CCC BDSIM simulation.&lt;br /&gt;
* Visited Clatterbridge and took various measurements, including of the dose monitor enclosure.&lt;br /&gt;
* Added updated dose monitors with enclosures and aluminium collimator to beamline model.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log and Useful Information ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up BDSIM envrionment ===&lt;br /&gt;
&lt;br /&gt;
* Initially ran the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim, giving a runtime error every time a pybdsim function is executed. The error I received was as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;h = _ROOT.Header()&lt;br /&gt;
RuntimeError:Header::Header()&lt;br /&gt;
could not resolve ::()&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
I fixed this issue by instead running the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim runtime error issues.&lt;br /&gt;
&lt;br /&gt;
=== X11 Forwarding via SSH ===&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster from a Windows machine, X11 forwarding was not enabled. This meant that any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
PuTTY for Windows was easily installed from the web. Exceed was installable from the UCL Software Database. &lt;br /&gt;
&lt;br /&gt;
The Exceed client must be opened before starting an ssh session via PuTTY. Once Exceed is open, open PuTTY and go to the SSH tab. Then, under the Auth tab, click on X11, and check the box &amp;quot;Enable X11 forwarding.&amp;quot; Then, navigate back to the session tab and connect to plus1 by writing plus1.hep.ucl.ac.uk. A PuTTY terminal window will then open allowing you to input username and password as usual.&lt;br /&gt;
&lt;br /&gt;
=== BDSIM Visualiser using OpenGL ===&lt;br /&gt;
&lt;br /&gt;
* Even after fixing this X11 issues, the BDSIM visualiser which renders the geometry in the BDSIM GUI was not working correctly, showing a static black screen. To fix this, I installed the Exceed extension Exceed 3D, also available from the UCL Software Database, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Plotting with Pybdsim ===&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots did not pop up in a graphical window when generated, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once can also use pyplot.savefig() to save these figures, as some pybdsim plot functions do not have any outputsavefile arguments.&lt;br /&gt;
&lt;br /&gt;
=== Plotting Phase Space ===&lt;br /&gt;
&lt;br /&gt;
Laurie on how to overcome pybdsim bug when plotting beam phase space:&lt;br /&gt;
&lt;br /&gt;
There&#039;s a bug in our Python where we passed the wrong argument not as a keyword argument but just as the 2nd order and this results in the string &#039;output&#039; being used for binning, which it can&#039;t do.  This is fixed now for the next version of pybdsim.  &lt;br /&gt;
&lt;br /&gt;
In the mean time, you can get around this with:&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; import pybdsim&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; d = pybdsim.Data.Load(&amp;quot;haloprimaries.root&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; phaseSpaceData = pybdsim.Data.PhaseSpaceData(d)&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; pybdsim.Plot.PhaseSpace(phaseSpaceData, outputfilename=&#039;output&#039;)&lt;br /&gt;
&lt;br /&gt;
=== BDSIM Optical Analysis and Event Visualisation ===&lt;br /&gt;
&lt;br /&gt;
* Optical analysis allows us to compare the twiss parameters for horizontal and vertical beam components between BDSIM and MAD-x.&lt;br /&gt;
* We start with gmad files containing the bdsim simulations and a tfs file containing the MAD-x beamline of magnetic components.&lt;br /&gt;
&lt;br /&gt;
First, run the simulation in batch mode with N primaries to produce the output output.root:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ bdsim --file=input.gmad --ngenerate=N --outfile=output&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* On the output file, we can use rebdsim to produce new ROOT files that contain histograms and optical data. For example, to merge events into bins in order to generate histograms, we write the following to produce histograms.root:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ rebdsimHistoMerge output.root histograms.root&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The output histograms.root can be opened in a ROOT TBrowser in order to view the histograms, or the histograms can be plotted using pybdsim, and then displayed or saved using matplotlib.pyplot.&lt;br /&gt;
&lt;br /&gt;
* To run the rebdsim optical analysis, we write the following to produce optics.root:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ rebdsimOptics output.root optics.root&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* We can then use pybsdim on the output file optics.root and the .tfs file containing the MAD-x beam line to create a series of plots comparing the beam size and twiss functions along with a machine diagram of the magnetic beamline, by using the following pybdsim function:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; pybdsim.Compare.MadxVsBDSIM(&#039;beamline.tfs&#039;, &#039;optics.root&#039;)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Once the optical analysis is done, we can try to visualise some of the events in the BDSIM GUI, by opening the simulation without the batch mode flag:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ bdsim --file=input.gmad --outfile=data&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Then, in the BDSIM command line, we write &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;/run/beamOn 10&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which produces 10 events whose tracks are rendered in the GUI OpenGL display.&lt;br /&gt;
&lt;br /&gt;
* No more than ~100 events will be displayed at once due to memory constraints.&lt;br /&gt;
&lt;br /&gt;
* If a large simulation has been carried out in batch mode already, one can &#039;recreate&#039; this in order to visualise a particular event in the BDSIM GUI, by writing the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ bdsim --file=mymodel.gmad --outfile=data --recreate=originaldatafile.root -startFromEvent=5&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Then, in the BDSIM command line, we can write&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;/run/beamOn 1&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
to render one event.&lt;br /&gt;
&lt;br /&gt;
=== Twiss Parameters and Tfs Diagrams ===&lt;br /&gt;
&lt;br /&gt;
* The tfs machine diagram depicts quadrupoles using the following key:&lt;br /&gt;
&lt;br /&gt;
Above line - Horizontal  focusing, vertical defocusing&lt;br /&gt;
&lt;br /&gt;
Below line - Horizontal defocusing, vertical focusing&lt;br /&gt;
&lt;br /&gt;
* The plots produced by rebdsim plot twiss parameters to describe the evolution of the beam. These parameters are based on MAD-X (Methodical Accelerator Design), which is a general-purpose tool for charged-particle optics design and is used in the study of beam lines. MAD-X succeeded MAD-8 and was specifically adapted to the needs of the LHC.&lt;br /&gt;
&lt;br /&gt;
* Twiss parameter definitions:&lt;br /&gt;
&lt;br /&gt;
Beta - beam size and reciprocal divergence &lt;br /&gt;
&lt;br /&gt;
Alpha - negative gradient of beta&lt;br /&gt;
&lt;br /&gt;
D_{x,y} - (assumption) position dispersion&lt;br /&gt;
&lt;br /&gt;
D_{p_x,p_y} - (assumption) momentum dispersion&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2349</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2349"/>
		<updated>2019-03-13T17:41:32Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* Plotting with Pybdsim */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Learn CAD conversion/import method, which is currently understood to be STEP to GDML conversion using python script - send Stewart STEP files.&lt;br /&gt;
* Run the new version of the simulations provided by Jacinta.&lt;br /&gt;
* Import different versions of the CAD model into BDSIM to test each new component.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
==== Term 1 ====&lt;br /&gt;
&lt;br /&gt;
* Background theory reading.&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Partially ran Geant4 simulation of CCC by Matthieu.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
&lt;br /&gt;
==== Term 2 ====&lt;br /&gt;
&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
* Created troubleshooting log and added more detail on fixing issues.&lt;br /&gt;
* Verified new dose monitor version and scheduled Clatterbridge visit.&lt;br /&gt;
* Modified CAD model to include updated physical measurements sent by Jacinta.&lt;br /&gt;
* Obtained and visualised CCC BDSIM gmad files sent by Jacinta.&lt;br /&gt;
* Performed optical analysis and tracking visualisation on CCC BDSIM simulation.&lt;br /&gt;
* Visited Clatterbridge and took various measurements, including of the dose monitor enclosure.&lt;br /&gt;
* Added updated dose monitors with enclosures and aluminium collimator to beamline model.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log and Useful Information ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up BDSIM envrionment ===&lt;br /&gt;
&lt;br /&gt;
* Initially ran the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim, giving a runtime error every time a pybdsim function is executed. The error I received was as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;h = _ROOT.Header()&lt;br /&gt;
RuntimeError:Header::Header()&lt;br /&gt;
could not resolve ::()&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
I fixed this issue by instead running the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim runtime error issues.&lt;br /&gt;
&lt;br /&gt;
=== X11 Forwarding via SSH ===&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster from a Windows machine, X11 forwarding was not enabled. This meant that any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
PuTTY for Windows was easily installed from the web. Exceed was installable from the UCL Software Database. &lt;br /&gt;
&lt;br /&gt;
The Exceed client must be opened before starting an ssh session via PuTTY. Once Exceed is open, open PuTTY and go to the SSH tab. Then, under the Auth tab, click on X11, and check the box &amp;quot;Enable X11 forwarding.&amp;quot; Then, navigate back to the session tab and connect to plus1 by writing plus1.hep.ucl.ac.uk. A PuTTY terminal window will then open allowing you to input username and password as usual.&lt;br /&gt;
&lt;br /&gt;
=== BDSIM Visualiser using OpenGL ===&lt;br /&gt;
&lt;br /&gt;
* Even after fixing this X11 issues, the BDSIM visualiser which renders the geometry in the BDSIM GUI was not working correctly, showing a static black screen. To fix this, I installed the Exceed extension Exceed 3D, also available from the UCL Software Database, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Plotting with Pybdsim ===&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots did not pop up in a graphical window when generated, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once can also use pyplot.savefig() to save these figures, as some pybdsim plot functions do not have any outputsavefile arguments.&lt;br /&gt;
&lt;br /&gt;
=== Plotting Phase Space ===&lt;br /&gt;
&lt;br /&gt;
Laurie on how to overcome pybdsim bug when plotting beam phase space:&lt;br /&gt;
&lt;br /&gt;
There&#039;s a bug in our Python where we passed the wrong argument not as a keyword argument but just as the 2nd order and this results in the string &#039;output&#039; being used for binning, which it can&#039;t do.  This is fixed now for the next version of pybdsim.  &lt;br /&gt;
&lt;br /&gt;
In the mean time, you can get around this with:&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; import pybdsim&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; d = pybdsim.Data.Load(&amp;quot;haloprimaries.root&amp;quot;)&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; phaseSpaceData = pybdsim.Data.PhaseSpaceData(d)&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; pybdsim.Plot.PhaseSpace(phaseSpaceData, outputfilename=&#039;output&#039;)&lt;br /&gt;
&lt;br /&gt;
=== BDSIM Optical Analysis and Event Visualisation ===&lt;br /&gt;
&lt;br /&gt;
* Optical analysis allows us to compare the twiss parameters for horizontal and vertical beam components between BDSIM and MAD-x.&lt;br /&gt;
* We start with gmad files containing the bdsim simulations and a tfs file containing the MAD-x beamline of magnetic components.&lt;br /&gt;
&lt;br /&gt;
First, run the simulation in batch mode with N primaries to produce the output output.root:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ bdsim --file=input.gmad --ngenerate=N --outfile=output&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* On the output file, we can use rebdsim to produce new ROOT files that contain histograms and optical data. For example, to merge events into bins in order to generate histograms, we write the following to produce histograms.root:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ rebdsimHistoMerge output.root histograms.root&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The output histograms.root can be opened in a ROOT TBrowser in order to view the histograms, or the histograms can be plotted using pybdsim, and then displayed or saved using matplotlib.pyplot.&lt;br /&gt;
&lt;br /&gt;
* To run the rebdsim optical analysis, we write the following to produce optics.root:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ rebdsimOptics output.root optics.root&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* We can then use pybsdim on the output file optics.root and the .tfs file containing the MAD-x beam line to create a series of plots comparing the beam size and twiss functions along with a machine diagram of the magnetic beamline, by using the following pybdsim function:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; pybdsim.Compare.MadxVsBDSIM(&#039;beamline.tfs&#039;, &#039;optics.root&#039;)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Once the optical analysis is done, we can try to visualise some of the events in the BDSIM GUI, by opening the simulation without the batch mode flag:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ bdsim --file=input.gmad --outfile=data&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Then, in the BDSIM command line, we write &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;/run/beamOn 10&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which produces 10 events whose tracks are rendered in the GUI OpenGL display.&lt;br /&gt;
&lt;br /&gt;
* No more than ~100 events will be displayed at once due to memory constraints.&lt;br /&gt;
&lt;br /&gt;
* If a large simulation has been carried out in batch mode already, one can &#039;recreate&#039; this in order to visualise a particular event in the BDSIM GUI, by writing the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ bdsim --file=mymodel.gmad --outfile=data --recreate=originaldatafile.root -startFromEvent=5&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Then, in the BDSIM command line, we can write&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;/run/beamOn 1&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
to render one event.&lt;br /&gt;
&lt;br /&gt;
=== Twiss Parameters and Tfs Diagrams ===&lt;br /&gt;
&lt;br /&gt;
* The tfs machine diagram depicts quadrupoles using the following key:&lt;br /&gt;
&lt;br /&gt;
Above line - Horizontal  focusing, vertical defocusing&lt;br /&gt;
&lt;br /&gt;
Below line - Horizontal defocusing, vertical focusing&lt;br /&gt;
&lt;br /&gt;
* The plots produced by rebdsim plot twiss parameters to describe the evolution of the beam. These parameters are based on MAD-X (Methodical Accelerator Design), which is a general-purpose tool for charged-particle optics design and is used in the study of beam lines. MAD-X succeeded MAD-8 and was specifically adapted to the needs of the LHC.&lt;br /&gt;
&lt;br /&gt;
* Twiss parameter definitions:&lt;br /&gt;
&lt;br /&gt;
Beta - beam size and reciprocal divergence &lt;br /&gt;
&lt;br /&gt;
Alpha - negative gradient of beta&lt;br /&gt;
&lt;br /&gt;
D_{x,y} - (assumption) position dispersion&lt;br /&gt;
&lt;br /&gt;
D_{p_x,p_y} - (assumption) momentum dispersion&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2348</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2348"/>
		<updated>2019-03-13T17:41:07Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* Plotting with Pybdsim */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Learn CAD conversion/import method, which is currently understood to be STEP to GDML conversion using python script - send Stewart STEP files.&lt;br /&gt;
* Run the new version of the simulations provided by Jacinta.&lt;br /&gt;
* Import different versions of the CAD model into BDSIM to test each new component.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
==== Term 1 ====&lt;br /&gt;
&lt;br /&gt;
* Background theory reading.&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Partially ran Geant4 simulation of CCC by Matthieu.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
&lt;br /&gt;
==== Term 2 ====&lt;br /&gt;
&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
* Created troubleshooting log and added more detail on fixing issues.&lt;br /&gt;
* Verified new dose monitor version and scheduled Clatterbridge visit.&lt;br /&gt;
* Modified CAD model to include updated physical measurements sent by Jacinta.&lt;br /&gt;
* Obtained and visualised CCC BDSIM gmad files sent by Jacinta.&lt;br /&gt;
* Performed optical analysis and tracking visualisation on CCC BDSIM simulation.&lt;br /&gt;
* Visited Clatterbridge and took various measurements, including of the dose monitor enclosure.&lt;br /&gt;
* Added updated dose monitors with enclosures and aluminium collimator to beamline model.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log and Useful Information ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up BDSIM envrionment ===&lt;br /&gt;
&lt;br /&gt;
* Initially ran the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim, giving a runtime error every time a pybdsim function is executed. The error I received was as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;h = _ROOT.Header()&lt;br /&gt;
RuntimeError:Header::Header()&lt;br /&gt;
could not resolve ::()&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
I fixed this issue by instead running the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim runtime error issues.&lt;br /&gt;
&lt;br /&gt;
=== X11 Forwarding via SSH ===&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster from a Windows machine, X11 forwarding was not enabled. This meant that any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
PuTTY for Windows was easily installed from the web. Exceed was installable from the UCL Software Database. &lt;br /&gt;
&lt;br /&gt;
The Exceed client must be opened before starting an ssh session via PuTTY. Once Exceed is open, open PuTTY and go to the SSH tab. Then, under the Auth tab, click on X11, and check the box &amp;quot;Enable X11 forwarding.&amp;quot; Then, navigate back to the session tab and connect to plus1 by writing plus1.hep.ucl.ac.uk. A PuTTY terminal window will then open allowing you to input username and password as usual.&lt;br /&gt;
&lt;br /&gt;
=== BDSIM Visualiser using OpenGL ===&lt;br /&gt;
&lt;br /&gt;
* Even after fixing this X11 issues, the BDSIM visualiser which renders the geometry in the BDSIM GUI was not working correctly, showing a static black screen. To fix this, I installed the Exceed extension Exceed 3D, also available from the UCL Software Database, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Plotting with Pybdsim ===&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots did not pop up in a graphical window when generated, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once can also use pyplot.savefig() to save these figures, as some pybdsim plot functions do not have any outputsavefile arguments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Plotting Phase Space ===&lt;br /&gt;
&lt;br /&gt;
Laurie on how to overcome pybdsim bug when plotting beam phase space:&lt;br /&gt;
&lt;br /&gt;
There&#039;s a bug in our Python where we passed the wrong argument not as a keyword argument but just as the 2nd order and this results in the string &#039;output&#039; being used for binning, which it can&#039;t do.  This is fixed now for the next version of pybdsim.  &lt;br /&gt;
&lt;br /&gt;
In the mean time, you can get around this with:&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; import pybdsim&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; d = pybdsim.Data.Load(&amp;quot;haloprimaries.root&amp;quot;)&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; phaseSpaceData = pybdsim.Data.PhaseSpaceData(d)&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; pybdsim.Plot.PhaseSpace(phaseSpaceData, outputfilename=&#039;output&#039;)&lt;br /&gt;
&lt;br /&gt;
=== BDSIM Optical Analysis and Event Visualisation ===&lt;br /&gt;
&lt;br /&gt;
* Optical analysis allows us to compare the twiss parameters for horizontal and vertical beam components between BDSIM and MAD-x.&lt;br /&gt;
* We start with gmad files containing the bdsim simulations and a tfs file containing the MAD-x beamline of magnetic components.&lt;br /&gt;
&lt;br /&gt;
First, run the simulation in batch mode with N primaries to produce the output output.root:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ bdsim --file=input.gmad --ngenerate=N --outfile=output&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* On the output file, we can use rebdsim to produce new ROOT files that contain histograms and optical data. For example, to merge events into bins in order to generate histograms, we write the following to produce histograms.root:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ rebdsimHistoMerge output.root histograms.root&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The output histograms.root can be opened in a ROOT TBrowser in order to view the histograms, or the histograms can be plotted using pybdsim, and then displayed or saved using matplotlib.pyplot.&lt;br /&gt;
&lt;br /&gt;
* To run the rebdsim optical analysis, we write the following to produce optics.root:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ rebdsimOptics output.root optics.root&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* We can then use pybsdim on the output file optics.root and the .tfs file containing the MAD-x beam line to create a series of plots comparing the beam size and twiss functions along with a machine diagram of the magnetic beamline, by using the following pybdsim function:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; pybdsim.Compare.MadxVsBDSIM(&#039;beamline.tfs&#039;, &#039;optics.root&#039;)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Once the optical analysis is done, we can try to visualise some of the events in the BDSIM GUI, by opening the simulation without the batch mode flag:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ bdsim --file=input.gmad --outfile=data&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Then, in the BDSIM command line, we write &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;/run/beamOn 10&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which produces 10 events whose tracks are rendered in the GUI OpenGL display.&lt;br /&gt;
&lt;br /&gt;
* No more than ~100 events will be displayed at once due to memory constraints.&lt;br /&gt;
&lt;br /&gt;
* If a large simulation has been carried out in batch mode already, one can &#039;recreate&#039; this in order to visualise a particular event in the BDSIM GUI, by writing the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ bdsim --file=mymodel.gmad --outfile=data --recreate=originaldatafile.root -startFromEvent=5&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Then, in the BDSIM command line, we can write&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;/run/beamOn 1&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
to render one event.&lt;br /&gt;
&lt;br /&gt;
=== Twiss Parameters and Tfs Diagrams ===&lt;br /&gt;
&lt;br /&gt;
* The tfs machine diagram depicts quadrupoles using the following key:&lt;br /&gt;
&lt;br /&gt;
Above line - Horizontal  focusing, vertical defocusing&lt;br /&gt;
&lt;br /&gt;
Below line - Horizontal defocusing, vertical focusing&lt;br /&gt;
&lt;br /&gt;
* The plots produced by rebdsim plot twiss parameters to describe the evolution of the beam. These parameters are based on MAD-X (Methodical Accelerator Design), which is a general-purpose tool for charged-particle optics design and is used in the study of beam lines. MAD-X succeeded MAD-8 and was specifically adapted to the needs of the LHC.&lt;br /&gt;
&lt;br /&gt;
* Twiss parameter definitions:&lt;br /&gt;
&lt;br /&gt;
Beta - beam size and reciprocal divergence &lt;br /&gt;
&lt;br /&gt;
Alpha - negative gradient of beta&lt;br /&gt;
&lt;br /&gt;
D_{x,y} - (assumption) position dispersion&lt;br /&gt;
&lt;br /&gt;
D_{p_x,p_y} - (assumption) momentum dispersion&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2343</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2343"/>
		<updated>2019-03-07T16:29:24Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* Term 2 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Learn CAD conversion/import method, which is currently understood to be STEP to GDML conversion using python script - send Stewart STEP files.&lt;br /&gt;
* Run the new version of the simulations provided by Jacinta.&lt;br /&gt;
* Import different versions of the CAD model into BDSIM to test each new component.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
==== Term 1 ====&lt;br /&gt;
&lt;br /&gt;
* Background theory reading.&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Partially ran Geant4 simulation of CCC by Matthieu.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
&lt;br /&gt;
==== Term 2 ====&lt;br /&gt;
&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
* Created troubleshooting log and added more detail on fixing issues.&lt;br /&gt;
* Verified new dose monitor version and scheduled Clatterbridge visit.&lt;br /&gt;
* Modified CAD model to include updated physical measurements sent by Jacinta.&lt;br /&gt;
* Obtained and visualised CCC BDSIM gmad files sent by Jacinta.&lt;br /&gt;
* Performed optical analysis and tracking visualisation on CCC BDSIM simulation.&lt;br /&gt;
* Visited Clatterbridge and took various measurements, including of the dose monitor enclosure.&lt;br /&gt;
* Added updated dose monitors with enclosures and aluminium collimator to beamline model.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log and Useful Information ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up BDSIM envrionment ===&lt;br /&gt;
&lt;br /&gt;
* Initially ran the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim, giving a runtime error every time a pybdsim function is executed. The error I received was as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;h = _ROOT.Header()&lt;br /&gt;
RuntimeError:Header::Header()&lt;br /&gt;
could not resolve ::()&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
I fixed this issue by instead running the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim runtime error issues.&lt;br /&gt;
&lt;br /&gt;
=== X11 Forwarding via SSH ===&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster from a Windows machine, X11 forwarding was not enabled. This meant that any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
PuTTY for Windows was easily installed from the web. Exceed was installable from the UCL Software Database. &lt;br /&gt;
&lt;br /&gt;
The Exceed client must be opened before starting an ssh session via PuTTY. Once Exceed is open, open PuTTY and go to the SSH tab. Then, under the Auth tab, click on X11, and check the box &amp;quot;Enable X11 forwarding.&amp;quot; Then, navigate back to the session tab and connect to plus1 by writing plus1.hep.ucl.ac.uk. A PuTTY terminal window will then open allowing you to input username and password as usual.&lt;br /&gt;
&lt;br /&gt;
=== BDSIM Visualiser using OpenGL ===&lt;br /&gt;
&lt;br /&gt;
* Even after fixing this X11 issues, the BDSIM visualiser which renders the geometry in the BDSIM GUI was not working correctly, showing a static black screen. To fix this, I installed the Exceed extension Exceed 3D, also available from the UCL Software Database, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Plotting with Pybdsim ===&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots did not pop up in a graphical window when generated, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once can also use pyplot.savefig() to save these figures, as some pybdsim plot functions do not have any outputsavefile arguments.&lt;br /&gt;
&lt;br /&gt;
=== BDSIM Optical Analysis and Event Visualisation ===&lt;br /&gt;
&lt;br /&gt;
* Optical analysis allows us to compare the twiss parameters for horizontal and vertical beam components between BDSIM and MAD-x.&lt;br /&gt;
* We start with gmad files containing the bdsim simulations and a tfs file containing the MAD-x beamline of magnetic components.&lt;br /&gt;
&lt;br /&gt;
First, run the simulation in batch mode with N primaries to produce the output output.root:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ bdsim --file=input.gmad --ngenerate=N --outfile=output&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* On the output file, we can use rebdsim to produce new ROOT files that contain histograms and optical data. For example, to merge events into bins in order to generate histograms, we write the following to produce histograms.root:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ rebdsimHistoMerge output.root histograms.root&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The output histograms.root can be opened in a ROOT TBrowser in order to view the histograms, or the histograms can be plotted using pybdsim, and then displayed or saved using matplotlib.pyplot.&lt;br /&gt;
&lt;br /&gt;
* To run the rebdsim optical analysis, we write the following to produce optics.root:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ rebdsimOptics output.root optics.root&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* We can then use pybsdim on the output file optics.root and the .tfs file containing the MAD-x beam line to create a series of plots comparing the beam size and twiss functions along with a machine diagram of the magnetic beamline, by using the following pybdsim function:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; pybdsim.Compare.MadxVsBDSIM(&#039;beamline.tfs&#039;, &#039;optics.root&#039;)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Once the optical analysis is done, we can try to visualise some of the events in the BDSIM GUI, by opening the simulation without the batch mode flag:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ bdsim --file=input.gmad --outfile=data&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Then, in the BDSIM command line, we write &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;/run/beamOn 10&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which produces 10 events whose tracks are rendered in the GUI OpenGL display.&lt;br /&gt;
&lt;br /&gt;
* No more than ~100 events will be displayed at once due to memory constraints.&lt;br /&gt;
&lt;br /&gt;
* If a large simulation has been carried out in batch mode already, one can &#039;recreate&#039; this in order to visualise a particular event in the BDSIM GUI, by writing the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ bdsim --file=mymodel.gmad --outfile=data --recreate=originaldatafile.root -startFromEvent=5&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Then, in the BDSIM command line, we can write&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;/run/beamOn 1&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
to render one event.&lt;br /&gt;
&lt;br /&gt;
=== Twiss Parameters and Tfs Diagrams ===&lt;br /&gt;
&lt;br /&gt;
* The tfs machine diagram depicts quadrupoles using the following key:&lt;br /&gt;
&lt;br /&gt;
Above line - Horizontal  focusing, vertical defocusing&lt;br /&gt;
&lt;br /&gt;
Below line - Horizontal defocusing, vertical focusing&lt;br /&gt;
&lt;br /&gt;
* The plots produced by rebdsim plot twiss parameters to describe the evolution of the beam. These parameters are based on MAD-X (Methodical Accelerator Design), which is a general-purpose tool for charged-particle optics design and is used in the study of beam lines. MAD-X succeeded MAD-8 and was specifically adapted to the needs of the LHC.&lt;br /&gt;
&lt;br /&gt;
* Twiss parameter definitions:&lt;br /&gt;
&lt;br /&gt;
Beta - beam size and reciprocal divergence &lt;br /&gt;
&lt;br /&gt;
Alpha - negative gradient of beta&lt;br /&gt;
&lt;br /&gt;
D_{x,y} - (assumption) position dispersion&lt;br /&gt;
&lt;br /&gt;
D_{p_x,p_y} - (assumption) momentum dispersion&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2342</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2342"/>
		<updated>2019-03-07T16:27:01Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* To Do */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Learn CAD conversion/import method, which is currently understood to be STEP to GDML conversion using python script - send Stewart STEP files.&lt;br /&gt;
* Run the new version of the simulations provided by Jacinta.&lt;br /&gt;
* Import different versions of the CAD model into BDSIM to test each new component.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
==== Term 1 ====&lt;br /&gt;
&lt;br /&gt;
* Background theory reading.&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Partially ran Geant4 simulation of CCC by Matthieu.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
&lt;br /&gt;
==== Term 2 ====&lt;br /&gt;
&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
* Created troubleshooting log and added more detail on fixing issues.&lt;br /&gt;
* Verified new dose monitor version and scheduled Clatterbridge visit.&lt;br /&gt;
* Modified CAD model to include updated physical measurements sent by Jacinta.&lt;br /&gt;
* Obtained and visualised CCC BDSIM gmad files sent by Jacinta.&lt;br /&gt;
* Performed optical analysis and tracking visualisation on CCC BDSIM simulation.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log and Useful Information ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up BDSIM envrionment ===&lt;br /&gt;
&lt;br /&gt;
* Initially ran the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim, giving a runtime error every time a pybdsim function is executed. The error I received was as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;h = _ROOT.Header()&lt;br /&gt;
RuntimeError:Header::Header()&lt;br /&gt;
could not resolve ::()&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
I fixed this issue by instead running the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim runtime error issues.&lt;br /&gt;
&lt;br /&gt;
=== X11 Forwarding via SSH ===&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster from a Windows machine, X11 forwarding was not enabled. This meant that any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
PuTTY for Windows was easily installed from the web. Exceed was installable from the UCL Software Database. &lt;br /&gt;
&lt;br /&gt;
The Exceed client must be opened before starting an ssh session via PuTTY. Once Exceed is open, open PuTTY and go to the SSH tab. Then, under the Auth tab, click on X11, and check the box &amp;quot;Enable X11 forwarding.&amp;quot; Then, navigate back to the session tab and connect to plus1 by writing plus1.hep.ucl.ac.uk. A PuTTY terminal window will then open allowing you to input username and password as usual.&lt;br /&gt;
&lt;br /&gt;
=== BDSIM Visualiser using OpenGL ===&lt;br /&gt;
&lt;br /&gt;
* Even after fixing this X11 issues, the BDSIM visualiser which renders the geometry in the BDSIM GUI was not working correctly, showing a static black screen. To fix this, I installed the Exceed extension Exceed 3D, also available from the UCL Software Database, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Plotting with Pybdsim ===&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots did not pop up in a graphical window when generated, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once can also use pyplot.savefig() to save these figures, as some pybdsim plot functions do not have any outputsavefile arguments.&lt;br /&gt;
&lt;br /&gt;
=== BDSIM Optical Analysis and Event Visualisation ===&lt;br /&gt;
&lt;br /&gt;
* Optical analysis allows us to compare the twiss parameters for horizontal and vertical beam components between BDSIM and MAD-x.&lt;br /&gt;
* We start with gmad files containing the bdsim simulations and a tfs file containing the MAD-x beamline of magnetic components.&lt;br /&gt;
&lt;br /&gt;
First, run the simulation in batch mode with N primaries to produce the output output.root:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ bdsim --file=input.gmad --ngenerate=N --outfile=output&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* On the output file, we can use rebdsim to produce new ROOT files that contain histograms and optical data. For example, to merge events into bins in order to generate histograms, we write the following to produce histograms.root:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ rebdsimHistoMerge output.root histograms.root&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The output histograms.root can be opened in a ROOT TBrowser in order to view the histograms, or the histograms can be plotted using pybdsim, and then displayed or saved using matplotlib.pyplot.&lt;br /&gt;
&lt;br /&gt;
* To run the rebdsim optical analysis, we write the following to produce optics.root:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ rebdsimOptics output.root optics.root&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* We can then use pybsdim on the output file optics.root and the .tfs file containing the MAD-x beam line to create a series of plots comparing the beam size and twiss functions along with a machine diagram of the magnetic beamline, by using the following pybdsim function:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; pybdsim.Compare.MadxVsBDSIM(&#039;beamline.tfs&#039;, &#039;optics.root&#039;)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Once the optical analysis is done, we can try to visualise some of the events in the BDSIM GUI, by opening the simulation without the batch mode flag:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ bdsim --file=input.gmad --outfile=data&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Then, in the BDSIM command line, we write &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;/run/beamOn 10&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which produces 10 events whose tracks are rendered in the GUI OpenGL display.&lt;br /&gt;
&lt;br /&gt;
* No more than ~100 events will be displayed at once due to memory constraints.&lt;br /&gt;
&lt;br /&gt;
* If a large simulation has been carried out in batch mode already, one can &#039;recreate&#039; this in order to visualise a particular event in the BDSIM GUI, by writing the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ bdsim --file=mymodel.gmad --outfile=data --recreate=originaldatafile.root -startFromEvent=5&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Then, in the BDSIM command line, we can write&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;/run/beamOn 1&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
to render one event.&lt;br /&gt;
&lt;br /&gt;
=== Twiss Parameters and Tfs Diagrams ===&lt;br /&gt;
&lt;br /&gt;
* The tfs machine diagram depicts quadrupoles using the following key:&lt;br /&gt;
&lt;br /&gt;
Above line - Horizontal  focusing, vertical defocusing&lt;br /&gt;
&lt;br /&gt;
Below line - Horizontal defocusing, vertical focusing&lt;br /&gt;
&lt;br /&gt;
* The plots produced by rebdsim plot twiss parameters to describe the evolution of the beam. These parameters are based on MAD-X (Methodical Accelerator Design), which is a general-purpose tool for charged-particle optics design and is used in the study of beam lines. MAD-X succeeded MAD-8 and was specifically adapted to the needs of the LHC.&lt;br /&gt;
&lt;br /&gt;
* Twiss parameter definitions:&lt;br /&gt;
&lt;br /&gt;
Beta - beam size and reciprocal divergence &lt;br /&gt;
&lt;br /&gt;
Alpha - negative gradient of beta&lt;br /&gt;
&lt;br /&gt;
D_{x,y} - (assumption) position dispersion&lt;br /&gt;
&lt;br /&gt;
D_{p_x,p_y} - (assumption) momentum dispersion&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2308</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2308"/>
		<updated>2019-02-26T12:42:50Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* Twiss Parameters and Tfs Diagrams */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Learn CAD conversion/import method, which is currently understood to be STEP to GDML conversion using python script - contact Jacinta.&lt;br /&gt;
* Run the BDSIM simulations with varying quadropole strength to familiarise with beam behaviour.&lt;br /&gt;
* Obtain and implement correct dimensions for new dose monitor enclosures during Clatterbridge visit on 28th Feb.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Add dose monitor enclosures after Clatterbridge visit.&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Pre-Clatterbridge Meeting ===&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
==== Term 1 ====&lt;br /&gt;
&lt;br /&gt;
* Background theory reading.&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Partially ran Geant4 simulation of CCC by Matthieu.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
&lt;br /&gt;
==== Term 2 ====&lt;br /&gt;
&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
* Created troubleshooting log and added more detail on fixing issues.&lt;br /&gt;
* Verified new dose monitor version and scheduled Clatterbridge visit.&lt;br /&gt;
* Modified CAD model to include updated physical measurements sent by Jacinta.&lt;br /&gt;
* Obtained and visualised CCC BDSIM gmad files sent by Jacinta.&lt;br /&gt;
* Performed optical analysis and tracking visualisation on CCC BDSIM simulation.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log and Useful Information ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up BDSIM envrionment ===&lt;br /&gt;
&lt;br /&gt;
* Initially ran the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim, giving a runtime error every time a pybdsim function is executed. The error I received was as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;h = _ROOT.Header()&lt;br /&gt;
RuntimeError:Header::Header()&lt;br /&gt;
could not resolve ::()&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
I fixed this issue by instead running the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim runtime error issues.&lt;br /&gt;
&lt;br /&gt;
=== X11 Forwarding via SSH ===&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster from a Windows machine, X11 forwarding was not enabled. This meant that any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
PuTTY for Windows was easily installed from the web. Exceed was installable from the UCL Software Database. &lt;br /&gt;
&lt;br /&gt;
The Exceed client must be opened before starting an ssh session via PuTTY. Once Exceed is open, open PuTTY and go to the SSH tab. Then, under the Auth tab, click on X11, and check the box &amp;quot;Enable X11 forwarding.&amp;quot; Then, navigate back to the session tab and connect to plus1 by writing plus1.hep.ucl.ac.uk. A PuTTY terminal window will then open allowing you to input username and password as usual.&lt;br /&gt;
&lt;br /&gt;
=== BDSIM Visualiser using OpenGL ===&lt;br /&gt;
&lt;br /&gt;
* Even after fixing this X11 issues, the BDSIM visualiser which renders the geometry in the BDSIM GUI was not working correctly, showing a static black screen. To fix this, I installed the Exceed extension Exceed 3D, also available from the UCL Software Database, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Plotting with Pybdsim ===&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots did not pop up in a graphical window when generated, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once can also use pyplot.savefig() to save these figures, as some pybdsim plot functions do not have any outputsavefile arguments.&lt;br /&gt;
&lt;br /&gt;
=== BDSIM Optical Analysis and Event Visualisation ===&lt;br /&gt;
&lt;br /&gt;
* Optical analysis allows us to compare the twiss parameters for horizontal and vertical beam components between BDSIM and MAD-x.&lt;br /&gt;
* We start with gmad files containing the bdsim simulations and a tfs file containing the MAD-x beamline of magnetic components.&lt;br /&gt;
&lt;br /&gt;
First, run the simulation in batch mode with N primaries to produce the output output.root:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ bdsim --file=input.gmad --ngenerate=N --outfile=output&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* On the output file, we can use rebdsim to produce new ROOT files that contain histograms and optical data. For example, to merge events into bins in order to generate histograms, we write the following to produce histograms.root:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ rebdsimHistoMerge output.root histograms.root&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The output histograms.root can be opened in a ROOT TBrowser in order to view the histograms, or the histograms can be plotted using pybdsim, and then displayed or saved using matplotlib.pyplot.&lt;br /&gt;
&lt;br /&gt;
* To run the rebdsim optical analysis, we write the following to produce optics.root:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ rebdsimOptics output.root optics.root&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* We can then use pybsdim on the output file optics.root and the .tfs file containing the MAD-x beam line to create a series of plots comparing the beam size and twiss functions along with a machine diagram of the magnetic beamline, by using the following pybdsim function:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; pybdsim.Compare.MadxVsBDSIM(&#039;beamline.tfs&#039;, &#039;optics.root&#039;)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Once the optical analysis is done, we can try to visualise some of the events in the BDSIM GUI, by opening the simulation without the batch mode flag:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ bdsim --file=input.gmad --outfile=data&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Then, in the BDSIM command line, we write &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;/run/beamOn 10&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which produces 10 events whose tracks are rendered in the GUI OpenGL display.&lt;br /&gt;
&lt;br /&gt;
* No more than ~100 events will be displayed at once due to memory constraints.&lt;br /&gt;
&lt;br /&gt;
* If a large simulation has been carried out in batch mode already, one can &#039;recreate&#039; this in order to visualise a particular event in the BDSIM GUI, by writing the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ bdsim --file=mymodel.gmad --outfile=data --recreate=originaldatafile.root -startFromEvent=5&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Then, in the BDSIM command line, we can write&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;/run/beamOn 1&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
to render one event.&lt;br /&gt;
&lt;br /&gt;
=== Twiss Parameters and Tfs Diagrams ===&lt;br /&gt;
&lt;br /&gt;
* The tfs machine diagram depicts quadrupoles using the following key:&lt;br /&gt;
&lt;br /&gt;
Above line - Horizontal  focusing, vertical defocusing&lt;br /&gt;
&lt;br /&gt;
Below line - Horizontal defocusing, vertical focusing&lt;br /&gt;
&lt;br /&gt;
* The plots produced by rebdsim plot twiss parameters to describe the evolution of the beam. These parameters are based on MAD-X (Methodical Accelerator Design), which is a general-purpose tool for charged-particle optics design and is used in the study of beam lines. MAD-X succeeded MAD-8 and was specifically adapted to the needs of the LHC.&lt;br /&gt;
&lt;br /&gt;
* Twiss parameter definitions:&lt;br /&gt;
&lt;br /&gt;
Beta - beam size and reciprocal divergence &lt;br /&gt;
&lt;br /&gt;
Alpha - negative gradient of beta&lt;br /&gt;
&lt;br /&gt;
D_{x,y} - (assumption) position dispersion&lt;br /&gt;
&lt;br /&gt;
D_{p_x,p_y} - (assumption) momentum dispersion&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2307</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2307"/>
		<updated>2019-02-26T12:41:24Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* Troubleshooting Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Learn CAD conversion/import method, which is currently understood to be STEP to GDML conversion using python script - contact Jacinta.&lt;br /&gt;
* Run the BDSIM simulations with varying quadropole strength to familiarise with beam behaviour.&lt;br /&gt;
* Obtain and implement correct dimensions for new dose monitor enclosures during Clatterbridge visit on 28th Feb.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Add dose monitor enclosures after Clatterbridge visit.&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Pre-Clatterbridge Meeting ===&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
==== Term 1 ====&lt;br /&gt;
&lt;br /&gt;
* Background theory reading.&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Partially ran Geant4 simulation of CCC by Matthieu.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
&lt;br /&gt;
==== Term 2 ====&lt;br /&gt;
&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
* Created troubleshooting log and added more detail on fixing issues.&lt;br /&gt;
* Verified new dose monitor version and scheduled Clatterbridge visit.&lt;br /&gt;
* Modified CAD model to include updated physical measurements sent by Jacinta.&lt;br /&gt;
* Obtained and visualised CCC BDSIM gmad files sent by Jacinta.&lt;br /&gt;
* Performed optical analysis and tracking visualisation on CCC BDSIM simulation.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log and Useful Information ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up BDSIM envrionment ===&lt;br /&gt;
&lt;br /&gt;
* Initially ran the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim, giving a runtime error every time a pybdsim function is executed. The error I received was as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;h = _ROOT.Header()&lt;br /&gt;
RuntimeError:Header::Header()&lt;br /&gt;
could not resolve ::()&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
I fixed this issue by instead running the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim runtime error issues.&lt;br /&gt;
&lt;br /&gt;
=== X11 Forwarding via SSH ===&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster from a Windows machine, X11 forwarding was not enabled. This meant that any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
PuTTY for Windows was easily installed from the web. Exceed was installable from the UCL Software Database. &lt;br /&gt;
&lt;br /&gt;
The Exceed client must be opened before starting an ssh session via PuTTY. Once Exceed is open, open PuTTY and go to the SSH tab. Then, under the Auth tab, click on X11, and check the box &amp;quot;Enable X11 forwarding.&amp;quot; Then, navigate back to the session tab and connect to plus1 by writing plus1.hep.ucl.ac.uk. A PuTTY terminal window will then open allowing you to input username and password as usual.&lt;br /&gt;
&lt;br /&gt;
=== BDSIM Visualiser using OpenGL ===&lt;br /&gt;
&lt;br /&gt;
* Even after fixing this X11 issues, the BDSIM visualiser which renders the geometry in the BDSIM GUI was not working correctly, showing a static black screen. To fix this, I installed the Exceed extension Exceed 3D, also available from the UCL Software Database, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Plotting with Pybdsim ===&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots did not pop up in a graphical window when generated, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once can also use pyplot.savefig() to save these figures, as some pybdsim plot functions do not have any outputsavefile arguments.&lt;br /&gt;
&lt;br /&gt;
=== BDSIM Optical Analysis and Event Visualisation ===&lt;br /&gt;
&lt;br /&gt;
* Optical analysis allows us to compare the twiss parameters for horizontal and vertical beam components between BDSIM and MAD-x.&lt;br /&gt;
* We start with gmad files containing the bdsim simulations and a tfs file containing the MAD-x beamline of magnetic components.&lt;br /&gt;
&lt;br /&gt;
First, run the simulation in batch mode with N primaries to produce the output output.root:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ bdsim --file=input.gmad --ngenerate=N --outfile=output&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* On the output file, we can use rebdsim to produce new ROOT files that contain histograms and optical data. For example, to merge events into bins in order to generate histograms, we write the following to produce histograms.root:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ rebdsimHistoMerge output.root histograms.root&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The output histograms.root can be opened in a ROOT TBrowser in order to view the histograms, or the histograms can be plotted using pybdsim, and then displayed or saved using matplotlib.pyplot.&lt;br /&gt;
&lt;br /&gt;
* To run the rebdsim optical analysis, we write the following to produce optics.root:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ rebdsimOptics output.root optics.root&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* We can then use pybsdim on the output file optics.root and the .tfs file containing the MAD-x beam line to create a series of plots comparing the beam size and twiss functions along with a machine diagram of the magnetic beamline, by using the following pybdsim function:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; pybdsim.Compare.MadxVsBDSIM(&#039;beamline.tfs&#039;, &#039;optics.root&#039;)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Once the optical analysis is done, we can try to visualise some of the events in the BDSIM GUI, by opening the simulation without the batch mode flag:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ bdsim --file=input.gmad --outfile=data&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Then, in the BDSIM command line, we write &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;/run/beamOn 10&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which produces 10 events whose tracks are rendered in the GUI OpenGL display.&lt;br /&gt;
&lt;br /&gt;
* No more than ~100 events will be displayed at once due to memory constraints.&lt;br /&gt;
&lt;br /&gt;
* If a large simulation has been carried out in batch mode already, one can &#039;recreate&#039; this in order to visualise a particular event in the BDSIM GUI, by writing the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ bdsim --file=mymodel.gmad --outfile=data --recreate=originaldatafile.root -startFromEvent=5&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Then, in the BDSIM command line, we can write&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;/run/beamOn 1&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
to render one event.&lt;br /&gt;
&lt;br /&gt;
=== Twiss Parameters and Tfs Diagrams ===&lt;br /&gt;
&lt;br /&gt;
* The tfs machine diagram depicts quadrupoles using the following key:&lt;br /&gt;
Above line - Horizontal  focusing, vertical defocusing&lt;br /&gt;
Below line - Horizontal defocusing, vertical focusing&lt;br /&gt;
&lt;br /&gt;
* The plots produced by rebdsim plot twiss parameters to describe the evolution of the beam. These parameters are based on MAD-X (Methodical Accelerator Design), which is a general-purpose tool for charged-particle optics design and is used in the study of beam lines. MAD-X succeeded MAD-8 and was specifically adapted to the needs of the LHC.&lt;br /&gt;
&lt;br /&gt;
* Twiss parameter definitions:&lt;br /&gt;
&amp;lt;math&amp;gt;Beta&amp;lt;/math&amp;gt; - beam size and reciprocal divergence &lt;br /&gt;
&amp;lt;math&amp;gt;Alpha&amp;lt;/math&amp;gt; - negative gradient of beta&lt;br /&gt;
&amp;lt;math&amp;gt;D_{x,y}&amp;lt;/math&amp;gt; - (assumption) position dispersion&lt;br /&gt;
&amp;lt;math&amp;gt;D_{p_x,p_y}&amp;lt;/math&amp;gt; - (assumption) momentum dispersion&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2305</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2305"/>
		<updated>2019-02-26T12:37:11Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* To Do */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Learn CAD conversion/import method, which is currently understood to be STEP to GDML conversion using python script - contact Jacinta.&lt;br /&gt;
* Run the BDSIM simulations with varying quadropole strength to familiarise with beam behaviour.&lt;br /&gt;
* Obtain and implement correct dimensions for new dose monitor enclosures during Clatterbridge visit on 28th Feb.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Add dose monitor enclosures after Clatterbridge visit.&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Pre-Clatterbridge Meeting ===&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
==== Term 1 ====&lt;br /&gt;
&lt;br /&gt;
* Background theory reading.&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Partially ran Geant4 simulation of CCC by Matthieu.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
&lt;br /&gt;
==== Term 2 ====&lt;br /&gt;
&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
* Created troubleshooting log and added more detail on fixing issues.&lt;br /&gt;
* Verified new dose monitor version and scheduled Clatterbridge visit.&lt;br /&gt;
* Modified CAD model to include updated physical measurements sent by Jacinta.&lt;br /&gt;
* Obtained and visualised CCC BDSIM gmad files sent by Jacinta.&lt;br /&gt;
* Performed optical analysis and tracking visualisation on CCC BDSIM simulation.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up BDSIM envrionment ===&lt;br /&gt;
&lt;br /&gt;
* Initially ran the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim, giving a runtime error every time a pybdsim function is executed. The error I received was as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;h = _ROOT.Header()&lt;br /&gt;
RuntimeError:Header::Header()&lt;br /&gt;
could not resolve ::()&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
I fixed this issue by instead running the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim runtime error issues.&lt;br /&gt;
&lt;br /&gt;
=== X11 Forwarding via SSH ===&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster from a Windows machine, X11 forwarding was not enabled. This meant that any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
PuTTY for Windows was easily installed from the web. Exceed was installable from the UCL Software Database. &lt;br /&gt;
&lt;br /&gt;
The Exceed client must be opened before starting an ssh session via PuTTY. Once Exceed is open, open PuTTY and go to the SSH tab. Then, under the Auth tab, click on X11, and check the box &amp;quot;Enable X11 forwarding.&amp;quot; Then, navigate back to the session tab and connect to plus1 by writing plus1.hep.ucl.ac.uk. A PuTTY terminal window will then open allowing you to input username and password as usual.&lt;br /&gt;
&lt;br /&gt;
=== BDSIM Visualiser using OpenGL ===&lt;br /&gt;
&lt;br /&gt;
* Even after fixing this X11 issues, the BDSIM visualiser which renders the geometry in the BDSIM GUI was not working correctly, showing a static black screen. To fix this, I installed the Exceed extension Exceed 3D, also available from the UCL Software Database, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Plotting with Pybdsim ===&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots did not pop up in a graphical window when generated, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once can also use pyplot.savefig() to save these figures, as some pybdsim plot functions do not have any outputsavefile arguments.&lt;br /&gt;
&lt;br /&gt;
=== BDSIM Optical Analysis and Event Visualisation ===&lt;br /&gt;
&lt;br /&gt;
* Optical analysis allows us to compare the twiss parameters for horizontal and vertical beam components between BDSIM and MAD-x.&lt;br /&gt;
* We start with gmad files containing the bdsim simulations and a tfs file containing the MAD-x beamline of magnetic components.&lt;br /&gt;
&lt;br /&gt;
First, run the simulation in batch mode with N primaries to produce the output output.root:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ bdsim --file=input.gmad --ngenerate=N --outfile=output&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* On the output file, we can use rebdsim to produce new ROOT files that contain histograms and optical data. For example, to merge events into bins in order to generate histograms, we write the following to produce histograms.root:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ rebdsimHistoMerge output.root histograms.root&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The output histograms.root can be opened in a ROOT TBrowser in order to view the histograms, or the histograms can be plotted using pybdsim, and then displayed or saved using matplotlib.pyplot.&lt;br /&gt;
&lt;br /&gt;
* To run the rebdsim optical analysis, we write the following to produce optics.root:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ rebdsimOptics output.root optics.root&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* We can then use pybsdim on the output file optics.root and the .tfs file containing the MAD-x beam line to create a series of plots comparing the beam size and twiss functions along with a machine diagram of the magnetic beamline, by using the following pybdsim function:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; pybdsim.Compare.MadxVsBDSIM(&#039;beamline.tfs&#039;, &#039;optics.root&#039;)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Once the optical analysis is done, we can try to visualise some of the events in the BDSIM GUI, by opening the simulation without the batch mode flag:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ bdsim --file=input.gmad --outfile=data&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Then, in the BDSIM command line, we write &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;/run/beamOn 10&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which produces 10 events whose tracks are rendered in the GUI OpenGL display.&lt;br /&gt;
&lt;br /&gt;
* No more than ~100 events will be displayed at once due to memory constraints.&lt;br /&gt;
&lt;br /&gt;
* If a large simulation has been carried out in batch mode already, one can &#039;recreate&#039; this in order to visualise a particular event in the BDSIM GUI, by writing the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ bdsim --file=mymodel.gmad --outfile=data --recreate=originaldatafile.root -startFromEvent=5&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Then, in the BDSIM command line, we can write&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;/run/beamOn 1&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
to render one event.&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2299</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2299"/>
		<updated>2019-02-22T09:59:29Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* BDSIM Optical Analysis and Event Visualisation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Learn CAD conversion/import method, which is currently understood to be STEP to GDML conversion using python script - contact Jacinta.&lt;br /&gt;
* Run the BDSIM simulations with varying quadropole strength to familiarise with beam behaviour.&lt;br /&gt;
* Obtain and implement correct dimensions for new dose monitor enclosures during Clatterbridge visit on 28th Feb.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Add dose monitor enclosures after Clatterbridge visit.&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
==== Term 1 ====&lt;br /&gt;
&lt;br /&gt;
* Background theory reading.&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Partially ran Geant4 simulation of CCC by Matthieu.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
&lt;br /&gt;
==== Term 2 ====&lt;br /&gt;
&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
* Created troubleshooting log and added more detail on fixing issues.&lt;br /&gt;
* Verified new dose monitor version and scheduled Clatterbridge visit.&lt;br /&gt;
* Modified CAD model to include updated physical measurements sent by Jacinta.&lt;br /&gt;
* Obtained and visualised CCC BDSIM gmad files sent by Jacinta.&lt;br /&gt;
* Performed optical analysis and tracking visualisation on CCC BDSIM simulation.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up BDSIM envrionment ===&lt;br /&gt;
&lt;br /&gt;
* Initially ran the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim, giving a runtime error every time a pybdsim function is executed. The error I received was as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;h = _ROOT.Header()&lt;br /&gt;
RuntimeError:Header::Header()&lt;br /&gt;
could not resolve ::()&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
I fixed this issue by instead running the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim runtime error issues.&lt;br /&gt;
&lt;br /&gt;
=== X11 Forwarding via SSH ===&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster from a Windows machine, X11 forwarding was not enabled. This meant that any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
PuTTY for Windows was easily installed from the web. Exceed was installable from the UCL Software Database. &lt;br /&gt;
&lt;br /&gt;
The Exceed client must be opened before starting an ssh session via PuTTY. Once Exceed is open, open PuTTY and go to the SSH tab. Then, under the Auth tab, click on X11, and check the box &amp;quot;Enable X11 forwarding.&amp;quot; Then, navigate back to the session tab and connect to plus1 by writing plus1.hep.ucl.ac.uk. A PuTTY terminal window will then open allowing you to input username and password as usual.&lt;br /&gt;
&lt;br /&gt;
=== BDSIM Visualiser using OpenGL ===&lt;br /&gt;
&lt;br /&gt;
* Even after fixing this X11 issues, the BDSIM visualiser which renders the geometry in the BDSIM GUI was not working correctly, showing a static black screen. To fix this, I installed the Exceed extension Exceed 3D, also available from the UCL Software Database, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Plotting with Pybdsim ===&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots did not pop up in a graphical window when generated, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once can also use pyplot.savefig() to save these figures, as some pybdsim plot functions do not have any outputsavefile arguments.&lt;br /&gt;
&lt;br /&gt;
=== BDSIM Optical Analysis and Event Visualisation ===&lt;br /&gt;
&lt;br /&gt;
* Optical analysis allows us to compare the twiss parameters for horizontal and vertical beam components between BDSIM and MAD-x.&lt;br /&gt;
* We start with gmad files containing the bdsim simulations and a tfs file containing the MAD-x beamline of magnetic components.&lt;br /&gt;
&lt;br /&gt;
First, run the simulation in batch mode with N primaries to produce the output output.root:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ bdsim --file=input.gmad --ngenerate=N --outfile=output&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* On the output file, we can use rebdsim to produce new ROOT files that contain histograms and optical data. For example, to merge events into bins in order to generate histograms, we write the following to produce histograms.root:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ rebdsimHistoMerge output.root histograms.root&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The output histograms.root can be opened in a ROOT TBrowser in order to view the histograms, or the histograms can be plotted using pybdsim, and then displayed or saved using matplotlib.pyplot.&lt;br /&gt;
&lt;br /&gt;
* To run the rebdsim optical analysis, we write the following to produce optics.root:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ rebdsimOptics output.root optics.root&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* We can then use pybsdim on the output file optics.root and the .tfs file containing the MAD-x beam line to create a series of plots comparing the beam size and twiss functions along with a machine diagram of the magnetic beamline, by using the following pybdsim function:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; pybdsim.Compare.MadxVsBDSIM(&#039;beamline.tfs&#039;, &#039;optics.root&#039;)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Once the optical analysis is done, we can try to visualise some of the events in the BDSIM GUI, by opening the simulation without the batch mode flag:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ bdsim --file=input.gmad --outfile=data&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Then, in the BDSIM command line, we write &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;/run/beamOn 10&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which produces 10 events whose tracks are rendered in the GUI OpenGL display.&lt;br /&gt;
&lt;br /&gt;
* No more than ~100 events will be displayed at once due to memory constraints.&lt;br /&gt;
&lt;br /&gt;
* If a large simulation has been carried out in batch mode already, one can &#039;recreate&#039; this in order to visualise a particular event in the BDSIM GUI, by writing the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ bdsim --file=mymodel.gmad --outfile=data --recreate=originaldatafile.root -startFromEvent=5&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Then, in the BDSIM command line, we can write&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;/run/beamOn 1&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
to render one event.&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2295</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2295"/>
		<updated>2019-02-21T00:03:02Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* Troubleshooting Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Learn CAD conversion/import method, which is currently understood to be STEP to GDML conversion using python script - contact Jacinta.&lt;br /&gt;
* Run the BDSIM simulations with varying quadropole strength to familiarise with beam behaviour.&lt;br /&gt;
* Obtain and implement correct dimensions for new dose monitor enclosures during Clatterbridge visit on 28th Feb.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Add dose monitor enclosures after Clatterbridge visit.&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
==== Term 1 ====&lt;br /&gt;
&lt;br /&gt;
* Background theory reading.&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Partially ran Geant4 simulation of CCC by Matthieu.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
&lt;br /&gt;
==== Term 2 ====&lt;br /&gt;
&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
* Created troubleshooting log and added more detail on fixing issues.&lt;br /&gt;
* Verified new dose monitor version and scheduled Clatterbridge visit.&lt;br /&gt;
* Modified CAD model to include updated physical measurements sent by Jacinta.&lt;br /&gt;
* Obtained and visualised CCC BDSIM gmad files sent by Jacinta.&lt;br /&gt;
* Performed optical analysis and tracking visualisation on CCC BDSIM simulation.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up BDSIM envrionment ===&lt;br /&gt;
&lt;br /&gt;
* Initially ran the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim, giving a runtime error every time a pybdsim function is executed. The error I received was as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;h = _ROOT.Header()&lt;br /&gt;
RuntimeError:Header::Header()&lt;br /&gt;
could not resolve ::()&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
I fixed this issue by instead running the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim runtime error issues.&lt;br /&gt;
&lt;br /&gt;
=== X11 Forwarding via SSH ===&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster from a Windows machine, X11 forwarding was not enabled. This meant that any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
PuTTY for Windows was easily installed from the web. Exceed was installable from the UCL Software Database. &lt;br /&gt;
&lt;br /&gt;
The Exceed client must be opened before starting an ssh session via PuTTY. Once Exceed is open, open PuTTY and go to the SSH tab. Then, under the Auth tab, click on X11, and check the box &amp;quot;Enable X11 forwarding.&amp;quot; Then, navigate back to the session tab and connect to plus1 by writing plus1.hep.ucl.ac.uk. A PuTTY terminal window will then open allowing you to input username and password as usual.&lt;br /&gt;
&lt;br /&gt;
=== BDSIM Visualiser using OpenGL ===&lt;br /&gt;
&lt;br /&gt;
* Even after fixing this X11 issues, the BDSIM visualiser which renders the geometry in the BDSIM GUI was not working correctly, showing a static black screen. To fix this, I installed the Exceed extension Exceed 3D, also available from the UCL Software Database, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Plotting with Pybdsim ===&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots did not pop up in a graphical window when generated, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once can also use pyplot.savefig() to save these figures, as some pybdsim plot functions do not have any outputsavefile arguments.&lt;br /&gt;
&lt;br /&gt;
=== BDSIM Optical Analysis and Event Visualisation ===&lt;br /&gt;
&lt;br /&gt;
* Optical analysis allows us to compare the twiss parameters for horizontal and vertical beam components between BDSIM and MAD-x.&lt;br /&gt;
* We start with gmad files containing the bdsim simulations and a tfs file containing the MAD-x beamline of magnetic components.&lt;br /&gt;
&lt;br /&gt;
First, run the simulation in batch mode with N primaries to produce the output output.root:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;bdsim --file=input.gmad --ngenerate=N --outfile=output&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* On the output file, we can use rebdsim to produce new ROOT files that contain histograms and optical data. For example, to merge events into bins in order to generate histograms, we write the following to produce histograms.root:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;rebdsimHistoMerge output.root histograms.root&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The output histograms.root can be opened in a ROOT TBrowser in order to view the histograms, or the histograms can be plotted using pybdsim, and then displayed or saved using matplotlib.pyplot.&lt;br /&gt;
&lt;br /&gt;
* To run the rebdsim optical analysis, we write the following to produce optics.root:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;rebdsimOptics output.root optics.root&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* We can then use pybsdim on the output file optics.root and the .tfs file containing the MAD-x beam line to create a series of plots comparing the beam size and twiss functions, by using the following pybdsim function:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; pybdsim.Compare.MadxVsBDSIM(&#039;beamline.tfs&#039;, &#039;optics.root&#039;)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Once the optical analysis is done, we can try to visualise some of the events in the BDSIM GUI, by opening the simulation without the batch mode flag:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;bdsim --file=input.gmad --outfile=data&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Then, in the BDSIM command line, we write &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;/run/beamOn 10&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which produces 10 events whose tracks are rendered in the GUI OpenGL display.&lt;br /&gt;
&lt;br /&gt;
* No more than ~100 events will be displayed at once due to memory constraints.&lt;br /&gt;
&lt;br /&gt;
* If a large simulation has been carried out in batch mode already, one can &#039;recreate&#039; this in order to visualise a particular event in the BDSIM GUI, by writing the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;bdsim --file=mymodel.gmad --outfile=data --recreate=originaldatafile.root -startFromEvent=5&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Then, in the BDSIM command line, we can write&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;/run/beamOn 1&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
to render one event.&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2294</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2294"/>
		<updated>2019-02-20T23:43:46Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* Term 2 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Learn CAD conversion/import method, which is currently understood to be STEP to GDML conversion using python script - contact Jacinta.&lt;br /&gt;
* Run the BDSIM simulations with varying quadropole strength to familiarise with beam behaviour.&lt;br /&gt;
* Obtain and implement correct dimensions for new dose monitor enclosures during Clatterbridge visit on 28th Feb.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Add dose monitor enclosures after Clatterbridge visit.&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
==== Term 1 ====&lt;br /&gt;
&lt;br /&gt;
* Background theory reading.&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Partially ran Geant4 simulation of CCC by Matthieu.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
&lt;br /&gt;
==== Term 2 ====&lt;br /&gt;
&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
* Created troubleshooting log and added more detail on fixing issues.&lt;br /&gt;
* Verified new dose monitor version and scheduled Clatterbridge visit.&lt;br /&gt;
* Modified CAD model to include updated physical measurements sent by Jacinta.&lt;br /&gt;
* Obtained and visualised CCC BDSIM gmad files sent by Jacinta.&lt;br /&gt;
* Performed optical analysis and tracking visualisation on CCC BDSIM simulation.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up BDSIM envrionment ===&lt;br /&gt;
&lt;br /&gt;
* Initially ran the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim, giving a runtime error every time a pybdsim function is executed. The error I received was as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;h = _ROOT.Header()&lt;br /&gt;
RuntimeError:Header::Header()&lt;br /&gt;
could not resolve ::()&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
I fixed this issue by instead running the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim runtime error issues.&lt;br /&gt;
&lt;br /&gt;
=== X11 Forwarding via SSH ===&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster from a Windows machine, X11 forwarding was not enabled. This meant that any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
PuTTY for Windows was easily installed from the web. Exceed was installable from the UCL Software Database. &lt;br /&gt;
&lt;br /&gt;
The Exceed client must be opened before starting an ssh session via PuTTY. Once Exceed is open, open PuTTY and go to the SSH tab. Then, under the Auth tab, click on X11, and check the box &amp;quot;Enable X11 forwarding.&amp;quot; Then, navigate back to the session tab and connect to plus1 by writing plus1.hep.ucl.ac.uk. A PuTTY terminal window will then open allowing you to input username and password as usual.&lt;br /&gt;
&lt;br /&gt;
=== BDSIM Visualiser using OpenGL ===&lt;br /&gt;
&lt;br /&gt;
* Even after fixing this X11 issues, the BDSIM visualiser which renders the geometry in the BDSIM GUI was not working correctly, showing a static black screen. To fix this, I installed the Exceed extension Exceed 3D, also available from the UCL Software Database, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Plotting with Pybdsim ===&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots did not pop up in a graphical window when generated, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once can also use pyplot.savefig() to save these figures, as some pybdsim plot functions do not have any outputsavefile arguments.&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2293</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2293"/>
		<updated>2019-02-20T23:42:34Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* Low Priority */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Learn CAD conversion/import method, which is currently understood to be STEP to GDML conversion using python script - contact Jacinta.&lt;br /&gt;
* Run the BDSIM simulations with varying quadropole strength to familiarise with beam behaviour.&lt;br /&gt;
* Obtain and implement correct dimensions for new dose monitor enclosures during Clatterbridge visit on 28th Feb.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Add dose monitor enclosures after Clatterbridge visit.&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
==== Term 1 ====&lt;br /&gt;
&lt;br /&gt;
* Background theory reading.&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Partially ran Geant4 simulation of CCC by Matthieu.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
&lt;br /&gt;
==== Term 2 ====&lt;br /&gt;
&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
* Created troubleshooting log and added more detail on fixing issues.&lt;br /&gt;
* Verified new dose monitor version and scheduled Clatterbridge visit.&lt;br /&gt;
* Modified CAD model to include updated physical measurements sent by Jacinta.&lt;br /&gt;
* Obtained and visualised CCC BDSIM gmad files sent by Jacinta.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up BDSIM envrionment ===&lt;br /&gt;
&lt;br /&gt;
* Initially ran the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim, giving a runtime error every time a pybdsim function is executed. The error I received was as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;h = _ROOT.Header()&lt;br /&gt;
RuntimeError:Header::Header()&lt;br /&gt;
could not resolve ::()&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
I fixed this issue by instead running the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim runtime error issues.&lt;br /&gt;
&lt;br /&gt;
=== X11 Forwarding via SSH ===&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster from a Windows machine, X11 forwarding was not enabled. This meant that any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
PuTTY for Windows was easily installed from the web. Exceed was installable from the UCL Software Database. &lt;br /&gt;
&lt;br /&gt;
The Exceed client must be opened before starting an ssh session via PuTTY. Once Exceed is open, open PuTTY and go to the SSH tab. Then, under the Auth tab, click on X11, and check the box &amp;quot;Enable X11 forwarding.&amp;quot; Then, navigate back to the session tab and connect to plus1 by writing plus1.hep.ucl.ac.uk. A PuTTY terminal window will then open allowing you to input username and password as usual.&lt;br /&gt;
&lt;br /&gt;
=== BDSIM Visualiser using OpenGL ===&lt;br /&gt;
&lt;br /&gt;
* Even after fixing this X11 issues, the BDSIM visualiser which renders the geometry in the BDSIM GUI was not working correctly, showing a static black screen. To fix this, I installed the Exceed extension Exceed 3D, also available from the UCL Software Database, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Plotting with Pybdsim ===&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots did not pop up in a graphical window when generated, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once can also use pyplot.savefig() to save these figures, as some pybdsim plot functions do not have any outputsavefile arguments.&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2292</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2292"/>
		<updated>2019-02-20T23:41:53Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* High Priority */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Learn CAD conversion/import method, which is currently understood to be STEP to GDML conversion using python script - contact Jacinta.&lt;br /&gt;
* Run the BDSIM simulations with varying quadropole strength to familiarise with beam behaviour.&lt;br /&gt;
* Obtain and implement correct dimensions for new dose monitor enclosures during Clatterbridge visit on 28th Feb.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Update CAD model with Jacinta&#039;s measurements (cannot be finalised until Clatterbridge trip in order to measure dose monitor enclosures so set to low priority).&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
==== Term 1 ====&lt;br /&gt;
&lt;br /&gt;
* Background theory reading.&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Partially ran Geant4 simulation of CCC by Matthieu.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
&lt;br /&gt;
==== Term 2 ====&lt;br /&gt;
&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
* Created troubleshooting log and added more detail on fixing issues.&lt;br /&gt;
* Verified new dose monitor version and scheduled Clatterbridge visit.&lt;br /&gt;
* Modified CAD model to include updated physical measurements sent by Jacinta.&lt;br /&gt;
* Obtained and visualised CCC BDSIM gmad files sent by Jacinta.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up BDSIM envrionment ===&lt;br /&gt;
&lt;br /&gt;
* Initially ran the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim, giving a runtime error every time a pybdsim function is executed. The error I received was as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;h = _ROOT.Header()&lt;br /&gt;
RuntimeError:Header::Header()&lt;br /&gt;
could not resolve ::()&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
I fixed this issue by instead running the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim runtime error issues.&lt;br /&gt;
&lt;br /&gt;
=== X11 Forwarding via SSH ===&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster from a Windows machine, X11 forwarding was not enabled. This meant that any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
PuTTY for Windows was easily installed from the web. Exceed was installable from the UCL Software Database. &lt;br /&gt;
&lt;br /&gt;
The Exceed client must be opened before starting an ssh session via PuTTY. Once Exceed is open, open PuTTY and go to the SSH tab. Then, under the Auth tab, click on X11, and check the box &amp;quot;Enable X11 forwarding.&amp;quot; Then, navigate back to the session tab and connect to plus1 by writing plus1.hep.ucl.ac.uk. A PuTTY terminal window will then open allowing you to input username and password as usual.&lt;br /&gt;
&lt;br /&gt;
=== BDSIM Visualiser using OpenGL ===&lt;br /&gt;
&lt;br /&gt;
* Even after fixing this X11 issues, the BDSIM visualiser which renders the geometry in the BDSIM GUI was not working correctly, showing a static black screen. To fix this, I installed the Exceed extension Exceed 3D, also available from the UCL Software Database, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Plotting with Pybdsim ===&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots did not pop up in a graphical window when generated, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once can also use pyplot.savefig() to save these figures, as some pybdsim plot functions do not have any outputsavefile arguments.&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2222</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2222"/>
		<updated>2019-02-12T12:44:15Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* High Priority */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Learn CAD conversion/import method, which is currently understood to be STEP to GDML conversion using python script - contact Jacinta.&lt;br /&gt;
* Run the BDSIM simulations with varying quadropole strength to familiarise with beam behaviour.&lt;br /&gt;
* Obtain and implement correct dimensions for new dose monitor enclosures.&lt;br /&gt;
* Confirm Clatterbridge visit which is to be scheduled for 28th February.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Update CAD model with Jacinta&#039;s measurements (cannot be finalised until Clatterbridge trip in order to measure dose monitor enclosures so set to low priority).&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
==== Term 1 ====&lt;br /&gt;
&lt;br /&gt;
* Background theory reading.&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Partially ran Geant4 simulation of CCC by Matthieu.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
&lt;br /&gt;
==== Term 2 ====&lt;br /&gt;
&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
* Created troubleshooting log and added more detail on fixing issues.&lt;br /&gt;
* Verified new dose monitor version and scheduled Clatterbridge visit.&lt;br /&gt;
* Modified CAD model to include updated physical measurements sent by Jacinta.&lt;br /&gt;
* Obtained and visualised CCC BDSIM gmad files sent by Jacinta.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up BDSIM envrionment ===&lt;br /&gt;
&lt;br /&gt;
* Initially ran the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim, giving a runtime error every time a pybdsim function is executed. The error I received was as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;h = _ROOT.Header()&lt;br /&gt;
RuntimeError:Header::Header()&lt;br /&gt;
could not resolve ::()&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
I fixed this issue by instead running the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim runtime error issues.&lt;br /&gt;
&lt;br /&gt;
=== X11 Forwarding via SSH ===&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster from a Windows machine, X11 forwarding was not enabled. This meant that any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
PuTTY for Windows was easily installed from the web. Exceed was installable from the UCL Software Database. &lt;br /&gt;
&lt;br /&gt;
The Exceed client must be opened before starting an ssh session via PuTTY. Once Exceed is open, open PuTTY and go to the SSH tab. Then, under the Auth tab, click on X11, and check the box &amp;quot;Enable X11 forwarding.&amp;quot; Then, navigate back to the session tab and connect to plus1 by writing plus1.hep.ucl.ac.uk. A PuTTY terminal window will then open allowing you to input username and password as usual.&lt;br /&gt;
&lt;br /&gt;
=== BDSIM Visualiser using OpenGL ===&lt;br /&gt;
&lt;br /&gt;
* Even after fixing this X11 issues, the BDSIM visualiser which renders the geometry in the BDSIM GUI was not working correctly, showing a static black screen. To fix this, I installed the Exceed extension Exceed 3D, also available from the UCL Software Database, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Plotting with Pybdsim ===&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots did not pop up in a graphical window when generated, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once can also use pyplot.savefig() to save these figures, as some pybdsim plot functions do not have any outputsavefile arguments.&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2221</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2221"/>
		<updated>2019-02-12T12:35:03Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* High Priority */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Learn CAD conversion/import method, which is currently understood to be STEP to GDML conversion using python script.&lt;br /&gt;
* Run the BDSIM simulations with varying quadropole strength&lt;br /&gt;
* Obtain and implement correct dimensions for new dose monitor enclosures.&lt;br /&gt;
* Confirm Clatterbridge visit which is to be scheduled for 28th February.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Update CAD model with Jacinta&#039;s measurements (cannot be finalised until Clatterbridge trip in order to measure dose monitor enclosures so set to low priority).&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
==== Term 1 ====&lt;br /&gt;
&lt;br /&gt;
* Background theory reading.&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Partially ran Geant4 simulation of CCC by Matthieu.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
&lt;br /&gt;
==== Term 2 ====&lt;br /&gt;
&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
* Created troubleshooting log and added more detail on fixing issues.&lt;br /&gt;
* Verified new dose monitor version and scheduled Clatterbridge visit.&lt;br /&gt;
* Modified CAD model to include updated physical measurements sent by Jacinta.&lt;br /&gt;
* Obtained and visualised CCC BDSIM gmad files sent by Jacinta.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up BDSIM envrionment ===&lt;br /&gt;
&lt;br /&gt;
* Initially ran the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim, giving a runtime error every time a pybdsim function is executed. The error I received was as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;h = _ROOT.Header()&lt;br /&gt;
RuntimeError:Header::Header()&lt;br /&gt;
could not resolve ::()&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
I fixed this issue by instead running the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim runtime error issues.&lt;br /&gt;
&lt;br /&gt;
=== X11 Forwarding via SSH ===&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster from a Windows machine, X11 forwarding was not enabled. This meant that any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
PuTTY for Windows was easily installed from the web. Exceed was installable from the UCL Software Database. &lt;br /&gt;
&lt;br /&gt;
The Exceed client must be opened before starting an ssh session via PuTTY. Once Exceed is open, open PuTTY and go to the SSH tab. Then, under the Auth tab, click on X11, and check the box &amp;quot;Enable X11 forwarding.&amp;quot; Then, navigate back to the session tab and connect to plus1 by writing plus1.hep.ucl.ac.uk. A PuTTY terminal window will then open allowing you to input username and password as usual.&lt;br /&gt;
&lt;br /&gt;
=== BDSIM Visualiser using OpenGL ===&lt;br /&gt;
&lt;br /&gt;
* Even after fixing this X11 issues, the BDSIM visualiser which renders the geometry in the BDSIM GUI was not working correctly, showing a static black screen. To fix this, I installed the Exceed extension Exceed 3D, also available from the UCL Software Database, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Plotting with Pybdsim ===&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots did not pop up in a graphical window when generated, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once can also use pyplot.savefig() to save these figures, as some pybdsim plot functions do not have any outputsavefile arguments.&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2220</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2220"/>
		<updated>2019-02-11T12:44:12Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* Term 1 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Learn CAD conversion/import method, which is currently understood to be STEP to GDML conversion using python script.&lt;br /&gt;
* Obtain and implement correct dimensions for new dose monitor enclosures.&lt;br /&gt;
* Confirm Clatterbridge visit which is to be scheduled for 28th February.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Update CAD model with Jacinta&#039;s measurements (cannot be finalised until Clatterbridge trip in order to measure dose monitor enclosures so set to low priority).&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
==== Term 1 ====&lt;br /&gt;
&lt;br /&gt;
* Background theory reading.&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Partially ran Geant4 simulation of CCC by Matthieu.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
&lt;br /&gt;
==== Term 2 ====&lt;br /&gt;
&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
* Created troubleshooting log and added more detail on fixing issues.&lt;br /&gt;
* Verified new dose monitor version and scheduled Clatterbridge visit.&lt;br /&gt;
* Modified CAD model to include updated physical measurements sent by Jacinta.&lt;br /&gt;
* Obtained and visualised CCC BDSIM gmad files sent by Jacinta.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up BDSIM envrionment ===&lt;br /&gt;
&lt;br /&gt;
* Initially ran the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim, giving a runtime error every time a pybdsim function is executed. The error I received was as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;h = _ROOT.Header()&lt;br /&gt;
RuntimeError:Header::Header()&lt;br /&gt;
could not resolve ::()&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
I fixed this issue by instead running the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim runtime error issues.&lt;br /&gt;
&lt;br /&gt;
=== X11 Forwarding via SSH ===&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster from a Windows machine, X11 forwarding was not enabled. This meant that any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
PuTTY for Windows was easily installed from the web. Exceed was installable from the UCL Software Database. &lt;br /&gt;
&lt;br /&gt;
The Exceed client must be opened before starting an ssh session via PuTTY. Once Exceed is open, open PuTTY and go to the SSH tab. Then, under the Auth tab, click on X11, and check the box &amp;quot;Enable X11 forwarding.&amp;quot; Then, navigate back to the session tab and connect to plus1 by writing plus1.hep.ucl.ac.uk. A PuTTY terminal window will then open allowing you to input username and password as usual.&lt;br /&gt;
&lt;br /&gt;
=== BDSIM Visualiser using OpenGL ===&lt;br /&gt;
&lt;br /&gt;
* Even after fixing this X11 issues, the BDSIM visualiser which renders the geometry in the BDSIM GUI was not working correctly, showing a static black screen. To fix this, I installed the Exceed extension Exceed 3D, also available from the UCL Software Database, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Plotting with Pybdsim ===&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots did not pop up in a graphical window when generated, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once can also use pyplot.savefig() to save these figures, as some pybdsim plot functions do not have any outputsavefile arguments.&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2219</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2219"/>
		<updated>2019-02-11T12:43:35Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* Completed */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Learn CAD conversion/import method, which is currently understood to be STEP to GDML conversion using python script.&lt;br /&gt;
* Obtain and implement correct dimensions for new dose monitor enclosures.&lt;br /&gt;
* Confirm Clatterbridge visit which is to be scheduled for 28th February.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Update CAD model with Jacinta&#039;s measurements (cannot be finalised until Clatterbridge trip in order to measure dose monitor enclosures so set to low priority).&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
==== Term 1 ====&lt;br /&gt;
&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Partially ran Geant4 simulation of CCC by Matthieu.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
&lt;br /&gt;
==== Term 2 ====&lt;br /&gt;
&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
* Created troubleshooting log and added more detail on fixing issues.&lt;br /&gt;
* Verified new dose monitor version and scheduled Clatterbridge visit.&lt;br /&gt;
* Modified CAD model to include updated physical measurements sent by Jacinta.&lt;br /&gt;
* Obtained and visualised CCC BDSIM gmad files sent by Jacinta.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up BDSIM envrionment ===&lt;br /&gt;
&lt;br /&gt;
* Initially ran the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim, giving a runtime error every time a pybdsim function is executed. The error I received was as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;h = _ROOT.Header()&lt;br /&gt;
RuntimeError:Header::Header()&lt;br /&gt;
could not resolve ::()&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
I fixed this issue by instead running the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim runtime error issues.&lt;br /&gt;
&lt;br /&gt;
=== X11 Forwarding via SSH ===&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster from a Windows machine, X11 forwarding was not enabled. This meant that any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
PuTTY for Windows was easily installed from the web. Exceed was installable from the UCL Software Database. &lt;br /&gt;
&lt;br /&gt;
The Exceed client must be opened before starting an ssh session via PuTTY. Once Exceed is open, open PuTTY and go to the SSH tab. Then, under the Auth tab, click on X11, and check the box &amp;quot;Enable X11 forwarding.&amp;quot; Then, navigate back to the session tab and connect to plus1 by writing plus1.hep.ucl.ac.uk. A PuTTY terminal window will then open allowing you to input username and password as usual.&lt;br /&gt;
&lt;br /&gt;
=== BDSIM Visualiser using OpenGL ===&lt;br /&gt;
&lt;br /&gt;
* Even after fixing this X11 issues, the BDSIM visualiser which renders the geometry in the BDSIM GUI was not working correctly, showing a static black screen. To fix this, I installed the Exceed extension Exceed 3D, also available from the UCL Software Database, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Plotting with Pybdsim ===&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots did not pop up in a graphical window when generated, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once can also use pyplot.savefig() to save these figures, as some pybdsim plot functions do not have any outputsavefile arguments.&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2218</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2218"/>
		<updated>2019-02-11T12:40:06Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* Plotting with Pybdsim */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Learn CAD conversion/import method, which is currently understood to be STEP to GDML conversion using python script.&lt;br /&gt;
* Obtain and implement correct dimensions for new dose monitor enclosures.&lt;br /&gt;
* Confirm Clatterbridge visit which is to be scheduled for 28th February.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Update CAD model with Jacinta&#039;s measurements (cannot be finalised until Clatterbridge trip in order to measure dose monitor enclosures so set to low priority).&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
* Created troubleshooting log and added more detail on fixing issues.&lt;br /&gt;
* Verified new dose monitor version and scheduled Clatterbridge visit.&lt;br /&gt;
* Obtained and visualised CCC BDSIM gmad files which Jacinta sent.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up BDSIM envrionment ===&lt;br /&gt;
&lt;br /&gt;
* Initially ran the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim, giving a runtime error every time a pybdsim function is executed. The error I received was as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;h = _ROOT.Header()&lt;br /&gt;
RuntimeError:Header::Header()&lt;br /&gt;
could not resolve ::()&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
I fixed this issue by instead running the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim runtime error issues.&lt;br /&gt;
&lt;br /&gt;
=== X11 Forwarding via SSH ===&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster from a Windows machine, X11 forwarding was not enabled. This meant that any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
PuTTY for Windows was easily installed from the web. Exceed was installable from the UCL Software Database. &lt;br /&gt;
&lt;br /&gt;
The Exceed client must be opened before starting an ssh session via PuTTY. Once Exceed is open, open PuTTY and go to the SSH tab. Then, under the Auth tab, click on X11, and check the box &amp;quot;Enable X11 forwarding.&amp;quot; Then, navigate back to the session tab and connect to plus1 by writing plus1.hep.ucl.ac.uk. A PuTTY terminal window will then open allowing you to input username and password as usual.&lt;br /&gt;
&lt;br /&gt;
=== BDSIM Visualiser using OpenGL ===&lt;br /&gt;
&lt;br /&gt;
* Even after fixing this X11 issues, the BDSIM visualiser which renders the geometry in the BDSIM GUI was not working correctly, showing a static black screen. To fix this, I installed the Exceed extension Exceed 3D, also available from the UCL Software Database, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Plotting with Pybdsim ===&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots did not pop up in a graphical window when generated, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once can also use pyplot.savefig() to save these figures, as some pybdsim plot functions do not have any outputsavefile arguments.&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2217</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2217"/>
		<updated>2019-02-11T12:39:54Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* BDSIM Visualiser using OpenGL */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Learn CAD conversion/import method, which is currently understood to be STEP to GDML conversion using python script.&lt;br /&gt;
* Obtain and implement correct dimensions for new dose monitor enclosures.&lt;br /&gt;
* Confirm Clatterbridge visit which is to be scheduled for 28th February.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Update CAD model with Jacinta&#039;s measurements (cannot be finalised until Clatterbridge trip in order to measure dose monitor enclosures so set to low priority).&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
* Created troubleshooting log and added more detail on fixing issues.&lt;br /&gt;
* Verified new dose monitor version and scheduled Clatterbridge visit.&lt;br /&gt;
* Obtained and visualised CCC BDSIM gmad files which Jacinta sent.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up BDSIM envrionment ===&lt;br /&gt;
&lt;br /&gt;
* Initially ran the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim, giving a runtime error every time a pybdsim function is executed. The error I received was as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;h = _ROOT.Header()&lt;br /&gt;
RuntimeError:Header::Header()&lt;br /&gt;
could not resolve ::()&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
I fixed this issue by instead running the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim runtime error issues.&lt;br /&gt;
&lt;br /&gt;
=== X11 Forwarding via SSH ===&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster from a Windows machine, X11 forwarding was not enabled. This meant that any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
PuTTY for Windows was easily installed from the web. Exceed was installable from the UCL Software Database. &lt;br /&gt;
&lt;br /&gt;
The Exceed client must be opened before starting an ssh session via PuTTY. Once Exceed is open, open PuTTY and go to the SSH tab. Then, under the Auth tab, click on X11, and check the box &amp;quot;Enable X11 forwarding.&amp;quot; Then, navigate back to the session tab and connect to plus1 by writing plus1.hep.ucl.ac.uk. A PuTTY terminal window will then open allowing you to input username and password as usual.&lt;br /&gt;
&lt;br /&gt;
=== BDSIM Visualiser using OpenGL ===&lt;br /&gt;
&lt;br /&gt;
* Even after fixing this X11 issues, the BDSIM visualiser which renders the geometry in the BDSIM GUI was not working correctly, showing a static black screen. To fix this, I installed the Exceed extension Exceed 3D, also available from the UCL Software Database, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
== Plotting with Pybdsim ==&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots did not pop up in a graphical window when generated, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once can also use pyplot.savefig() to save these figures, as some pybdsim plot functions do not have any outputsavefile arguments.&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2216</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2216"/>
		<updated>2019-02-11T12:39:45Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* X11 Forwarding via SSH */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Learn CAD conversion/import method, which is currently understood to be STEP to GDML conversion using python script.&lt;br /&gt;
* Obtain and implement correct dimensions for new dose monitor enclosures.&lt;br /&gt;
* Confirm Clatterbridge visit which is to be scheduled for 28th February.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Update CAD model with Jacinta&#039;s measurements (cannot be finalised until Clatterbridge trip in order to measure dose monitor enclosures so set to low priority).&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
* Created troubleshooting log and added more detail on fixing issues.&lt;br /&gt;
* Verified new dose monitor version and scheduled Clatterbridge visit.&lt;br /&gt;
* Obtained and visualised CCC BDSIM gmad files which Jacinta sent.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up BDSIM envrionment ===&lt;br /&gt;
&lt;br /&gt;
* Initially ran the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim, giving a runtime error every time a pybdsim function is executed. The error I received was as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;h = _ROOT.Header()&lt;br /&gt;
RuntimeError:Header::Header()&lt;br /&gt;
could not resolve ::()&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
I fixed this issue by instead running the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim runtime error issues.&lt;br /&gt;
&lt;br /&gt;
=== X11 Forwarding via SSH ===&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster from a Windows machine, X11 forwarding was not enabled. This meant that any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
PuTTY for Windows was easily installed from the web. Exceed was installable from the UCL Software Database. &lt;br /&gt;
&lt;br /&gt;
The Exceed client must be opened before starting an ssh session via PuTTY. Once Exceed is open, open PuTTY and go to the SSH tab. Then, under the Auth tab, click on X11, and check the box &amp;quot;Enable X11 forwarding.&amp;quot; Then, navigate back to the session tab and connect to plus1 by writing plus1.hep.ucl.ac.uk. A PuTTY terminal window will then open allowing you to input username and password as usual.&lt;br /&gt;
&lt;br /&gt;
== BDSIM Visualiser using OpenGL ==&lt;br /&gt;
&lt;br /&gt;
* Even after fixing this X11 issues, the BDSIM visualiser which renders the geometry in the BDSIM GUI was not working correctly, showing a static black screen. To fix this, I installed the Exceed extension Exceed 3D, also available from the UCL Software Database, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
== Plotting with Pybdsim ==&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots did not pop up in a graphical window when generated, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once can also use pyplot.savefig() to save these figures, as some pybdsim plot functions do not have any outputsavefile arguments.&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2215</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2215"/>
		<updated>2019-02-11T12:39:35Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* Setting up BDSIM envrionment */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Learn CAD conversion/import method, which is currently understood to be STEP to GDML conversion using python script.&lt;br /&gt;
* Obtain and implement correct dimensions for new dose monitor enclosures.&lt;br /&gt;
* Confirm Clatterbridge visit which is to be scheduled for 28th February.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Update CAD model with Jacinta&#039;s measurements (cannot be finalised until Clatterbridge trip in order to measure dose monitor enclosures so set to low priority).&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
* Created troubleshooting log and added more detail on fixing issues.&lt;br /&gt;
* Verified new dose monitor version and scheduled Clatterbridge visit.&lt;br /&gt;
* Obtained and visualised CCC BDSIM gmad files which Jacinta sent.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up BDSIM envrionment ===&lt;br /&gt;
&lt;br /&gt;
* Initially ran the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim, giving a runtime error every time a pybdsim function is executed. The error I received was as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;h = _ROOT.Header()&lt;br /&gt;
RuntimeError:Header::Header()&lt;br /&gt;
could not resolve ::()&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
I fixed this issue by instead running the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim runtime error issues.&lt;br /&gt;
&lt;br /&gt;
== X11 Forwarding via SSH ==&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster from a Windows machine, X11 forwarding was not enabled. This meant that any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
PuTTY for Windows was easily installed from the web. Exceed was installable from the UCL Software Database. &lt;br /&gt;
&lt;br /&gt;
The Exceed client must be opened before starting an ssh session via PuTTY. Once Exceed is open, open PuTTY and go to the SSH tab. Then, under the Auth tab, click on X11, and check the box &amp;quot;Enable X11 forwarding.&amp;quot; Then, navigate back to the session tab and connect to plus1 by writing plus1.hep.ucl.ac.uk. A PuTTY terminal window will then open allowing you to input username and password as usual.&lt;br /&gt;
&lt;br /&gt;
== BDSIM Visualiser using OpenGL ==&lt;br /&gt;
&lt;br /&gt;
* Even after fixing this X11 issues, the BDSIM visualiser which renders the geometry in the BDSIM GUI was not working correctly, showing a static black screen. To fix this, I installed the Exceed extension Exceed 3D, also available from the UCL Software Database, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
== Plotting with Pybdsim ==&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots did not pop up in a graphical window when generated, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once can also use pyplot.savefig() to save these figures, as some pybdsim plot functions do not have any outputsavefile arguments.&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2214</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2214"/>
		<updated>2019-02-11T12:39:02Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* Troubleshooting Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Learn CAD conversion/import method, which is currently understood to be STEP to GDML conversion using python script.&lt;br /&gt;
* Obtain and implement correct dimensions for new dose monitor enclosures.&lt;br /&gt;
* Confirm Clatterbridge visit which is to be scheduled for 28th February.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Update CAD model with Jacinta&#039;s measurements (cannot be finalised until Clatterbridge trip in order to measure dose monitor enclosures so set to low priority).&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
* Created troubleshooting log and added more detail on fixing issues.&lt;br /&gt;
* Verified new dose monitor version and scheduled Clatterbridge visit.&lt;br /&gt;
* Obtained and visualised CCC BDSIM gmad files which Jacinta sent.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log ==&lt;br /&gt;
&lt;br /&gt;
== Setting up BDSIM envrionment ==&lt;br /&gt;
&lt;br /&gt;
* Initially ran the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim, giving a runtime error every time a pybdsim function is executed. The error I received was as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;h = _ROOT.Header()&lt;br /&gt;
RuntimeError:Header::Header()&lt;br /&gt;
could not resolve ::()&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
I fixed this issue by instead running the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim runtime error issues.&lt;br /&gt;
&lt;br /&gt;
== X11 Forwarding via SSH ==&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster from a Windows machine, X11 forwarding was not enabled. This meant that any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
PuTTY for Windows was easily installed from the web. Exceed was installable from the UCL Software Database. &lt;br /&gt;
&lt;br /&gt;
The Exceed client must be opened before starting an ssh session via PuTTY. Once Exceed is open, open PuTTY and go to the SSH tab. Then, under the Auth tab, click on X11, and check the box &amp;quot;Enable X11 forwarding.&amp;quot; Then, navigate back to the session tab and connect to plus1 by writing plus1.hep.ucl.ac.uk. A PuTTY terminal window will then open allowing you to input username and password as usual.&lt;br /&gt;
&lt;br /&gt;
== BDSIM Visualiser using OpenGL ==&lt;br /&gt;
&lt;br /&gt;
* Even after fixing this X11 issues, the BDSIM visualiser which renders the geometry in the BDSIM GUI was not working correctly, showing a static black screen. To fix this, I installed the Exceed extension Exceed 3D, also available from the UCL Software Database, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
== Plotting with Pybdsim ==&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots did not pop up in a graphical window when generated, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once can also use pyplot.savefig() to save these figures, as some pybdsim plot functions do not have any outputsavefile arguments.&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2213</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2213"/>
		<updated>2019-02-11T12:36:21Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* Low Priority */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Learn CAD conversion/import method, which is currently understood to be STEP to GDML conversion using python script.&lt;br /&gt;
* Obtain and implement correct dimensions for new dose monitor enclosures.&lt;br /&gt;
* Confirm Clatterbridge visit which is to be scheduled for 28th February.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Update CAD model with Jacinta&#039;s measurements (cannot be finalised until Clatterbridge trip in order to measure dose monitor enclosures so set to low priority).&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
* Created troubleshooting log and added more detail on fixing issues.&lt;br /&gt;
* Verified new dose monitor version and scheduled Clatterbridge visit.&lt;br /&gt;
* Obtained and visualised CCC BDSIM gmad files which Jacinta sent.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log ==&lt;br /&gt;
* Initially ran the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim, giving a runtime error every time a pybdsim function is executed. The error I received was as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;h = _ROOT.Header()&lt;br /&gt;
RuntimeError:Header::Header()&lt;br /&gt;
could not resolve ::()&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
I fixed this issue by instead running the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim runtime error issues.&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster from a Windows machine, X11 forwarding was not enabled. This meant that any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
PuTTY for Windows was easily installed from the web. Exceed was installable from the UCL Software Database. &lt;br /&gt;
&lt;br /&gt;
The Exceed client must be opened before starting an ssh session via PuTTY. Once Exceed is open, open PuTTY and go to the SSH tab. Then, under the Auth tab, click on X11, and check the box &amp;quot;Enable X11 forwarding.&amp;quot; Then, navigate back to the session tab and connect to plus1 by writing plus1.hep.ucl.ac.uk. A PuTTY terminal window will then open allowing you to input username and password as usual.&lt;br /&gt;
&lt;br /&gt;
* Even after fixing this X11 issues, the BDSIM visualiser which renders the geometry in the BDSIM GUI was not working correctly, showing a static black screen. To fix this, I installed the Exceed extension Exceed 3D, also available from the UCL Software Database, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots did not pop up in a graphical window when generated, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once can also use pyplot.savefig() to save these figures, as some pybdsim plot functions do not have any outputsavefile arguments.&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2212</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2212"/>
		<updated>2019-02-11T12:35:05Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* Completed */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Learn CAD conversion/import method, which is currently understood to be STEP to GDML conversion using python script.&lt;br /&gt;
* Obtain and implement correct dimensions for new dose monitor enclosures.&lt;br /&gt;
* Confirm Clatterbridge visit which is to be scheduled for 28th February.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
* Created troubleshooting log and added more detail on fixing issues.&lt;br /&gt;
* Verified new dose monitor version and scheduled Clatterbridge visit.&lt;br /&gt;
* Obtained and visualised CCC BDSIM gmad files which Jacinta sent.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log ==&lt;br /&gt;
* Initially ran the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim, giving a runtime error every time a pybdsim function is executed. The error I received was as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;h = _ROOT.Header()&lt;br /&gt;
RuntimeError:Header::Header()&lt;br /&gt;
could not resolve ::()&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
I fixed this issue by instead running the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim runtime error issues.&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster from a Windows machine, X11 forwarding was not enabled. This meant that any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
PuTTY for Windows was easily installed from the web. Exceed was installable from the UCL Software Database. &lt;br /&gt;
&lt;br /&gt;
The Exceed client must be opened before starting an ssh session via PuTTY. Once Exceed is open, open PuTTY and go to the SSH tab. Then, under the Auth tab, click on X11, and check the box &amp;quot;Enable X11 forwarding.&amp;quot; Then, navigate back to the session tab and connect to plus1 by writing plus1.hep.ucl.ac.uk. A PuTTY terminal window will then open allowing you to input username and password as usual.&lt;br /&gt;
&lt;br /&gt;
* Even after fixing this X11 issues, the BDSIM visualiser which renders the geometry in the BDSIM GUI was not working correctly, showing a static black screen. To fix this, I installed the Exceed extension Exceed 3D, also available from the UCL Software Database, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots did not pop up in a graphical window when generated, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once can also use pyplot.savefig() to save these figures, as some pybdsim plot functions do not have any outputsavefile arguments.&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2211</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2211"/>
		<updated>2019-02-11T12:33:13Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* High Priority */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Learn CAD conversion/import method, which is currently understood to be STEP to GDML conversion using python script.&lt;br /&gt;
* Obtain and implement correct dimensions for new dose monitor enclosures.&lt;br /&gt;
* Confirm Clatterbridge visit which is to be scheduled for 28th February.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
* Created troubleshooting log and added more detail on fixing issues.&lt;br /&gt;
* Verified new dose monitor version and scheduled Clatterbridge visit.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log ==&lt;br /&gt;
* Initially ran the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim, giving a runtime error every time a pybdsim function is executed. The error I received was as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;h = _ROOT.Header()&lt;br /&gt;
RuntimeError:Header::Header()&lt;br /&gt;
could not resolve ::()&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
I fixed this issue by instead running the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim runtime error issues.&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster from a Windows machine, X11 forwarding was not enabled. This meant that any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
PuTTY for Windows was easily installed from the web. Exceed was installable from the UCL Software Database. &lt;br /&gt;
&lt;br /&gt;
The Exceed client must be opened before starting an ssh session via PuTTY. Once Exceed is open, open PuTTY and go to the SSH tab. Then, under the Auth tab, click on X11, and check the box &amp;quot;Enable X11 forwarding.&amp;quot; Then, navigate back to the session tab and connect to plus1 by writing plus1.hep.ucl.ac.uk. A PuTTY terminal window will then open allowing you to input username and password as usual.&lt;br /&gt;
&lt;br /&gt;
* Even after fixing this X11 issues, the BDSIM visualiser which renders the geometry in the BDSIM GUI was not working correctly, showing a static black screen. To fix this, I installed the Exceed extension Exceed 3D, also available from the UCL Software Database, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots did not pop up in a graphical window when generated, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once can also use pyplot.savefig() to save these figures, as some pybdsim plot functions do not have any outputsavefile arguments.&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2206</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2206"/>
		<updated>2019-02-08T14:27:02Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* High Priority */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Find the Clatterbridge simulations for BDSIM which Laurie has referred to.&lt;br /&gt;
* Obtain and implement correct dimensions for new dose monitor enclosures.&lt;br /&gt;
* Confirm Clatterbridge visit which is to be scheduled for 28th February.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
* Created troubleshooting log and added more detail on fixing issues.&lt;br /&gt;
* Verified new dose monitor version and scheduled Clatterbridge visit.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log ==&lt;br /&gt;
* Initially ran the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim, giving a runtime error every time a pybdsim function is executed. The error I received was as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;h = _ROOT.Header()&lt;br /&gt;
RuntimeError:Header::Header()&lt;br /&gt;
could not resolve ::()&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
I fixed this issue by instead running the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim runtime error issues.&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster from a Windows machine, X11 forwarding was not enabled. This meant that any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
PuTTY for Windows was easily installed from the web. Exceed was installable from the UCL Software Database. &lt;br /&gt;
&lt;br /&gt;
The Exceed client must be opened before starting an ssh session via PuTTY. Once Exceed is open, open PuTTY and go to the SSH tab. Then, under the Auth tab, click on X11, and check the box &amp;quot;Enable X11 forwarding.&amp;quot; Then, navigate back to the session tab and connect to plus1 by writing plus1.hep.ucl.ac.uk. A PuTTY terminal window will then open allowing you to input username and password as usual.&lt;br /&gt;
&lt;br /&gt;
* Even after fixing this X11 issues, the BDSIM visualiser which renders the geometry in the BDSIM GUI was not working correctly, showing a static black screen. To fix this, I installed the Exceed extension Exceed 3D, also available from the UCL Software Database, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots did not pop up in a graphical window when generated, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once can also use pyplot.savefig() to save these figures, as some pybdsim plot functions do not have any outputsavefile arguments.&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2205</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2205"/>
		<updated>2019-02-08T14:26:28Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* Completed */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Expand on the troubleshooting log with more detail.&lt;br /&gt;
* Find the Clatterbridge simulations for BDSIM which Laurie has referred to.&lt;br /&gt;
* Obtain and implement correct dimensions for new dose monitor enclosures.&lt;br /&gt;
* Clatterbridge visit to be scheduled for 28th February.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
* Created troubleshooting log and added more detail on fixing issues.&lt;br /&gt;
* Verified new dose monitor version and scheduled Clatterbridge visit.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log ==&lt;br /&gt;
* Initially ran the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim, giving a runtime error every time a pybdsim function is executed. The error I received was as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;h = _ROOT.Header()&lt;br /&gt;
RuntimeError:Header::Header()&lt;br /&gt;
could not resolve ::()&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
I fixed this issue by instead running the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim runtime error issues.&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster from a Windows machine, X11 forwarding was not enabled. This meant that any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
PuTTY for Windows was easily installed from the web. Exceed was installable from the UCL Software Database. &lt;br /&gt;
&lt;br /&gt;
The Exceed client must be opened before starting an ssh session via PuTTY. Once Exceed is open, open PuTTY and go to the SSH tab. Then, under the Auth tab, click on X11, and check the box &amp;quot;Enable X11 forwarding.&amp;quot; Then, navigate back to the session tab and connect to plus1 by writing plus1.hep.ucl.ac.uk. A PuTTY terminal window will then open allowing you to input username and password as usual.&lt;br /&gt;
&lt;br /&gt;
* Even after fixing this X11 issues, the BDSIM visualiser which renders the geometry in the BDSIM GUI was not working correctly, showing a static black screen. To fix this, I installed the Exceed extension Exceed 3D, also available from the UCL Software Database, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots did not pop up in a graphical window when generated, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once can also use pyplot.savefig() to save these figures, as some pybdsim plot functions do not have any outputsavefile arguments.&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2204</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2204"/>
		<updated>2019-02-08T14:25:55Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* Completed */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Expand on the troubleshooting log with more detail.&lt;br /&gt;
* Find the Clatterbridge simulations for BDSIM which Laurie has referred to.&lt;br /&gt;
* Obtain and implement correct dimensions for new dose monitor enclosures.&lt;br /&gt;
* Clatterbridge visit to be scheduled for 28th February.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
* Created troubleshooting log, and added more detail on fixing issues.&lt;br /&gt;
* Verified new dose monitor version and scheduled Clatterbridge visit.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log ==&lt;br /&gt;
* Initially ran the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim, giving a runtime error every time a pybdsim function is executed. The error I received was as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;h = _ROOT.Header()&lt;br /&gt;
RuntimeError:Header::Header()&lt;br /&gt;
could not resolve ::()&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
I fixed this issue by instead running the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim runtime error issues.&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster from a Windows machine, X11 forwarding was not enabled. This meant that any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
PuTTY for Windows was easily installed from the web. Exceed was installable from the UCL Software Database. &lt;br /&gt;
&lt;br /&gt;
The Exceed client must be opened before starting an ssh session via PuTTY. Once Exceed is open, open PuTTY and go to the SSH tab. Then, under the Auth tab, click on X11, and check the box &amp;quot;Enable X11 forwarding.&amp;quot; Then, navigate back to the session tab and connect to plus1 by writing plus1.hep.ucl.ac.uk. A PuTTY terminal window will then open allowing you to input username and password as usual.&lt;br /&gt;
&lt;br /&gt;
* Even after fixing this X11 issues, the BDSIM visualiser which renders the geometry in the BDSIM GUI was not working correctly, showing a static black screen. To fix this, I installed the Exceed extension Exceed 3D, also available from the UCL Software Database, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots did not pop up in a graphical window when generated, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once can also use pyplot.savefig() to save these figures, as some pybdsim plot functions do not have any outputsavefile arguments.&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2203</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2203"/>
		<updated>2019-02-08T14:24:45Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* Troubleshooting Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Expand on the troubleshooting log with more detail.&lt;br /&gt;
* Find the Clatterbridge simulations for BDSIM which Laurie has referred to.&lt;br /&gt;
* Obtain and implement correct dimensions for new dose monitor enclosures.&lt;br /&gt;
* Clatterbridge visit to be scheduled for 28th February.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
* Created troubleshooting log.&lt;br /&gt;
* Verified new dose monitor version and scheduled Clatterbridge visit.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log ==&lt;br /&gt;
* Initially ran the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim, giving a runtime error every time a pybdsim function is executed. The error I received was as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;h = _ROOT.Header()&lt;br /&gt;
RuntimeError:Header::Header()&lt;br /&gt;
could not resolve ::()&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
I fixed this issue by instead running the following setup script:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim runtime error issues.&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster from a Windows machine, X11 forwarding was not enabled. This meant that any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
PuTTY for Windows was easily installed from the web. Exceed was installable from the UCL Software Database. &lt;br /&gt;
&lt;br /&gt;
The Exceed client must be opened before starting an ssh session via PuTTY. Once Exceed is open, open PuTTY and go to the SSH tab. Then, under the Auth tab, click on X11, and check the box &amp;quot;Enable X11 forwarding.&amp;quot; Then, navigate back to the session tab and connect to plus1 by writing plus1.hep.ucl.ac.uk. A PuTTY terminal window will then open allowing you to input username and password as usual.&lt;br /&gt;
&lt;br /&gt;
* Even after fixing this X11 issues, the BDSIM visualiser which renders the geometry in the BDSIM GUI was not working correctly, showing a static black screen. To fix this, I installed the Exceed extension Exceed 3D, also available from the UCL Software Database, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots did not pop up in a graphical window when generated, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once can also use pyplot.savefig() to save these figures, as some pybdsim plot functions do not have any outputsavefile arguments.&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2202</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2202"/>
		<updated>2019-02-08T14:15:29Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* Completed */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Expand on the troubleshooting log with more detail.&lt;br /&gt;
* Find the Clatterbridge simulations for BDSIM which Laurie has referred to.&lt;br /&gt;
* Obtain and implement correct dimensions for new dose monitor enclosures.&lt;br /&gt;
* Clatterbridge visit to be scheduled for 28th February.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
* Created troubleshooting log.&lt;br /&gt;
* Verified new dose monitor version and scheduled Clatterbridge visit.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log ==&lt;br /&gt;
* Initially ran &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim. To fix this, I instead run:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim issues.&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster, X11 forwarding was not enabled so any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
* BDSIM visualiser was not working correctly, showing a black screen. To fix this, I installed the Exceed extension Exceed 3D, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots do not pop up in a graphical window, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2201</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2201"/>
		<updated>2019-02-08T14:14:49Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* Low Priority */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Expand on the troubleshooting log with more detail.&lt;br /&gt;
* Find the Clatterbridge simulations for BDSIM which Laurie has referred to.&lt;br /&gt;
* Obtain and implement correct dimensions for new dose monitor enclosures.&lt;br /&gt;
* Clatterbridge visit to be scheduled for 28th February.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
* Created troubleshooting log.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log ==&lt;br /&gt;
* Initially ran &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim. To fix this, I instead run:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim issues.&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster, X11 forwarding was not enabled so any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
* BDSIM visualiser was not working correctly, showing a black screen. To fix this, I installed the Exceed extension Exceed 3D, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots do not pop up in a graphical window, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2200</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2200"/>
		<updated>2019-02-08T14:14:37Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* High Priority */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Expand on the troubleshooting log with more detail.&lt;br /&gt;
* Find the Clatterbridge simulations for BDSIM which Laurie has referred to.&lt;br /&gt;
* Obtain and implement correct dimensions for new dose monitor enclosures.&lt;br /&gt;
* Clatterbridge visit to be scheduled for 28th February.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
* Verify dose monitor version in CAD model.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
* Created troubleshooting log.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log ==&lt;br /&gt;
* Initially ran &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim. To fix this, I instead run:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim issues.&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster, X11 forwarding was not enabled so any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
* BDSIM visualiser was not working correctly, showing a black screen. To fix this, I installed the Exceed extension Exceed 3D, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots do not pop up in a graphical window, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2170</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2170"/>
		<updated>2019-02-05T11:53:53Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* High Priority */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Expand on the troubleshooting log with more detail.&lt;br /&gt;
* Chase Laurie Nevay about moving forward to Clatterbridge simulations.&lt;br /&gt;
* Simon to ask about dose monitor and Clatterbridge visit on Thurs 7th/Fri 8th Feb.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
* Verify dose monitor version in CAD model.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
* Created troubleshooting log.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log ==&lt;br /&gt;
* Initially ran &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim. To fix this, I instead run:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim issues.&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster, X11 forwarding was not enabled so any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
* BDSIM visualiser was not working correctly, showing a black screen. To fix this, I installed the Exceed extension Exceed 3D, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots do not pop up in a graphical window, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2169</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2169"/>
		<updated>2019-02-05T11:52:19Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* High Priority */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Expand on the troubleshooting log with more detail.&lt;br /&gt;
* Chase Laurie Nevay about moving forward to Clatterbridge simulations.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
* Verify dose monitor version in CAD model.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
* Created troubleshooting log.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log ==&lt;br /&gt;
* Initially ran &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim. To fix this, I instead run:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim issues.&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster, X11 forwarding was not enabled so any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
* BDSIM visualiser was not working correctly, showing a black screen. To fix this, I installed the Exceed extension Exceed 3D, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots do not pop up in a graphical window, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2168</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2168"/>
		<updated>2019-02-05T11:51:44Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* Completed */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Create log of previous troubleshooting and keep records for the future.&lt;br /&gt;
* Contact Laurie Nevay about moving forward to Clatterbridge simulations.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
* Verify dose monitor version in CAD model.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
* Created troubleshooting log.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log ==&lt;br /&gt;
* Initially ran &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim. To fix this, I instead run:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim issues.&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster, X11 forwarding was not enabled so any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
* BDSIM visualiser was not working correctly, showing a black screen. To fix this, I installed the Exceed extension Exceed 3D, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots do not pop up in a graphical window, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2134</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2134"/>
		<updated>2019-01-30T11:15:44Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* Completed */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Create log of previous troubleshooting and keep records for the future.&lt;br /&gt;
* Contact Laurie Nevay about moving forward to Clatterbridge simulations.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
* Verify dose monitor version in CAD model.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log ==&lt;br /&gt;
* Initially ran &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim. To fix this, I instead run:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim issues.&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster, X11 forwarding was not enabled so any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
* BDSIM visualiser was not working correctly, showing a black screen. To fix this, I installed the Exceed extension Exceed 3D, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots do not pop up in a graphical window, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2133</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2133"/>
		<updated>2019-01-30T11:15:06Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* Troubleshooting Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Create log of previous troubleshooting and keep records for the future.&lt;br /&gt;
* Contact Laurie Nevay about moving forward to Clatterbridge simulations.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
* Verify dose monitor version in CAD model.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log ==&lt;br /&gt;
* Initially ran &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim. To fix this, I instead run:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim issues.&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster, X11 forwarding was not enabled so any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
* BDSIM visualiser was not working correctly, showing a black screen. To fix this, I installed the Exceed extension Exceed 3D, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots do not pop up in a graphical window, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2132</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2132"/>
		<updated>2019-01-30T11:14:43Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* Troubleshooting Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Create log of previous troubleshooting and keep records for the future.&lt;br /&gt;
* Contact Laurie Nevay about moving forward to Clatterbridge simulations.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
* Verify dose monitor version in CAD model.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log ==&lt;br /&gt;
* Initially ran &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which partially works but crashes when running pybdsim. To fix this, I instead run:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
which fixes the pybdsim issues.&lt;br /&gt;
&lt;br /&gt;
* When using SSH to connect to Linux cluster, X11 forwarding was not enabled so any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
* BDSIM visualiser was not working correctly, showing a black screen. To fix this, I installed the Exceed extension Exceed 3D, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
&lt;br /&gt;
* Pybdsim plots do not pop up in a graphical window, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&#039;&#039;&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2131</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2131"/>
		<updated>2019-01-30T11:13:22Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* Completed */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Create log of previous troubleshooting and keep records for the future.&lt;br /&gt;
* Contact Laurie Nevay about moving forward to Clatterbridge simulations.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
* Verify dose monitor version in CAD model.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Setup Python 2.7 environment.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Log ==&lt;br /&gt;
* Initially ran $ source /unix/pbt/software/scripts/bdsim.sh, which partially works but crashes when running pybdsim. To fix this, I instead run &lt;br /&gt;
$ source /unix/pbt/software/scripts/bdsim_setup_jc.sh.&lt;br /&gt;
* When using SSH to connect to Linux cluster, X11 forwarding was not enabled so any graphical windows like ROOT TBrowser and BDSIM GUI could not be accessed. To get around this I use the Exceed client with X11-enabled client PuTTY.&lt;br /&gt;
* BDSIM visualiser was not working correctly, showing a black screen. To fix this, I installed the Exceed extension Exceed 3D, which enables the OpenGL visualiser. Once Exceed 3D is installed, one must open Xconfig from the Exceed terminal and go to the OpenGL tab. Check that &#039;Enable OpenGL&#039; is enabled, as well as the checkbox &#039;Direct Rendering&#039;. For my setup, all boxes are checked except for &#039;Overlay Support&#039;.&lt;br /&gt;
* Pybdsim plots do not pop up in a graphical window, even with X11 forwarding enabled. To force these plots to open, one must type the following:&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; import matplotlib.pyplot as plt&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; plt.show(block=False)&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2129</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2129"/>
		<updated>2019-01-30T11:01:51Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* Completed */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Create log of previous troubleshooting and keep records for the future.&lt;br /&gt;
* Contact Laurie Nevay about moving forward to Clatterbridge simulations.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
* Verify dose monitor version in CAD model.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
* Project interview.&lt;br /&gt;
* Fixed plot view issues and reported pybdsim bug.&lt;br /&gt;
* Fixed BDSIM OpenGL visualiser issues.&lt;br /&gt;
* Ran atf2 example in full.&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2128</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=2128"/>
		<updated>2019-01-30T11:00:33Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* High Priority */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Create log of previous troubleshooting and keep records for the future.&lt;br /&gt;
* Contact Laurie Nevay about moving forward to Clatterbridge simulations.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
* Verify dose monitor version in CAD model.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
* Project interview.&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=1983</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=1983"/>
		<updated>2019-01-16T14:54:18Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* To Do */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Run all pybdsim scripts on atf2 example after running new bdsim setup script.&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full.&lt;br /&gt;
* Update python analysis scripts.&lt;br /&gt;
* Verify dose monitor version in CAD model.&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
* Project interview.&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=1982</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=1982"/>
		<updated>2019-01-16T14:53:59Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* Completed */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Run all pybdsim scripts on atf2 example after running new bdsim setup script&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full&lt;br /&gt;
* Update python analysis scripts&lt;br /&gt;
* Verify dose monitor version in CAD model&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging.&lt;br /&gt;
* Progress report.&lt;br /&gt;
* Geant4 pencil beam example simulations.&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster.&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;br /&gt;
* Project interview.&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=1981</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=1981"/>
		<updated>2019-01-16T14:52:03Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: /* Completed */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Run all pybdsim scripts on atf2 example after running new bdsim setup script&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full&lt;br /&gt;
* Update python analysis scripts&lt;br /&gt;
* Verify dose monitor version in CAD model&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging&lt;br /&gt;
* Progress report&lt;br /&gt;
* Geant4 pencil beam example simulations&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster&lt;br /&gt;
* Fixed x11 forwarding issues.&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
	<entry>
		<id>https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=1980</id>
		<title>ELogs/OhieMayenin</title>
		<link rel="alternate" type="text/html" href="https://www.hep.ucl.ac.uk/pbt/pbtWiki/index.php?title=ELogs/OhieMayenin&amp;diff=1980"/>
		<updated>2019-01-16T14:49:44Z</updated>

		<summary type="html">&lt;p&gt;OhieMayenin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== To Do ==&lt;br /&gt;
&lt;br /&gt;
=== High Priority ===&lt;br /&gt;
&lt;br /&gt;
* Run all pybdsim scripts on atf2 example after running new bdsim setup script&lt;br /&gt;
&lt;br /&gt;
=== Low Priority ===&lt;br /&gt;
&lt;br /&gt;
* Rerun Geant4 Clatterbridge simulation in full&lt;br /&gt;
* Update python analysis scripts&lt;br /&gt;
* Verify dose monitor version in CAD model&lt;br /&gt;
&lt;br /&gt;
== Completed ==&lt;br /&gt;
&lt;br /&gt;
* Literature review.&lt;br /&gt;
* CAD model packaging&lt;br /&gt;
* Progress report&lt;br /&gt;
* Geant4 pencil beam example simulations&lt;br /&gt;
* Understand how to setup Geant4, BDSIM and Python environments on HEP Cluster&lt;/div&gt;</summary>
		<author><name>OhieMayenin</name></author>
	</entry>
</feed>