<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://ctd.inp.nsk.su/wiki/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://ctd.inp.nsk.su/wiki/index.php?action=history&amp;feed=atom&amp;title=SctParSim_%28python%29</id>
		<title>SctParSim (python) - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://ctd.inp.nsk.su/wiki/index.php?action=history&amp;feed=atom&amp;title=SctParSim_%28python%29"/>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php?title=SctParSim_(python)&amp;action=history"/>
		<updated>2026-05-14T06:30:12Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.24</generator>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php?title=SctParSim_(python)&amp;diff=1304&amp;oldid=prev</id>
		<title>Razuvaev: /* How to run */</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php?title=SctParSim_(python)&amp;diff=1304&amp;oldid=prev"/>
				<updated>2021-11-24T05:18:26Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;How to run&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 05:18, 24 November 2021&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;ssh stark -X&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;ssh stark -X&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;setupSCTAU; asetup Aurora,&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;1.&lt;/del&gt;0.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;1&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;setupSCTAU; asetup Aurora,0.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;2.3&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;mkdir workarea&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;mkdir workarea&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;cd workarea&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;cd workarea&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php?title=SctParSim_(python)&amp;diff=1298&amp;oldid=prev</id>
		<title>Razuvaev: Created page with &quot;= SctParSim (Python) =  This version of the parametric simulation had written in the Python language. The main difference is that this version has the ability to draw events  ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php?title=SctParSim_(python)&amp;diff=1298&amp;oldid=prev"/>
				<updated>2021-11-23T14:48:44Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;= SctParSim (Python) =  This version of the parametric simulation had written in the Python language. The main difference is that this version has the ability to draw events  ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= SctParSim (Python) =&lt;br /&gt;
