<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.iac.isu.edu/index.php?action=history&amp;feed=atom&amp;title=GEANT4submit_builder.C</id>
	<title>GEANT4submit builder.C - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.iac.isu.edu/index.php?action=history&amp;feed=atom&amp;title=GEANT4submit_builder.C"/>
	<link rel="alternate" type="text/html" href="https://wiki.iac.isu.edu/index.php?title=GEANT4submit_builder.C&amp;action=history"/>
	<updated>2026-05-09T07:14:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>https://wiki.iac.isu.edu/index.php?title=GEANT4submit_builder.C&amp;diff=121163&amp;oldid=prev</id>
		<title>Vanwdani: Created page with &quot;&lt;pre&gt; #include &lt;iostream&gt; #include &lt;string&gt; #include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; #include &lt;fstream&gt; using namespace std;  //        void GEANT4submit_builder() {  for(int fi...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.iac.isu.edu/index.php?title=GEANT4submit_builder.C&amp;diff=121163&amp;oldid=prev"/>
		<updated>2018-01-23T02:42:36Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; #include &amp;lt;iostream&amp;gt; #include &amp;lt;string&amp;gt; #include &amp;lt;stdio.h&amp;gt; #include &amp;lt;stdlib.h&amp;gt; #include &amp;lt;fstream&amp;gt; using namespace std;  //        void GEANT4submit_builder() {  for(int fi...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