&lt;br /&gt;
This version of the parametric simulation had written in the Python language. The main difference is that this version has the ability to draw events&lt;br /&gt;
&lt;br /&gt;
== How to run ==&lt;br /&gt;
&lt;br /&gt;
Login to stark or proxima machine.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ssh stark -X&lt;br /&gt;
setupSCTAU; asetup Aurora,1.0.1&lt;br /&gt;
mkdir workarea&lt;br /&gt;
cd workarea&lt;br /&gt;
mkdir run&lt;br /&gt;
cd run&lt;br /&gt;
cp /home/razuvaev/public/misc/pi_ms_f1_mppc2_px3_d200_mla4_graph2d.root .&lt;br /&gt;
cp /home/razuvaev/public/misc/gun1.cfg .&lt;br /&gt;
cp /home/razuvaev/public/misc/g4beamline_pi_plus_100k_parse.root .&lt;br /&gt;
cp /home/razuvaev/public/misc/g4beamline_mu_plus_100k_parse.root .&lt;br /&gt;
cp /home/whitem/public/misc/pi_p.root .&lt;br /&gt;
cp /home/whitem/public/misc/pi_m.root .&lt;br /&gt;
cp /home/whitem/public/misc/mu_p.root .&lt;br /&gt;
cp /home/whitem/public/misc/mu_m.root .&lt;br /&gt;
runparsim.py&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Options ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Option&lt;br /&gt;
! Run example&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;-b&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;--batch&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;runparsim.py -b&amp;lt;/code&amp;gt;&lt;br /&gt;
| Turn on the batch mode. Suppress EventDisplay execution.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;-c&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;--change&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;runparsim.py -c my_cfg_file.dat&amp;lt;/code&amp;gt;&lt;br /&gt;
| Change some parameters of the detector.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;-n&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;--neve&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;runparsim.py -n 31415&amp;lt;/code&amp;gt;&lt;br /&gt;
| The number of events to process.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;-g&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;--gun&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;runparsim.py -g&amp;lt;/code&amp;gt;&lt;br /&gt;
| Turn on the particle gun mode.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;-ig&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;--input-gun&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;runparsim.py -g -ig my_gun.dat&amp;lt;/code&amp;gt;&lt;br /&gt;
| Input particle gun configuration file.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;-i&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;--input&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;runparsim.py -i gen_dkpipi0.root&amp;lt;/code&amp;gt;&lt;br /&gt;
| Specify the input file.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;-o&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;--output&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;runparsim.py -o parsim_dkpipi0.root&amp;lt;/code&amp;gt;&lt;br /&gt;
| Specify the output file.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;--profile&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;runparsim.py --profile&amp;lt;/code&amp;gt;&lt;br /&gt;
| Turn on the cProfile to analyse the performance.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Event display ==&lt;br /&gt;
&lt;br /&gt;
The event display has two projections: x-y and y-z.&lt;br /&gt;
All detector subsystems are presented.&lt;br /&gt;
Some of them overlay, especially PIDs, it is not important for parametric simulation, but let's study several options at once.&lt;br /&gt;
All particles from AllGenParticles branch are presented at the plot by lines of different styles, colours and thicknesses.&lt;br /&gt;
Somehow the line thickness corresponds to the particle mass, the wide line --- the more massive particle.&lt;br /&gt;
Warm colours are devoted to positive charged particles and cold to negative ones.&lt;br /&gt;
Also, particle lines are labeled.&lt;br /&gt;
&lt;br /&gt;
The event display is switched on by default. To switch it off run simulation with &amp;lt;code&amp;gt;-b&amp;lt;/code&amp;gt; option.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Detector configuration ==&lt;br /&gt;
&lt;br /&gt;
The detector parameters can be changed via a configuration file ''my_cfg_file.dat'' placed in the main simulation folder.&lt;br /&gt;
The file has a simple structure --- one parameter and its value(s) per line.&lt;br /&gt;
A parameter's name and value should be separated by spaces.&lt;br /&gt;
Arrays should be written in [] brackets.&lt;br /&gt;
The values in arrays should be separated by commas.&lt;br /&gt;
Empty lines and lines contained incorrectly parameter names are ignored.&lt;br /&gt;
&lt;br /&gt;
In the example below the parameter at the first line and the second line is one number,&lt;br /&gt;
while the parameter at the third line is an array.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
trck.minPt 0.05&lt;br /&gt;
trck.corrMtx.pij -0.08&lt;br /&gt;
calo.resPar [0.167,0.0,0.011]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The parameters can be given in any order.&lt;br /&gt;
&lt;br /&gt;
All detector parameters can be viewed in the configuration files:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Subsystem&lt;br /&gt;
! Congiguration file&lt;br /&gt;
! Name to change parameters &lt;br /&gt;
|-&lt;br /&gt;
| ASHIPH&lt;br /&gt;
| &amp;lt;code&amp;gt;ashiphpars_std01.json&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;ashiph1030&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Calorimeter&lt;br /&gt;
| &amp;lt;code&amp;gt;calopars_std01.json&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;calo&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| FARICH&lt;br /&gt;
| &amp;lt;code&amp;gt;farichpars_std01.json&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;farich&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| FDIRC&lt;br /&gt;
| &amp;lt;code&amp;gt;fdircpars_std01.json&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;fdirc&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Muon system&lt;br /&gt;
| &amp;lt;code&amp;gt;muonpars_std01.json&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;muon&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| ToF&lt;br /&gt;
| &amp;lt;code&amp;gt;tofpars_std01.json&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;tof&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| ToP&lt;br /&gt;
| &amp;lt;code&amp;gt;toppars_std01.json&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;top&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Tracker&lt;br /&gt;
| &amp;lt;code&amp;gt;trkpars_std01.json&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;tracker&amp;lt;/code&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The detector subsystems sizes are stored in &amp;lt;code&amp;gt;detlayout_std01.json&amp;lt;/code&amp;gt;. They can be changed in the same way.&lt;br /&gt;
&lt;br /&gt;
== Particle gun ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Pictures ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:sctparsim_fdirc_angle_vs_true_p_psi3770.png|FDIRC angle vs true momentum.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	</feed>