#include &amp;lt;iostream&amp;gt;&lt;br /&gt;
#include &amp;lt;string&amp;gt;&lt;br /&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
#include &amp;lt;stdlib.h&amp;gt;&lt;br /&gt;
#include &amp;lt;fstream&amp;gt;&lt;br /&gt;
using namespace std;&lt;br /&gt;
&lt;br /&gt;
//      &lt;br /&gt;
&lt;br /&gt;
void GEANT4submit_builder()&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
for(int file_parts=0;file_parts&amp;lt;106;file_parts++)&lt;br /&gt;
        {       &lt;br /&gt;
                char file[200]; &lt;br /&gt;
                if(file_parts&amp;lt;10)&lt;br /&gt;
                {&lt;br /&gt;
                        sprintf(file,&amp;quot;./submit/submit00%d&amp;quot;, file_parts);&lt;br /&gt;
                }&lt;br /&gt;
                if(file_parts&amp;lt;100 &amp;amp;&amp;amp; file_parts&amp;gt;9)&lt;br /&gt;
                {&lt;br /&gt;
                        sprintf(file,&amp;quot;./submit/submit0%d&amp;quot;, file_parts);&lt;br /&gt;
                }&lt;br /&gt;
                if(file_parts&amp;lt;1000 &amp;amp;&amp;amp; file_parts&amp;gt;99)&lt;br /&gt;
                {&lt;br /&gt;
                        sprintf(file,&amp;quot;./submit/submit%d&amp;quot;, file_parts);&lt;br /&gt;
                }&lt;br /&gt;
&lt;br /&gt;
                //printf(&amp;quot;%s\n&amp;quot;,file);&lt;br /&gt;
        ofstream myfile;&lt;br /&gt;
        myfile.open (file);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
          if(file_parts&amp;lt;10)&lt;br /&gt;
                {&lt;br /&gt;
                        myfile &amp;lt;&amp;lt; &amp;quot;cd /home/lds/src/GEANT4/4.9.6/geant4.9.6.p02/examples/novice/N02&amp;quot;;&lt;br /&gt;
                        myfile &amp;lt;&amp;lt; &amp;quot;\n&amp;quot;;         &lt;br /&gt;
                        myfile &amp;lt;&amp;lt; &amp;quot;./exampleN02 ParticleGunInputs/Run00&amp;quot;;&lt;br /&gt;
                        myfile &amp;lt;&amp;lt; file_parts;&lt;br /&gt;
                        myfile &amp;lt;&amp;lt; &amp;quot;.mac &amp;gt; out/Run00&amp;quot;;&lt;br /&gt;
                        myfile &amp;lt;&amp;lt; file_parts;&lt;br /&gt;
                        myfile &amp;lt;&amp;lt; &amp;quot;.out \n&amp;quot;;&lt;br /&gt;
                        myfile &amp;lt;&amp;lt; &amp;quot;mv MollerShield.dat AfterShieldInteraction/MollerShield_00&amp;quot;;&lt;br /&gt;
                        myfile &amp;lt;&amp;lt; file_parts;&lt;br /&gt;
                        myfile &amp;lt;&amp;lt; &amp;quot;.dat \n&amp;quot;;&lt;br /&gt;
                        myfile &amp;lt;&amp;lt; &amp;quot;\n&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
                }&lt;br /&gt;
        if(file_parts&amp;lt;100 &amp;amp;&amp;amp; file_parts&amp;gt;9)&lt;br /&gt;
                {&lt;br /&gt;
                        myfile &amp;lt;&amp;lt; &amp;quot;cd /home/lds/src/GEANT4/4.9.6/geant4.9.6.p02/examples/novice/N02&amp;quot;;&lt;br /&gt;
                        myfile &amp;lt;&amp;lt; &amp;quot;\n&amp;quot;;         &lt;br /&gt;
                        myfile &amp;lt;&amp;lt; &amp;quot;./exampleN02 ParticleGunInputs/Run0&amp;quot;;&lt;br /&gt;
                        myfile &amp;lt;&amp;lt; file_parts;&lt;br /&gt;
                        myfile &amp;lt;&amp;lt; &amp;quot;.mac &amp;gt; out/Run0&amp;quot;;&lt;br /&gt;
                        myfile &amp;lt;&amp;lt; file_parts;&lt;br /&gt;
                        myfile &amp;lt;&amp;lt; &amp;quot;.out \n&amp;quot;;&lt;br /&gt;
                        myfile &amp;lt;&amp;lt; &amp;quot;mv MollerShield.dat AfterShieldInteraction/MollerShield_0&amp;quot;;&lt;br /&gt;
                        myfile &amp;lt;&amp;lt; file_parts;&lt;br /&gt;
                        myfile &amp;lt;&amp;lt; &amp;quot;.dat \n&amp;quot;;&lt;br /&gt;
                        myfile &amp;lt;&amp;lt; &amp;quot;\n&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
                }&lt;br /&gt;
        if(file_parts&amp;lt;1000 &amp;amp;&amp;amp; file_parts&amp;gt;99)&lt;br /&gt;
                {&lt;br /&gt;
                        myfile &amp;lt;&amp;lt; &amp;quot;cd /home/lds/src/GEANT4/4.9.6/geant4.9.6.p02/examples/novice/N02&amp;quot;;&lt;br /&gt;
                        myfile &amp;lt;&amp;lt; &amp;quot;\n&amp;quot;;         &lt;br /&gt;
                        myfile &amp;lt;&amp;lt; &amp;quot;./exampleN02 ParticleGunInputs/Run&amp;quot;;&lt;br /&gt;
                        myfile &amp;lt;&amp;lt; file_parts;&lt;br /&gt;
                        myfile &amp;lt;&amp;lt; &amp;quot;.mac &amp;gt; out/Run&amp;quot;;&lt;br /&gt;
                        myfile &amp;lt;&amp;lt; file_parts;&lt;br /&gt;
                        myfile &amp;lt;&amp;lt; &amp;quot;.out \n&amp;quot;;&lt;br /&gt;
                        myfile &amp;lt;&amp;lt; &amp;quot;mv MollerShield.dat AfterShieldInteraction/MollerShield_&amp;quot;;&lt;br /&gt;
                        myfile &amp;lt;&amp;lt; file_parts;&lt;br /&gt;
                        myfile &amp;lt;&amp;lt; &amp;quot;.dat \n&amp;quot;;&lt;br /&gt;
                        myfile &amp;lt;&amp;lt; &amp;quot;\n&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
                }&lt;br /&gt;
        myfile.close();&lt;br /&gt;
        }&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Vanwdani</name></author>
	</entry>
</feed>