<?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/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Razuvaev</id>
		<title>Charm-Tau Detector - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://ctd.inp.nsk.su/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Razuvaev"/>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/Special:Contributions/Razuvaev"/>
		<updated>2026-07-28T23:05:00Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.19.24</generator>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/Theses</id>
		<title>Theses</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/Theses"/>
				<updated>2022-09-20T06:08:23Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== PhD ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Master theses ==&lt;br /&gt;
&lt;br /&gt;
* М. С. Белозёрова, &amp;quot;[[:Media:Диплом_Белозёрова_2022.pdf|Разработка параметрического моделирования и интерфейсов первичных генераторов событий для эксперимента на Супер С-Тау фабрике]]&amp;quot;, 2022, НГУ&lt;br /&gt;
* В. А. Майборода, &amp;quot;[[:Media:Маборода_Вера_NSU_master_thesis_2021.pdf‎|Пакет программ для отбора событий в эксперименте на Супер С-Тау фабрике]]&amp;quot;, 2021, НГУ&lt;br /&gt;
&lt;br /&gt;
== Bachelor theses ==&lt;br /&gt;
&lt;br /&gt;
* М. С. Белозёрова, &amp;quot;[[:Media:Белозёрова_баколаврский_диплом_2020.pdf‎|Разработка пакета программного обеспечения для параметрического моделирования детектора Супер С-Тау фабрики]]&amp;quot;, 2020, НГУ&lt;br /&gt;
&lt;br /&gt;
== Course works ==&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/File:%D0%91%D0%B5%D0%BB%D0%BE%D0%B7%D1%91%D1%80%D0%BE%D0%B2%D0%B0_%D0%B1%D0%B0%D0%BA%D0%BE%D0%BB%D0%B0%D0%B2%D1%80%D1%81%D0%BA%D0%B8%D0%B9_%D0%B4%D0%B8%D0%BF%D0%BB%D0%BE%D0%BC_2020.pdf</id>
		<title>File:Белозёрова баколаврский диплом 2020.pdf</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/File:%D0%91%D0%B5%D0%BB%D0%BE%D0%B7%D1%91%D1%80%D0%BE%D0%B2%D0%B0_%D0%B1%D0%B0%D0%BA%D0%BE%D0%BB%D0%B0%D0%B2%D1%80%D1%81%D0%BA%D0%B8%D0%B9_%D0%B4%D0%B8%D0%BF%D0%BB%D0%BE%D0%BC_2020.pdf"/>
				<updated>2022-09-20T06:07:17Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: Разработка пакета программного обеспечения для параметрического моделирования детектора Супер С-Тау фабрики&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Разработка пакета программного обеспечения для параметрического моделирования детектора Супер С-Тау фабрики&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/Theses</id>
		<title>Theses</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/Theses"/>
				<updated>2022-09-20T06:06:39Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== PhD ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Master theses ==&lt;br /&gt;
&lt;br /&gt;
* М. С. Белозёрова, &amp;quot;[[:Media:Диплом_Белозёрова_2022.pdf|Разработка параметрического моделирования и интерфейсов первичных генераторов событий для эксперимента на Супер С-Тау фабрике]]&amp;quot;, 2022, НГУ&lt;br /&gt;
* В. А. Майборода, &amp;quot;[[:Media:Маборода_Вера_NSU_master_thesis_2021.pdf‎|Пакет программ для отбора событий в эксперименте на Супер С-Тау фабрике]]&amp;quot;, 2021, НГУ&lt;br /&gt;
&lt;br /&gt;
== Bachelor theses ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Course works ==&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/File:%D0%9C%D0%B0%D0%B1%D0%BE%D1%80%D0%BE%D0%B4%D0%B0_%D0%92%D0%B5%D1%80%D0%B0_NSU_master_thesis_2021.pdf</id>
		<title>File:Маборода Вера NSU master thesis 2021.pdf</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/File:%D0%9C%D0%B0%D0%B1%D0%BE%D1%80%D0%BE%D0%B4%D0%B0_%D0%92%D0%B5%D1%80%D0%B0_NSU_master_thesis_2021.pdf"/>
				<updated>2022-09-20T05:58:38Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: Пакет программ для отбора событий в эксперименте на Супер С-Тау фабрике&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Пакет программ для отбора событий в эксперименте на Супер С-Тау фабрике&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/Theses</id>
		<title>Theses</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/Theses"/>
				<updated>2022-09-20T05:54:36Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: /* Master theses */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== PhD ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Master theses ==&lt;br /&gt;
&lt;br /&gt;
* М. С. Белозёрова, &amp;quot;[[:Media:Диплом_Белозёрова_2022.pdf|Разработка параметрического моделирования и интерфейсов первичных генераторов событий для эксперимента на Супер С-Тау фабрике]]&amp;quot;, 2022, НГУ&lt;br /&gt;
&lt;br /&gt;
== Bachelor theses ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Course works ==&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/File:%D0%94%D0%B8%D0%BF%D0%BB%D0%BE%D0%BC_%D0%91%D0%B5%D0%BB%D0%BE%D0%B7%D1%91%D1%80%D0%BE%D0%B2%D0%B0_2022.pdf</id>
		<title>File:Диплом Белозёрова 2022.pdf</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/File:%D0%94%D0%B8%D0%BF%D0%BB%D0%BE%D0%BC_%D0%91%D0%B5%D0%BB%D0%BE%D0%B7%D1%91%D1%80%D0%BE%D0%B2%D0%B0_2022.pdf"/>
				<updated>2022-09-20T05:50:00Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: Разработка параметрического моделирования и интерфейсов первичных генераторов событий для эксперимента на Супер С-Тау фабрике&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Разработка параметрического моделирования и интерфейсов первичных генераторов событий для эксперимента на Супер С-Тау фабрике&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/Theses</id>
		<title>Theses</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/Theses"/>
				<updated>2022-09-20T05:48:05Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: Created page with &amp;quot; == PhD ==    == Master theses ==  * М. С. Белозёрова   == Bachelor theses ==   == Course works ==&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== PhD ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Master theses ==&lt;br /&gt;
&lt;br /&gt;
* М. С. Белозёрова&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Bachelor theses ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Course works ==&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/Main_Page</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/Main_Page"/>
				<updated>2022-09-20T05:43:39Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Workshops ==&lt;br /&gt;
* [[18/10/2010 - Detector]]&lt;br /&gt;
* [[19/10/2010 - Collider]]&lt;br /&gt;
* [[1st workshop on physics at SCTF|18-19/12/2017 - Physics]]&lt;br /&gt;
* [[International workshop May 2018|26-27/05/2018 - Detector]]&lt;br /&gt;
* [[SCT talks|All SCTF talks]]&lt;br /&gt;
&lt;br /&gt;
== Documents ==&lt;br /&gt;
* [[CDR]]&lt;br /&gt;
* [[Reports]]&lt;br /&gt;
* [[Roadmap ]]&lt;br /&gt;
* Список участников проекта ScTau [[File:ScTau_collaborationList.pdf|ScTau_collaborationList.pdf]]&lt;br /&gt;
* [[Theses]]&lt;br /&gt;
&lt;br /&gt;
== Drawings ==&lt;br /&gt;
* [[Building 27/1/2]]&lt;br /&gt;
* [[Detector]]&lt;br /&gt;
&lt;br /&gt;
== Collaboration only ==&lt;br /&gt;
* [[Internal Main]]&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/SCT_talks</id>
		<title>SCT talks</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/SCT_talks"/>
				<updated>2022-09-14T06:29:32Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: /* Misc */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Dedicated workshops =&lt;br /&gt;
&lt;br /&gt;
== 2020, November 16-18, online ==&lt;br /&gt;
* [http://cicpi.ustc.edu.cn/indico/conferenceDisplay.py?ovw=True&amp;amp;confId=2760 Joint International Workshop for Super-Charm Tau Facility, 2020]&lt;br /&gt;
&lt;br /&gt;
== 2019, September 24-27, LPI, Moscow ==&lt;br /&gt;
* [https://c-tau.ru/ Second Joint meeting of Novosibirsk and Hefei projects]&lt;br /&gt;
* [[:Media:WS2019Sept24_27Moscow_program020919.pdf | Preliminary program]]&lt;br /&gt;
&lt;br /&gt;
== 2018, Dec 4-7, LAL Orsay ==&lt;br /&gt;
* [http://workshop-tau-charm-factory.lal.in2p3.fr/ Joint meeting of Novosibirsk and Hefei projects].&lt;br /&gt;
&lt;br /&gt;
== 2018, May 26-27, BINP ==&lt;br /&gt;
* CREMLIN WP7, [https://indico.inp.nsk.su/event/13/other-view?view=standard the second meeting on Novosibirsk project of Super c-tau factory]&lt;br /&gt;
&lt;br /&gt;
== 2017, December 18-19, BINP ==&lt;br /&gt;
* [[1st_workshop_on_physics_at_SCTF | Talks and slides]]&lt;br /&gt;
&lt;br /&gt;
= Conference talks =&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Date || Event || Location || Title || Speaker || Agenda || Slides&lt;br /&gt;
|-&lt;br /&gt;
| 2017.10.12 || 10th GSO Meeting || JINR || Accelerator complex with colliding electron-positron beams || Pavel Logachev || [https://gso.msk.ru/presentations/ list of talks] || [https://gso.msk.ru/Downloads/Presentations/Accelerator%20complex%20with%20colliding%20electron-positron%20beams.ppt slides]&lt;br /&gt;
|-&lt;br /&gt;
| 2018.05.21 || CHARM18 || BINP || A project of Super-charm-tau Factory in Novosibirsk || Eugene Levichev || [https://indico.inp.nsk.su/event/10/timetable indico] || [https://indico.inp.nsk.su/event/10/session/1/contribution/65/material/slides/0.pdf slides]&lt;br /&gt;
|-&lt;br /&gt;
| 2018.03.21 || 2nd workshop on HIEPA || Beijing || Injection facility for Novosibirsk Super Charm Tau Factory || Dmitry Berkaev || [http://cicpi.ustc.edu.cn/indico/conferenceOtherViews.py?view=standard&amp;amp;confId=1009#20180318 indico] || [http://cicpi.ustc.edu.cn/indico/getFile.py/access?contribId=33&amp;amp;sessionId=18&amp;amp;resId=0&amp;amp;materialId=slides&amp;amp;confId=1009 slides]&lt;br /&gt;
|-&lt;br /&gt;
| 2018.03.21 || 2nd workshop on HIEPA || Beijing || Particle Identification systems based on aerogel at BINP || Alexander Barnyakov || [http://cicpi.ustc.edu.cn/indico/conferenceOtherViews.py?view=standard&amp;amp;confId=1009#20180318 indico] || [http://cicpi.ustc.edu.cn/indico/getFile.py/access?contribId=40&amp;amp;sessionId=22&amp;amp;resId=0&amp;amp;materialId=slides&amp;amp;confId=1009 slides]&lt;br /&gt;
|-&lt;br /&gt;
| 2018.07.06 || ICHEP 2018 || Seoul || Super Charm-Tau Factory in Novosibirsk || Eugene Levichev || [https://indico.cern.ch/event/686555/sessions/276022/#20180706 indico] || [https://indico.cern.ch/event/686555/contributions/2962543/ indico]&lt;br /&gt;
|-&lt;br /&gt;
| 2018.08.04 || RICH 2018 || Moscow || PID system based on Focusing Aerogel RICH for Super c-τ Factory || Alexander Barnyakov || [https://rich2018.org/indico/event/1/ indico] || [[:Media:FARICHforCTau_RICH2018.pdf|slides]]&lt;br /&gt;
|-&lt;br /&gt;
| 2018.10.24 || ICPPA 2018 || Moscow || Status of the Super Charm-Tau project at Novosibirsk || Pavel Krokovny || [https://indico.particle.mephi.ru/event/22/contributions/1144/ indico] || [[:Media:Sctau_krokovny.pdf‎|slides]]&lt;br /&gt;
|-&lt;br /&gt;
| 2019.02.18 || VCI 2019 || Vienna || PID system for Super C-τ Factory at Novosibirsk || Alexander Barnyakov ||[https://indico.cern.ch/event/716539 indico] || [[:Media:SCTF_PIDoptions_poster.pdf|poster]]&lt;br /&gt;
|-&lt;br /&gt;
| 2019.06.07 || Photon2019 || INFN Frascati || Project of the Charm-Tau factory in Novosibirsk || Boris Shwarts || [https://agenda.infn.it/event/16289/contributions/89433/ page] || [[:Media:Talk-photon19-4.pdf|slides]]&lt;br /&gt;
|-&lt;br /&gt;
| 2019.08.08 || LP 2019 || Toronto || The Super Charm-Tau Factory in Novosibirsk || Alexander Barnyakov ||[https://indico.cern.ch/event/688643contributions/3427595 indico] || [[:Media:SCTF_LP2019v0.pdf|slides]]&lt;br /&gt;
|-&lt;br /&gt;
| 2019.09.11 || DeSyT2019 || Messina || The project of the Super Charm-Tau Factory in Novosibirsk || Alexander Barnyakov ||[http://newcleo.unime.it/Events/DeSyT2019/index.html site] || [[:Media:Novosibirsk_SCTF_DeSyT2019.pdf|slides]]&lt;br /&gt;
|-&lt;br /&gt;
| 2019.09.12 || DIRC2019 || Rauischholzhausen || Overview of PID options for experiments at the Super Charm-Tau Factory || Alexander Barnyakov ||[https://www.uni-giessen.de/fbz/fb07/fachgebiete/physik/institute/iipi/arbeitsgruppen/ag-dueren/aktuelles/DIRC2019/index_html site] || [[:Media:PID_options_for_SCTF_DIRC2019.pdf|slides]]&lt;br /&gt;
|-&lt;br /&gt;
| 2020.10.02 || Snowmass Townhall Meeting || USA (online) || Precision Experiments at Super Charm-Tau Facility || Vitaly Vorobyev || [https://indico.fnal.gov/event/45713/contributions/198533/ indico] || [[:Media:Snowmass_townhall_Vorobyev_BINP.pdf|slides]]&lt;br /&gt;
|-&lt;br /&gt;
| 2021.03.17 || AFAD-2021 || Novosibirsk || Computing &amp;amp; Software for the Super-Charm-Tau factory detector project || Andrey Sukharev || [https://indico.inp.nsk.su/event/42/contributions/2178/ indico] || [[:Media:Sukharev_sct_computing_software.pdf|slides]]&lt;br /&gt;
|-&lt;br /&gt;
| 2021.05.19 || vCHEP 2021 || Online || Software framework for the Super Charm-Tau factory detector project || Anastasiia Zhadan || [https://indico.cern.ch/event/948465/contributions/4324160/ indico] || [[:Media:Sctau_software.pdf‎|slides]], [https://cds.cern.ch/record/2767126 recording]&lt;br /&gt;
|-&lt;br /&gt;
| 2021.06.01 || CHARM 2020 || Mexico (online) || SCTF in Russia  || Vitaly Vorobyev || [https://indico.nucleares.unam.mx/event/1488/session/7/contribution/45 indico] || [[:Media:2021.06.01-Charm21-Vorobyev.pdf|slides]]&lt;br /&gt;
|-&lt;br /&gt;
| 2021.07.05 || GRID-2021 || Dubna || Computing environment for the Super-Charm-Tau factory detector project || Dmitry Maximov || [https://indico.jinr.ru/event/1086/contributions/13280/ indico] || [https://indico.jinr.ru/event/1086/contributions/13280/attachments/10376/17011/sctau_software.pdf slides]&lt;br /&gt;
|-&lt;br /&gt;
| 2021.10.01 || TAU2021 || Indiana/USA || Super Charm-Tau factory in Russia || Denis Epifanov || [https://indico.cern.ch/event/848732/ indico] || [https://indico.cern.ch/event/848732/contributions/4524464/attachments/2320819/3951917/epifanov_sctf_tau2021.pdf slides]&lt;br /&gt;
|-&lt;br /&gt;
| 2022.09.15 || PhiPsi2022 || ShangHai/China || Status of Super charm-tau factory project || Ivan Logashenko || [https://indico.ihep.ac.cn/event/17032 indico] || [https://indico.ihep.ac.cn/event/17032/contributions/51676/ slides]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Seminars =&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Date || Organization || Location || Title || Speaker || Slides&lt;br /&gt;
|-&lt;br /&gt;
| 2018.03.26 || Milano University Bicocсa || Italy || The BINP Super Charm-Tau Factory project || Alexander Barnyakov || [[:Media:Ctau2018march_Milano_pr.pdf|slides]]&lt;br /&gt;
|-&lt;br /&gt;
| 2018.06.26 || INFN  Pisa|| Italy || The e+e- experiments in the BINP and the super c-tau factory project || Fedor Ignatov || [[:Media:BINPaccelCTau_ctau_2018Pisa_2parts.pdf|slides]]&lt;br /&gt;
|-&lt;br /&gt;
| 2017.06.06 || INFN  Lecce|| Italy || The e+e- experiments in the BINP (Novosibirsk, Russia) and the c-tau factory project || Fedor Ignatov || [[:Media:BINPaccel_ctaumix_LecceJune2017.pdf|slides]]&lt;br /&gt;
|-&lt;br /&gt;
| 2018.09.27 || PNPI || St. Petersburg || Проект &amp;quot;Супер С-Тау фабрики&amp;quot; || Alexander Barnyakov, Vitaly Vorobyev || [[:Media:Super-c-tau-PNPI-Sept2018_noanim.pdf|part1]] [[:Media:ctau_det2018sept.pdf|part2]]&lt;br /&gt;
|-&lt;br /&gt;
| 2018.11.02 || BINP || Novosibirsk || SCTF: accelerator project || Pavel Piminov || [[:Media:Piminov_-_Super-ct-Factory_for_scd-software.pdf|slides]] &lt;br /&gt;
|-&lt;br /&gt;
| 2018.11.09 || BINP || Novosibirsk || Drift chamber design proposal SCTF || Korneliy Todyshev || [[:Media:DCvariant.pdf|slides]] &lt;br /&gt;
|-&lt;br /&gt;
| 2018.11.13 || BINP || Novosibirsk || Muon system for the Super c-tau factory || Timofey Uglov || [[:Media:Uglov_2018_11_13_Talk.pdf|slides]] &lt;br /&gt;
|-&lt;br /&gt;
| 2019.12.13 || BINP || Novosibirsk || Детектор для Супер Ц-Тау фабрики || Alexander Barnyakov || [[:Media:SCT_Detector_review.pdf|slides]]&lt;br /&gt;
|-&lt;br /&gt;
| 2020.11.15 || BINP || Novosibirsk || Measuring the Weinberg angle at SCT || Vitaly Vorobyev || [[:Media:2020.11.15_Weinberg.pdf|slides]]&lt;br /&gt;
|-&lt;br /&gt;
| 2021.04.15 || LPI || Moscow || Проект &amp;quot;Супер Чарм-Тау фабрики&amp;quot; || Vitaly Vorobyev, Alexander Barnyakov || [[:Media:2021.04.14-ФИАН.pdf|part 1]] part 2&lt;br /&gt;
|-&lt;br /&gt;
| 2021.04.22 || PNPI || St. Petersburg (online) || Проект &amp;quot;Супер Чарм-Тау фабрики&amp;quot; || Vitaly Vorobyev || [[:Media:2021.04.22-ПИЯФ.pdf|slides]]&lt;br /&gt;
|-&lt;br /&gt;
| 2021.06.21 || BINP || Novosibirsk || SCT: comprehensive status report || Vitaly Vorobyev, Anton Bogomyagkov, Alexander Barnyakov, Ivan Logashenko || [https://disk.yandex.ru/d/iAoezUFoVgEDrA Slides and recording]&lt;br /&gt;
|-&lt;br /&gt;
| 2021.07.07 || JINR || Dubna || Super charm-tau factory: precision experiments with tau lepton and charmed hadrons || Vitaly Vorobyev, Ivan Logashenko || [https://indico.jinr.ru/event/2328/ indico], [[:Media:2021.07.07-Dubna-SCT-Vorobyev.pptx|part1]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Misc =&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Date || Event || Location || Title || Speaker || Agenda || Slides&lt;br /&gt;
|-&lt;br /&gt;
| 2022.02.11 || Научная сессия ИЯФ || BINP || Супер С-Тау фабрика || Ivan Logashenko ||  || &lt;br /&gt;
|-&lt;br /&gt;
| 2021.02.04 || Научная сессия ИЯФ || BINP || Супер С-Тау фабрика || Ivan Logashenko || [https://inp.nsk.su/sobytia/nauchnye-sessii/2021 agenda] || [https://inp.nsk.su/images/pdf/sessii/2021-Logashenko.pdf slides]&lt;br /&gt;
|-&lt;br /&gt;
| 2020.01.31 || Научная сессия ИЯФ || BINP || Супер С-Тау фабрика || Vitaly Vorobyev || [https://inp.nsk.su/sobytia/nauchnye-sessii/2020 agenda] || [[:Media:2020.01.31_BINP-session.pdf|slides]]&lt;br /&gt;
|-&lt;br /&gt;
| 2019.02.22 || Научная сессия ИЯФ || BINP || Супер С-Тау фабрика: эксперимент и детектор || Vitaly Vorobyev || [https://inp.nsk.su/sobytia/nauchnye-sessii/2019 agenda] || [https://inp.nsk.su/images/pdf/sessii/Vorobyev_2019BINPSession_v1.3.pdf slides]&lt;br /&gt;
|-&lt;br /&gt;
| 2019.02.22 || Научная сессия ИЯФ || BINP || Супер С-Тау фабрика: накопитель || Anton Bogomyagkov || [https://inp.nsk.su/sobytia/nauchnye-sessii/2019 agenda] || [https://inp.nsk.su/images/pdf/sessii/Bogomyagkov_CTau_2019.pdf slides]&lt;br /&gt;
|-&lt;br /&gt;
| 2018.04.09 || VII ММК &amp;quot;ФЭЧ и космология 2018&amp;quot; || LPI, Moscow || Физика на Супер-c-tau фабрике || Vitaly Vorobyev || [http://belle.lebedev.ru/conf_lpi_2018/?page_id=257 agenda] || [http://belle.lebedev.ru/conf_lpi_2018/wp-content/uploads/participants-database/super-c-tau-lpi-2018.pptx slides]&lt;br /&gt;
|-&lt;br /&gt;
| 2018.03.16 || Научная сессия ИЯФ || BINP || Физическая программа Супер С-Тау фабрики || Vitaly Vorobyev || [http://www.inp.nsk.su/sobytia/nauchnye-sessii/2018 agenda] || [http://www.inp.nsk.su/images/pdf/sessii/08%20%D0%92%D0%BE%D1%80%D0%BE%D0%B1%D1%8C%D0%B5%D0%B2.%20%D0%A4%D0%B8%D0%B7%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%B0%D1%8F%20%D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%BC%D0%B0%20%D0%A1%D1%83%D0%BF%D0%B5%D1%80%20%D0%A1-%D0%A2%D0%B0%D1%83%20%D1%84%D0%B0%D0%B1%D1%80%D0%B8%D0%BA%D0%B8.pdf slides]&lt;br /&gt;
|-&lt;br /&gt;
| 2018.03.16 || Научная сессия ИЯФ || BINP || Статус проекта Супер С-Тау фабрики || Eugene Levichev || [http://www.inp.nsk.su/sobytia/nauchnye-sessii/2018 agenda] || [http://www.inp.nsk.su/images/pdf/sessii/09%20%D0%95.%20%D0%9B%D0%B5%D0%B2%D0%B8%D1%87%D0%B5%D0%B2.%20%D0%A1%D1%82%D0%B0%D1%82%D1%83%D1%81%20%D0%BF%D1%80%D0%BE%D0%B5%D0%BA%D1%82%D0%B0%20%D0%A1%D1%83%D0%BF%D0%B5%D1%80%20%D0%A1-%D0%A2%D0%B0%D1%83%20%D1%84%D0%B0%D0%B1%D1%80%D0%B8%D0%BA%D0%B8.pdf slides]&lt;br /&gt;
|-&lt;br /&gt;
| 2017.01.27 || Научная сессия ИЯФ || BINP || Перспективные детекторные технологии для будущих экспериментов || Barnyakov Alexander || [http://www.inp.nsk.su/sobytia/nauchnye-sessii/2017 agenda] || [http://www.inp.nsk.su/news/rss/2017_196_07Barnyakov.pdf slides]&lt;br /&gt;
|-&lt;br /&gt;
| 2014.02.07 || Научная сессия ИЯФ || BINP || Проект Супер Чарм-Тау фабрики || Eugene Levichev || [http://www.inp.nsk.su/sobytia/nauchnye-sessii/2014 agenda] || [http://www.inp.nsk.su/news/rss/2014_136_09Skniskiy.pdf slides]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[User:V.S.Vorobev|V.S.Vorobev]] ([[User talk:V.S.Vorobev|talk]]) 15:35, 30 May 2018 (+07)&lt;br /&gt;
[[Category:Software]]&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/SCT_talks</id>
		<title>SCT talks</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/SCT_talks"/>
				<updated>2022-09-14T06:13:51Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: /* Conference talks */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Dedicated workshops =&lt;br /&gt;
&lt;br /&gt;
== 2020, November 16-18, online ==&lt;br /&gt;
* [http://cicpi.ustc.edu.cn/indico/conferenceDisplay.py?ovw=True&amp;amp;confId=2760 Joint International Workshop for Super-Charm Tau Facility, 2020]&lt;br /&gt;
&lt;br /&gt;
== 2019, September 24-27, LPI, Moscow ==&lt;br /&gt;
* [https://c-tau.ru/ Second Joint meeting of Novosibirsk and Hefei projects]&lt;br /&gt;
* [[:Media:WS2019Sept24_27Moscow_program020919.pdf | Preliminary program]]&lt;br /&gt;
&lt;br /&gt;
== 2018, Dec 4-7, LAL Orsay ==&lt;br /&gt;
* [http://workshop-tau-charm-factory.lal.in2p3.fr/ Joint meeting of Novosibirsk and Hefei projects].&lt;br /&gt;
&lt;br /&gt;
== 2018, May 26-27, BINP ==&lt;br /&gt;
* CREMLIN WP7, [https://indico.inp.nsk.su/event/13/other-view?view=standard the second meeting on Novosibirsk project of Super c-tau factory]&lt;br /&gt;
&lt;br /&gt;
== 2017, December 18-19, BINP ==&lt;br /&gt;
* [[1st_workshop_on_physics_at_SCTF | Talks and slides]]&lt;br /&gt;
&lt;br /&gt;
= Conference talks =&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Date || Event || Location || Title || Speaker || Agenda || Slides&lt;br /&gt;
|-&lt;br /&gt;
| 2017.10.12 || 10th GSO Meeting || JINR || Accelerator complex with colliding electron-positron beams || Pavel Logachev || [https://gso.msk.ru/presentations/ list of talks] || [https://gso.msk.ru/Downloads/Presentations/Accelerator%20complex%20with%20colliding%20electron-positron%20beams.ppt slides]&lt;br /&gt;
|-&lt;br /&gt;
| 2018.05.21 || CHARM18 || BINP || A project of Super-charm-tau Factory in Novosibirsk || Eugene Levichev || [https://indico.inp.nsk.su/event/10/timetable indico] || [https://indico.inp.nsk.su/event/10/session/1/contribution/65/material/slides/0.pdf slides]&lt;br /&gt;
|-&lt;br /&gt;
| 2018.03.21 || 2nd workshop on HIEPA || Beijing || Injection facility for Novosibirsk Super Charm Tau Factory || Dmitry Berkaev || [http://cicpi.ustc.edu.cn/indico/conferenceOtherViews.py?view=standard&amp;amp;confId=1009#20180318 indico] || [http://cicpi.ustc.edu.cn/indico/getFile.py/access?contribId=33&amp;amp;sessionId=18&amp;amp;resId=0&amp;amp;materialId=slides&amp;amp;confId=1009 slides]&lt;br /&gt;
|-&lt;br /&gt;
| 2018.03.21 || 2nd workshop on HIEPA || Beijing || Particle Identification systems based on aerogel at BINP || Alexander Barnyakov || [http://cicpi.ustc.edu.cn/indico/conferenceOtherViews.py?view=standard&amp;amp;confId=1009#20180318 indico] || [http://cicpi.ustc.edu.cn/indico/getFile.py/access?contribId=40&amp;amp;sessionId=22&amp;amp;resId=0&amp;amp;materialId=slides&amp;amp;confId=1009 slides]&lt;br /&gt;
|-&lt;br /&gt;
| 2018.07.06 || ICHEP 2018 || Seoul || Super Charm-Tau Factory in Novosibirsk || Eugene Levichev || [https://indico.cern.ch/event/686555/sessions/276022/#20180706 indico] || [https://indico.cern.ch/event/686555/contributions/2962543/ indico]&lt;br /&gt;
|-&lt;br /&gt;
| 2018.08.04 || RICH 2018 || Moscow || PID system based on Focusing Aerogel RICH for Super c-τ Factory || Alexander Barnyakov || [https://rich2018.org/indico/event/1/ indico] || [[:Media:FARICHforCTau_RICH2018.pdf|slides]]&lt;br /&gt;
|-&lt;br /&gt;
| 2018.10.24 || ICPPA 2018 || Moscow || Status of the Super Charm-Tau project at Novosibirsk || Pavel Krokovny || [https://indico.particle.mephi.ru/event/22/contributions/1144/ indico] || [[:Media:Sctau_krokovny.pdf‎|slides]]&lt;br /&gt;
|-&lt;br /&gt;
| 2019.02.18 || VCI 2019 || Vienna || PID system for Super C-τ Factory at Novosibirsk || Alexander Barnyakov ||[https://indico.cern.ch/event/716539 indico] || [[:Media:SCTF_PIDoptions_poster.pdf|poster]]&lt;br /&gt;
|-&lt;br /&gt;
| 2019.06.07 || Photon2019 || INFN Frascati || Project of the Charm-Tau factory in Novosibirsk || Boris Shwarts || [https://agenda.infn.it/event/16289/contributions/89433/ page] || [[:Media:Talk-photon19-4.pdf|slides]]&lt;br /&gt;
|-&lt;br /&gt;
| 2019.08.08 || LP 2019 || Toronto || The Super Charm-Tau Factory in Novosibirsk || Alexander Barnyakov ||[https://indico.cern.ch/event/688643contributions/3427595 indico] || [[:Media:SCTF_LP2019v0.pdf|slides]]&lt;br /&gt;
|-&lt;br /&gt;
| 2019.09.11 || DeSyT2019 || Messina || The project of the Super Charm-Tau Factory in Novosibirsk || Alexander Barnyakov ||[http://newcleo.unime.it/Events/DeSyT2019/index.html site] || [[:Media:Novosibirsk_SCTF_DeSyT2019.pdf|slides]]&lt;br /&gt;
|-&lt;br /&gt;
| 2019.09.12 || DIRC2019 || Rauischholzhausen || Overview of PID options for experiments at the Super Charm-Tau Factory || Alexander Barnyakov ||[https://www.uni-giessen.de/fbz/fb07/fachgebiete/physik/institute/iipi/arbeitsgruppen/ag-dueren/aktuelles/DIRC2019/index_html site] || [[:Media:PID_options_for_SCTF_DIRC2019.pdf|slides]]&lt;br /&gt;
|-&lt;br /&gt;
| 2020.10.02 || Snowmass Townhall Meeting || USA (online) || Precision Experiments at Super Charm-Tau Facility || Vitaly Vorobyev || [https://indico.fnal.gov/event/45713/contributions/198533/ indico] || [[:Media:Snowmass_townhall_Vorobyev_BINP.pdf|slides]]&lt;br /&gt;
|-&lt;br /&gt;
| 2021.03.17 || AFAD-2021 || Novosibirsk || Computing &amp;amp; Software for the Super-Charm-Tau factory detector project || Andrey Sukharev || [https://indico.inp.nsk.su/event/42/contributions/2178/ indico] || [[:Media:Sukharev_sct_computing_software.pdf|slides]]&lt;br /&gt;
|-&lt;br /&gt;
| 2021.05.19 || vCHEP 2021 || Online || Software framework for the Super Charm-Tau factory detector project || Anastasiia Zhadan || [https://indico.cern.ch/event/948465/contributions/4324160/ indico] || [[:Media:Sctau_software.pdf‎|slides]], [https://cds.cern.ch/record/2767126 recording]&lt;br /&gt;
|-&lt;br /&gt;
| 2021.06.01 || CHARM 2020 || Mexico (online) || SCTF in Russia  || Vitaly Vorobyev || [https://indico.nucleares.unam.mx/event/1488/session/7/contribution/45 indico] || [[:Media:2021.06.01-Charm21-Vorobyev.pdf|slides]]&lt;br /&gt;
|-&lt;br /&gt;
| 2021.07.05 || GRID-2021 || Dubna || Computing environment for the Super-Charm-Tau factory detector project || Dmitry Maximov || [https://indico.jinr.ru/event/1086/contributions/13280/ indico] || [https://indico.jinr.ru/event/1086/contributions/13280/attachments/10376/17011/sctau_software.pdf slides]&lt;br /&gt;
|-&lt;br /&gt;
| 2021.10.01 || TAU2021 || Indiana/USA || Super Charm-Tau factory in Russia || Denis Epifanov || [https://indico.cern.ch/event/848732/ indico] || [https://indico.cern.ch/event/848732/contributions/4524464/attachments/2320819/3951917/epifanov_sctf_tau2021.pdf slides]&lt;br /&gt;
|-&lt;br /&gt;
| 2022.09.15 || PhiPsi2022 || ShangHai/China || Status of Super charm-tau factory project || Ivan Logashenko || [https://indico.ihep.ac.cn/event/17032 indico] || [https://indico.ihep.ac.cn/event/17032/contributions/51676/ slides]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Seminars =&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Date || Organization || Location || Title || Speaker || Slides&lt;br /&gt;
|-&lt;br /&gt;
| 2018.03.26 || Milano University Bicocсa || Italy || The BINP Super Charm-Tau Factory project || Alexander Barnyakov || [[:Media:Ctau2018march_Milano_pr.pdf|slides]]&lt;br /&gt;
|-&lt;br /&gt;
| 2018.06.26 || INFN  Pisa|| Italy || The e+e- experiments in the BINP and the super c-tau factory project || Fedor Ignatov || [[:Media:BINPaccelCTau_ctau_2018Pisa_2parts.pdf|slides]]&lt;br /&gt;
|-&lt;br /&gt;
| 2017.06.06 || INFN  Lecce|| Italy || The e+e- experiments in the BINP (Novosibirsk, Russia) and the c-tau factory project || Fedor Ignatov || [[:Media:BINPaccel_ctaumix_LecceJune2017.pdf|slides]]&lt;br /&gt;
|-&lt;br /&gt;
| 2018.09.27 || PNPI || St. Petersburg || Проект &amp;quot;Супер С-Тау фабрики&amp;quot; || Alexander Barnyakov, Vitaly Vorobyev || [[:Media:Super-c-tau-PNPI-Sept2018_noanim.pdf|part1]] [[:Media:ctau_det2018sept.pdf|part2]]&lt;br /&gt;
|-&lt;br /&gt;
| 2018.11.02 || BINP || Novosibirsk || SCTF: accelerator project || Pavel Piminov || [[:Media:Piminov_-_Super-ct-Factory_for_scd-software.pdf|slides]] &lt;br /&gt;
|-&lt;br /&gt;
| 2018.11.09 || BINP || Novosibirsk || Drift chamber design proposal SCTF || Korneliy Todyshev || [[:Media:DCvariant.pdf|slides]] &lt;br /&gt;
|-&lt;br /&gt;
| 2018.11.13 || BINP || Novosibirsk || Muon system for the Super c-tau factory || Timofey Uglov || [[:Media:Uglov_2018_11_13_Talk.pdf|slides]] &lt;br /&gt;
|-&lt;br /&gt;
| 2019.12.13 || BINP || Novosibirsk || Детектор для Супер Ц-Тау фабрики || Alexander Barnyakov || [[:Media:SCT_Detector_review.pdf|slides]]&lt;br /&gt;
|-&lt;br /&gt;
| 2020.11.15 || BINP || Novosibirsk || Measuring the Weinberg angle at SCT || Vitaly Vorobyev || [[:Media:2020.11.15_Weinberg.pdf|slides]]&lt;br /&gt;
|-&lt;br /&gt;
| 2021.04.15 || LPI || Moscow || Проект &amp;quot;Супер Чарм-Тау фабрики&amp;quot; || Vitaly Vorobyev, Alexander Barnyakov || [[:Media:2021.04.14-ФИАН.pdf|part 1]] part 2&lt;br /&gt;
|-&lt;br /&gt;
| 2021.04.22 || PNPI || St. Petersburg (online) || Проект &amp;quot;Супер Чарм-Тау фабрики&amp;quot; || Vitaly Vorobyev || [[:Media:2021.04.22-ПИЯФ.pdf|slides]]&lt;br /&gt;
|-&lt;br /&gt;
| 2021.06.21 || BINP || Novosibirsk || SCT: comprehensive status report || Vitaly Vorobyev, Anton Bogomyagkov, Alexander Barnyakov, Ivan Logashenko || [https://disk.yandex.ru/d/iAoezUFoVgEDrA Slides and recording]&lt;br /&gt;
|-&lt;br /&gt;
| 2021.07.07 || JINR || Dubna || Super charm-tau factory: precision experiments with tau lepton and charmed hadrons || Vitaly Vorobyev, Ivan Logashenko || [https://indico.jinr.ru/event/2328/ indico], [[:Media:2021.07.07-Dubna-SCT-Vorobyev.pptx|part1]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Misc =&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Date || Event || Location || Title || Speaker || Agenda || Slides&lt;br /&gt;
|-&lt;br /&gt;
| 2021.02.04 || Научная сессия ИЯФ || BINP || Супер С-Тау фабрика || Ivan Logashenko || [https://inp.nsk.su/sobytia/nauchnye-sessii/2021 agenda] || [https://inp.nsk.su/images/pdf/sessii/2021-Logashenko.pdf slides]&lt;br /&gt;
|-&lt;br /&gt;
| 2020.01.31 || Научная сессия ИЯФ || BINP || Супер С-Тау фабрика || Vitaly Vorobyev || [https://inp.nsk.su/sobytia/nauchnye-sessii/2020 agenda] || [[:Media:2020.01.31_BINP-session.pdf|slides]]&lt;br /&gt;
|-&lt;br /&gt;
| 2019.02.22 || Научная сессия ИЯФ || BINP || Супер С-Тау фабрика: эксперимент и детектор || Vitaly Vorobyev || [https://inp.nsk.su/sobytia/nauchnye-sessii/2019 agenda] || [https://inp.nsk.su/images/pdf/sessii/Vorobyev_2019BINPSession_v1.3.pdf slides]&lt;br /&gt;
|-&lt;br /&gt;
| 2019.02.22 || Научная сессия ИЯФ || BINP || Супер С-Тау фабрика: накопитель || Anton Bogomyagkov || [https://inp.nsk.su/sobytia/nauchnye-sessii/2019 agenda] || [https://inp.nsk.su/images/pdf/sessii/Bogomyagkov_CTau_2019.pdf slides]&lt;br /&gt;
|-&lt;br /&gt;
| 2018.04.09 || VII ММК &amp;quot;ФЭЧ и космология 2018&amp;quot; || LPI, Moscow || Физика на Супер-c-tau фабрике || Vitaly Vorobyev || [http://belle.lebedev.ru/conf_lpi_2018/?page_id=257 agenda] || [http://belle.lebedev.ru/conf_lpi_2018/wp-content/uploads/participants-database/super-c-tau-lpi-2018.pptx slides]&lt;br /&gt;
|-&lt;br /&gt;
| 2018.03.16 || Научная сессия ИЯФ || BINP || Физическая программа Супер С-Тау фабрики || Vitaly Vorobyev || [http://www.inp.nsk.su/sobytia/nauchnye-sessii/2018 agenda] || [http://www.inp.nsk.su/images/pdf/sessii/08%20%D0%92%D0%BE%D1%80%D0%BE%D0%B1%D1%8C%D0%B5%D0%B2.%20%D0%A4%D0%B8%D0%B7%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%B0%D1%8F%20%D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%BC%D0%B0%20%D0%A1%D1%83%D0%BF%D0%B5%D1%80%20%D0%A1-%D0%A2%D0%B0%D1%83%20%D1%84%D0%B0%D0%B1%D1%80%D0%B8%D0%BA%D0%B8.pdf slides]&lt;br /&gt;
|-&lt;br /&gt;
| 2018.03.16 || Научная сессия ИЯФ || BINP || Статус проекта Супер С-Тау фабрики || Eugene Levichev || [http://www.inp.nsk.su/sobytia/nauchnye-sessii/2018 agenda] || [http://www.inp.nsk.su/images/pdf/sessii/09%20%D0%95.%20%D0%9B%D0%B5%D0%B2%D0%B8%D1%87%D0%B5%D0%B2.%20%D0%A1%D1%82%D0%B0%D1%82%D1%83%D1%81%20%D0%BF%D1%80%D0%BE%D0%B5%D0%BA%D1%82%D0%B0%20%D0%A1%D1%83%D0%BF%D0%B5%D1%80%20%D0%A1-%D0%A2%D0%B0%D1%83%20%D1%84%D0%B0%D0%B1%D1%80%D0%B8%D0%BA%D0%B8.pdf slides]&lt;br /&gt;
|-&lt;br /&gt;
| 2017.01.27 || Научная сессия ИЯФ || BINP || Перспективные детекторные технологии для будущих экспериментов || Barnyakov Alexander || [http://www.inp.nsk.su/sobytia/nauchnye-sessii/2017 agenda] || [http://www.inp.nsk.su/news/rss/2017_196_07Barnyakov.pdf slides]&lt;br /&gt;
|-&lt;br /&gt;
| 2014.02.07 || Научная сессия ИЯФ || BINP || Проект Супер Чарм-Тау фабрики || Eugene Levichev || [http://www.inp.nsk.su/sobytia/nauchnye-sessii/2014 agenda] || [http://www.inp.nsk.su/news/rss/2014_136_09Skniskiy.pdf slides]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[User:V.S.Vorobev|V.S.Vorobev]] ([[User talk:V.S.Vorobev|talk]]) 15:35, 30 May 2018 (+07)&lt;br /&gt;
[[Category:Software]]&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/AnaVarManager</id>
		<title>AnaVarManager</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/AnaVarManager"/>
				<updated>2022-08-29T03:42:06Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: Created page with &amp;quot; {| class=&amp;quot;wikitable&amp;quot; |+ The list of available variables. |- ! Name !! Description !! Comment |- | p || momentum magnitude || |- | E || energy || |- | px || momentum component...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ The list of available variables.&lt;br /&gt;
|-&lt;br /&gt;
! Name !! Description !! Comment&lt;br /&gt;
|-&lt;br /&gt;
| p || momentum magnitude ||&lt;br /&gt;
|-&lt;br /&gt;
| E || energy ||&lt;br /&gt;
|-&lt;br /&gt;
| px || momentum component x ||&lt;br /&gt;
|-&lt;br /&gt;
| py || momentum component y ||&lt;br /&gt;
|-&lt;br /&gt;
| pz || momentum component z ||&lt;br /&gt;
|-&lt;br /&gt;
| pt || transverse momentum ||&lt;br /&gt;
|-&lt;br /&gt;
| M || invariant mass(determined from particle's 4-momentum vector) ||&lt;br /&gt;
|-&lt;br /&gt;
| costh || polar angle ||&lt;br /&gt;
|-&lt;br /&gt;
| phi || azimuth angle ||&lt;br /&gt;
|-&lt;br /&gt;
| charge || charge of particle ||&lt;br /&gt;
|-&lt;br /&gt;
| Mbc || beam energy constrained mass ||&lt;br /&gt;
|-&lt;br /&gt;
| deltaE || energy difference ||&lt;br /&gt;
|-&lt;br /&gt;
| deltaM || Mass difference between the particle and its first child ||&lt;br /&gt;
|-&lt;br /&gt;
| dedx || Energy deposition in the tracking system ||&lt;br /&gt;
|-&lt;br /&gt;
| pidkpi || K/pi identification probability ||&lt;br /&gt;
|-&lt;br /&gt;
| pidkp || K/p identification probability ||&lt;br /&gt;
|-&lt;br /&gt;
| pidmupi || mu/pi identification probability ||&lt;br /&gt;
|-&lt;br /&gt;
| pide || mu/pi identification probability ||&lt;br /&gt;
|-&lt;br /&gt;
| px_mc || momentum component x (MC truth) ||&lt;br /&gt;
|-&lt;br /&gt;
| py_mc || momentum component y (MC truth) ||&lt;br /&gt;
|-&lt;br /&gt;
| pz_mc || momentum component z (MC truth) ||&lt;br /&gt;
|-&lt;br /&gt;
| pdgid_mc || particle MC id ||&lt;br /&gt;
|-&lt;br /&gt;
| mraw || particle mass before kinematic fit || There is no KF yet&lt;br /&gt;
|-&lt;br /&gt;
| chisq || kinematic fit chi^2 ||&lt;br /&gt;
|-&lt;br /&gt;
| ndf || kinematic fit number degrees of freedom ||&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/Drift_chamber</id>
		<title>Drift chamber</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/Drift_chamber"/>
				<updated>2022-08-10T06:32:48Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''DC memorandum'''  [in Russian]&lt;br /&gt;
[http://kedr.inp.nsk.su/~todyshev/dcdescription.pdf]&lt;br /&gt;
&lt;br /&gt;
I. Yu. Basok et al., '''&amp;quot;The drift chamber project for the Super Charm-Tau Factory detector&amp;quot;''', &lt;br /&gt;
Nucl.Instrum.Meth.A 1009 (2021) 165490,&lt;br /&gt;
DOI:[https://doi.org/10.1016/j.nima.2021.165490],&lt;br /&gt;
InspireHEP:[https://inspirehep.net/literature/1867443]&lt;br /&gt;
&lt;br /&gt;
Korneliy Todyshev '''BaBar DCH dE/dx caliibration and a new technique of energy loss calculation''', January 19, 2017 [[Media:01698.002.pdf]]&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/File:01698.002.pdf</id>
		<title>File:01698.002.pdf</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/File:01698.002.pdf"/>
				<updated>2022-08-10T06:27:10Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: BaBar DCH dE/dx calibration and a new technique of energy loss calculation.
(Korneliy Todyshev from BINP, Novosibirsk)


This work gives a survey of the current and new features of the DCH dE/dx calibration. A new ionization energy loss calculation str...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;BaBar DCH dE/dx calibration and a new technique of energy loss calculation.&lt;br /&gt;
(Korneliy Todyshev from BINP, Novosibirsk)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This work gives a survey of the current and new features of the DCH dE/dx calibration. A new ionization energy loss calculation strategy is presented. The procedures of the getting calibration parameters are described.&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/Drift_chamber</id>
		<title>Drift chamber</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/Drift_chamber"/>
				<updated>2022-07-23T02:17:20Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''DC memorandum'''  [in Russian]&lt;br /&gt;
[http://kedr.inp.nsk.su/~todyshev/dcdescription.pdf]&lt;br /&gt;
&lt;br /&gt;
I. Yu. Basok et al., '''&amp;quot;The drift chamber project for the Super Charm-Tau Factory detector&amp;quot;''', &lt;br /&gt;
Nucl.Instrum.Meth.A 1009 (2021) 165490,&lt;br /&gt;
DOI:[https://doi.org/10.1016/j.nima.2021.165490],&lt;br /&gt;
InspireHEP:[https://inspirehep.net/literature/1867443]&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/Drift_chamber</id>
		<title>Drift chamber</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/Drift_chamber"/>
				<updated>2022-07-22T02:24:59Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;DC memorandum  [in Russian]&lt;br /&gt;
[http://kedr.inp.nsk.su/~todyshev/dcdescription.pdf]&lt;br /&gt;
&lt;br /&gt;
I. Yu. Basok et al., &amp;quot;The drift chamber project for the Super Charm-Tau Factory detector&amp;quot;, &lt;br /&gt;
Nucl.Instrum.Meth.A 1009 (2021) 165490,&lt;br /&gt;
DOI:[https://doi.org/10.1016/j.nima.2021.165490],&lt;br /&gt;
InspireHEP:[https://inspirehep.net/literature/1867443]&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/SctParSim_(Aurora)</id>
		<title>SctParSim (Aurora)</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/SctParSim_(Aurora)"/>
				<updated>2022-06-11T09:52:39Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: /* Drift chamber */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= SctParSim =&lt;br /&gt;
A parametric simulation is a tool to receive a detector response without detailed description of interaction of particles with matter. The simulation is the part of the Aurora project, which is a software suit for SCTF. &lt;br /&gt;
&lt;br /&gt;
Implemented detector subsystems:&lt;br /&gt;
* drift chamber&lt;br /&gt;
* FARICH PID system&lt;br /&gt;
* calorimeter&lt;br /&gt;
* muon system&lt;br /&gt;
&lt;br /&gt;
The parametric simulation yields the detector response in the SCT EDM format thus allowing to analyze its result in the same manner as the result of the full simulation. The tracker and the calorimeter smear particle parameters according&lt;br /&gt;
to a Gaussian distribution, while the FARICH PID and the muon subsystem use for that purpose the results of a pre-conducted standalone full Geant4 simulations.&lt;br /&gt;
&lt;br /&gt;
'''How-to use the parametric simulation''' is demonstrated [https://ctd.inp.nsk.su/wiki/index.php/SCT_parametric_simulation here]&lt;br /&gt;
&lt;br /&gt;
== Detector configuration ==&lt;br /&gt;
&lt;br /&gt;
The detector parameters can be changed in the run script.&lt;br /&gt;
The detector parameters and their default values are presented below.&lt;br /&gt;
&lt;br /&gt;
=== SctParSimAlg ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change parameter&lt;br /&gt;
! Description&lt;br /&gt;
! Default value &lt;br /&gt;
|-&lt;br /&gt;
| B&lt;br /&gt;
| Detector magnetic field&lt;br /&gt;
| 1.5&lt;br /&gt;
|-&lt;br /&gt;
| mostProbMass&lt;br /&gt;
| The mass of most probable particle&lt;br /&gt;
| 0.13957&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== TrackSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater&lt;br /&gt;
! Description&lt;br /&gt;
! Default value&lt;br /&gt;
|-&lt;br /&gt;
| trackRhoMin&lt;br /&gt;
| Inner radius of barrel tracker, m        &lt;br /&gt;
| 0.1 &lt;br /&gt;
|-&lt;br /&gt;
| trackRhoMax              &lt;br /&gt;
| Outer radius of barrel tracker, m        &lt;br /&gt;
| 0.8 &lt;br /&gt;
|-&lt;br /&gt;
| trackZMin                &lt;br /&gt;
| Inner z coordinate of endcup tracker, m  &lt;br /&gt;
| 0   &lt;br /&gt;
|-&lt;br /&gt;
| trackZMax                &lt;br /&gt;
| Outer z coordinate of endcup tracker, m  &lt;br /&gt;
| 1   &lt;br /&gt;
|- &lt;br /&gt;
| trackMinPt               &lt;br /&gt;
| Minimum momentum, GeV                    &lt;br /&gt;
|0.05 &lt;br /&gt;
|- &lt;br /&gt;
| trackPtProb              &lt;br /&gt;
| Registration probabilities for different momentum, {GeV, prob} &lt;br /&gt;
| {{0.1, 0.8}, {0.3, 0.9}, {1, 0.95), {10, 0.99}} &lt;br /&gt;
|-&lt;br /&gt;
| trackRadLen              &lt;br /&gt;
| Radiation length in the track system, m  &lt;br /&gt;
| 187 &lt;br /&gt;
|-&lt;br /&gt;
| trackResParPT            &lt;br /&gt;
| Parameterizaton parameters for xy projection &lt;br /&gt;
| 0.00212 &lt;br /&gt;
|-&lt;br /&gt;
| trackResParPZ            &lt;br /&gt;
| Parameterization parameters for z projection &lt;br /&gt;
| {0.001281, 0.00308} &lt;br /&gt;
|-&lt;br /&gt;
| trackLayerAx             &lt;br /&gt;
| The radius of layers anf the location radius of the anod layers, mm &lt;br /&gt;
| {{6.306, 217.306}, {6.644, 227.1}, {7.165, 246.906}, {6.564, 341.938}, {6.794, 352.06}, {7.14, 371.992}, {7.388, 382.95}, {6.651, 467.57}, {6.823, 477.718}, {6.968, 488.097}, {7.12, 498.701}, {7.274, 509.535}, {6.768, 636.322}, {6.898, 646.501}, {7.007, 656.957}, {7.121, 667.581}, {6.791, 750.730}, {6.902, 761.027}, {6.995, 771.472}, {7.091, 782.061}} &lt;br /&gt;
|-&lt;br /&gt;
| trackLayerSt            &lt;br /&gt;
| The radius of layers and the location radius of the stereo layers, mm &lt;br /&gt;
| {{6.473, 280.136}, {6.747, 290.136}, {7.182, 310.863}, {7.486, 321.938}, {6.603, 405.941}, {6.799, 416.04}, {7.104, 436.741}, {7.314, 447.606}, {6.741, 533.35}, {6.859, 543.615}, {7.026, 554.088, {7.161, 564.762}, {6.778, 584.801}, {6.919, 595.108}, {7.039, 605.606}, {7.163, 6169.289}, {6.746, 689.948}, {6.865, 700.185}, {7.041, 720.09}, {7.165, 730.775}} &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== FARICHSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| farichRhoMin             &lt;br /&gt;
| Inner radius of barrel FARICH system, m          &lt;br /&gt;
| 0.82    &lt;br /&gt;
|-&lt;br /&gt;
| farichRhoMax             &lt;br /&gt;
| Outer radius of barrel FARICH system, m          &lt;br /&gt;
| 0.9     &lt;br /&gt;
|-&lt;br /&gt;
| farichZMin               &lt;br /&gt;
| Inner z coordinate of endcup FARICH system, m    &lt;br /&gt;
| 1.02    &lt;br /&gt;
|-&lt;br /&gt;
| farichZMax               &lt;br /&gt;
| Outer z coordinate of encup FARICH system, m     &lt;br /&gt;
| 1.273   &lt;br /&gt;
|-&lt;br /&gt;
| farichHoleR              &lt;br /&gt;
| Hole radius of FARICH system                     &lt;br /&gt;
| 0.3     &lt;br /&gt;
|-&lt;br /&gt;
| parSimFarichFileName     &lt;br /&gt;
| The path to the file with response histograms of FARICH &lt;br /&gt;
| ./pi_ms_f1_mppc2_px3_d200_mla4_graph2d.root &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== CaloSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| caloRhoMin               &lt;br /&gt;
| Inner radius of barrel calorimeter, m            &lt;br /&gt;
| 1.09    &lt;br /&gt;
|-&lt;br /&gt;
| caloRhoMax               &lt;br /&gt;
| Outer radius of barrel calorimeter, m            &lt;br /&gt;
| 1.55    &lt;br /&gt;
|-&lt;br /&gt;
| caloZMin                 &lt;br /&gt;
| Inner z coordinate of endcup calorimeter, m      &lt;br /&gt;
| 1.293   &lt;br /&gt;
|-&lt;br /&gt;
| caloZMax                 &lt;br /&gt;
| Outer z coordinate of endcup calorimeter, m      &lt;br /&gt;
| 1.86   &lt;br /&gt;
|-&lt;br /&gt;
| caloCosthmax             &lt;br /&gt;
| Maximum cosine                                   &lt;br /&gt;
| 0.9     &lt;br /&gt;
|-&lt;br /&gt;
| caloClSize               &lt;br /&gt;
| Calorimeter cluster size, m                      &lt;br /&gt;
| 0.045   &lt;br /&gt;
|-&lt;br /&gt;
| caloClSizeEGamma         &lt;br /&gt;
| Calorimeter cluster size for gamma, m            &lt;br /&gt;
| 0.15   &lt;br /&gt;
|-&lt;br /&gt;
| caloEMinBarrel           &lt;br /&gt;
| Minimal energy, GeV                              &lt;br /&gt;
| 0.015   &lt;br /&gt;
|-&lt;br /&gt;
| caloEMinEndcup           &lt;br /&gt;
| Minimal energy, GeV                              &lt;br /&gt;
| 0.015   &lt;br /&gt;
|-&lt;br /&gt;
| caloResPar               &lt;br /&gt;
| Parameterization parameters                      &lt;br /&gt;
| {1.34e-2, 0.066e-2, 0.0, 0.82e-2}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MuonSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| muonRhoMin               &lt;br /&gt;
| Inner radius of barrel muon system, m            &lt;br /&gt;
| 1.87    &lt;br /&gt;
|-&lt;br /&gt;
| muonRhoMax               &lt;br /&gt;
| Outer radius of barrel muon system, m            &lt;br /&gt;
| 2.15    &lt;br /&gt;
|-&lt;br /&gt;
| muonZMin                 &lt;br /&gt;
| Inner z coordinate of endcup muon system, m      &lt;br /&gt;
| 1.88    &lt;br /&gt;
|-&lt;br /&gt;
| muonZMax                 &lt;br /&gt;
| Outer z coordinate of endcup muon system, m      &lt;br /&gt;
| 2.16    &lt;br /&gt;
|-&lt;br /&gt;
| parSimMuonFileNameMu     &lt;br /&gt;
| The path to the file with response histograms of muon system (muon) &lt;br /&gt;
| ./g4beamline_mu_plus_100k_parse.root &lt;br /&gt;
|-&lt;br /&gt;
| parSimMuonFileNamePi     &lt;br /&gt;
| The path to the file with response histograms of muon system (pion) &lt;br /&gt;
| ./g4beamline_pi_plus_100k_parse.root &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parameterization ==&lt;br /&gt;
=== Drift chamber ===&lt;br /&gt;
&lt;br /&gt;
The track resolution is described [https://ctd.inp.nsk.su/wiki/index.php/Drift_chamber here].&lt;br /&gt;
&lt;br /&gt;
The parametric simulation has two options in the tracker to the particle identification: an ionisation clusters counting (dNcl/dx) and dE/dx. The model of calculation the specific number of ionization clusters is taken from a TraPID option by F. Gracagnolo ([https://indico.lal.in2p3.fr/event/4902/contributions/17030/attachments/13603/16389/SCTFDrift_Chamber.pdf The presentation on &amp;quot;Joint Workshop on Future tau-charm factory&amp;quot; in December 4--7, 2018]). An energy losing is calculated using the resolution model from BaBar experiment.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Tracker_res.png|Momentum resolution as a function of momentum depending on polar angle for π+&lt;br /&gt;
&lt;br /&gt;
File:DEdx.png|The dependence of the dE/dx on the momentum in the tracker system&lt;br /&gt;
&lt;br /&gt;
File:cl_count.png|The dependence of the specific number of ionization clusters on the momentum in the tracker system&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== FARICH PID system ===&lt;br /&gt;
&lt;br /&gt;
The FARICH PID system works using the results of the full GEANT4 simulation. The system output is the particle speed and number of photons.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Farich_res.png|The dependence of the particle β factor on the momentum in the FARICH PID system&lt;br /&gt;
&lt;br /&gt;
File:Farich_param.png|The dependence of the number of photoelectron on the βγ factor in the FARICH PID system for different angles (black - 10°, red - 30°, green - 45°)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Calorimeter ===&lt;br /&gt;
&lt;br /&gt;
The calorimeter resolution is &amp;lt;math&amp;gt; \sigma_E = e_0 \bigoplus \frac{e_1}{E} \bigoplus \frac{e_2}{\sqrt{E}} \bigoplus \frac{e_3}{E^{0.25}}&amp;lt;/math&amp;gt;, the coefficients (e0, e1 etc.) are taken from [https://indico.inp.nsk.su/event/13/session/10/contribution/17/material/slides/0.pdf the D. Epifanov presentation on Super C-Tau factory workshop in May 27, 2018].&lt;br /&gt;
&lt;br /&gt;
There are two cluster sizes to gammas / electrons and other particles.&lt;br /&gt;
&lt;br /&gt;
==== Reconstruction ====&lt;br /&gt;
The cross-linking data obtained by the track system and the calorimeter is implemented. This is implemented taking into account the geometric intersection of the calorimeter clusters.&lt;br /&gt;
 &lt;br /&gt;
The algorithm for the cross-linking data obtained by the track system and the calorimeter:&lt;br /&gt;
* union of geometrically intersecting calorimetric clusters&lt;br /&gt;
* finding a match between calorimetric clusters and tracks&lt;br /&gt;
* recalculating cluster characteristics (time, energy, cluster size, conversion point)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Res_eff.png‎|The reconstruction efficiency for different particle types&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Muon system ===&lt;br /&gt;
The muon system works using the results of a reconducted stand-alone simulation on G4BeamLine. The system is a cylinder of eight absorber and sensitive polystyrene layers. The absorber is iron.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:muon.png|The probability distribution for muons and pions to reach a certain layer in the muon system&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Output collection ==&lt;br /&gt;
&lt;br /&gt;
The output ROOT-file contains:&lt;br /&gt;
&lt;br /&gt;
* allGenParticles - MC particles&lt;br /&gt;
** pdgId&lt;br /&gt;
** charge&lt;br /&gt;
** vertex - x, y, and z coordinates&lt;br /&gt;
** p4 - momentum (px, py, pz) and mass&lt;br /&gt;
&lt;br /&gt;
* Particles - the particle characteristics after the parametric simulation &lt;br /&gt;
** pdgId&lt;br /&gt;
** charge&lt;br /&gt;
** vertex - x, y, z coordinates&lt;br /&gt;
** p4 - measured momentum (px, py, pz) and the most probability particle mass&lt;br /&gt;
** dedx&lt;br /&gt;
** dedx_err&lt;br /&gt;
** dncldx - cluster counting&lt;br /&gt;
** dedxPid&lt;br /&gt;
** dncldxPid&lt;br /&gt;
** farichPid&lt;br /&gt;
** muPid&lt;br /&gt;
&lt;br /&gt;
* TrackState - the helix characteristics (the track)&lt;br /&gt;
** phi&lt;br /&gt;
** theta&lt;br /&gt;
** qOverP&lt;br /&gt;
** d0&lt;br /&gt;
** z0&lt;br /&gt;
** referencePoint - x, y and z coordinates&lt;br /&gt;
&lt;br /&gt;
* CaloClusters&lt;br /&gt;
** energy&lt;br /&gt;
** time&lt;br /&gt;
** position - x, y and z coordinates of the calorimeter entry point&lt;br /&gt;
&lt;br /&gt;
* MuonHits&lt;br /&gt;
** layer - the last layer that registered a particle&lt;br /&gt;
&lt;br /&gt;
* FARICHHits&lt;br /&gt;
** time&lt;br /&gt;
** beta&lt;br /&gt;
** beta_err&lt;br /&gt;
** nphe0&lt;br /&gt;
** nphe&lt;br /&gt;
&lt;br /&gt;
The more characteristics have intuitive names.&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/SctParSim_(Aurora)</id>
		<title>SctParSim (Aurora)</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/SctParSim_(Aurora)"/>
				<updated>2021-12-23T06:18:48Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: /* Drift chamber */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= SctParSim =&lt;br /&gt;
A parametric simulation is a tool to receive a detector response without detailed description of interaction of particles with matter. The simulation is the part of the Aurora project, which is a software suit for SCTF. &lt;br /&gt;
&lt;br /&gt;
Implemented detector subsystems:&lt;br /&gt;
* drift chamber&lt;br /&gt;
* FARICH PID system&lt;br /&gt;
* calorimeter&lt;br /&gt;
* muon system&lt;br /&gt;
&lt;br /&gt;
The parametric simulation yields the detector response in the SCT EDM format thus allowing to analyze its result in the same manner as the result of the full simulation. The tracker and the calorimeter smear particle parameters according&lt;br /&gt;
to a Gaussian distribution, while the FARICH PID and the muon subsystem use for that purpose the results of a pre-conducted standalone full Geant4 simulations.&lt;br /&gt;
&lt;br /&gt;
'''How-to use the parametric simulation''' is demonstrated [https://ctd.inp.nsk.su/wiki/index.php/SCT_parametric_simulation here]&lt;br /&gt;
&lt;br /&gt;
== Detector configuration ==&lt;br /&gt;
&lt;br /&gt;
The detector parameters can be changed in the run script.&lt;br /&gt;
The detector parameters and their default values are presented below.&lt;br /&gt;
&lt;br /&gt;
=== SctParSimAlg ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change parameter&lt;br /&gt;
! Description&lt;br /&gt;
! Default value &lt;br /&gt;
|-&lt;br /&gt;
| B&lt;br /&gt;
| Detector magnetic field&lt;br /&gt;
| 1.5&lt;br /&gt;
|-&lt;br /&gt;
| mostProbMass&lt;br /&gt;
| The mass of most probable particle&lt;br /&gt;
| 0.13957&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== TrackSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater&lt;br /&gt;
! Description&lt;br /&gt;
! Default value&lt;br /&gt;
|-&lt;br /&gt;
| trackRhoMin&lt;br /&gt;
| Inner radius of barrel tracker, m        &lt;br /&gt;
| 0.1 &lt;br /&gt;
|-&lt;br /&gt;
| trackRhoMax              &lt;br /&gt;
| Outer radius of barrel tracker, m        &lt;br /&gt;
| 0.8 &lt;br /&gt;
|-&lt;br /&gt;
| trackZMin                &lt;br /&gt;
| Inner z coordinate of endcup tracker, m  &lt;br /&gt;
| 0   &lt;br /&gt;
|-&lt;br /&gt;
| trackZMax                &lt;br /&gt;
| Outer z coordinate of endcup tracker, m  &lt;br /&gt;
| 1   &lt;br /&gt;
|- &lt;br /&gt;
| trackMinPt               &lt;br /&gt;
| Minimum momentum, GeV                    &lt;br /&gt;
|0.05 &lt;br /&gt;
|- &lt;br /&gt;
| trackPtProb              &lt;br /&gt;
| Registration probabilities for different momentum, {GeV, prob} &lt;br /&gt;
| {{0.1, 0.8}, {0.3, 0.9}, {1, 0.95), {10, 0.99}} &lt;br /&gt;
|-&lt;br /&gt;
| trackRadLen              &lt;br /&gt;
| Radiation length in the track system, m  &lt;br /&gt;
| 187 &lt;br /&gt;
|-&lt;br /&gt;
| trackResParPT            &lt;br /&gt;
| Parameterizaton parameters for xy projection &lt;br /&gt;
| 0.00212 &lt;br /&gt;
|-&lt;br /&gt;
| trackResParPZ            &lt;br /&gt;
| Parameterization parameters for z projection &lt;br /&gt;
| {0.001281, 0.00308} &lt;br /&gt;
|-&lt;br /&gt;
| trackLayerAx             &lt;br /&gt;
| The radius of layers anf the location radius of the anod layers, mm &lt;br /&gt;
| {{6.306, 217.306}, {6.644, 227.1}, {7.165, 246.906}, {6.564, 341.938}, {6.794, 352.06}, {7.14, 371.992}, {7.388, 382.95}, {6.651, 467.57}, {6.823, 477.718}, {6.968, 488.097}, {7.12, 498.701}, {7.274, 509.535}, {6.768, 636.322}, {6.898, 646.501}, {7.007, 656.957}, {7.121, 667.581}, {6.791, 750.730}, {6.902, 761.027}, {6.995, 771.472}, {7.091, 782.061}} &lt;br /&gt;
|-&lt;br /&gt;
| trackLayerSt            &lt;br /&gt;
| The radius of layers and the location radius of the stereo layers, mm &lt;br /&gt;
| {{6.473, 280.136}, {6.747, 290.136}, {7.182, 310.863}, {7.486, 321.938}, {6.603, 405.941}, {6.799, 416.04}, {7.104, 436.741}, {7.314, 447.606}, {6.741, 533.35}, {6.859, 543.615}, {7.026, 554.088, {7.161, 564.762}, {6.778, 584.801}, {6.919, 595.108}, {7.039, 605.606}, {7.163, 6169.289}, {6.746, 689.948}, {6.865, 700.185}, {7.041, 720.09}, {7.165, 730.775}} &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== FARICHSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| farichRhoMin             &lt;br /&gt;
| Inner radius of barrel FARICH system, m          &lt;br /&gt;
| 0.82    &lt;br /&gt;
|-&lt;br /&gt;
| farichRhoMax             &lt;br /&gt;
| Outer radius of barrel FARICH system, m          &lt;br /&gt;
| 0.9     &lt;br /&gt;
|-&lt;br /&gt;
| farichZMin               &lt;br /&gt;
| Inner z coordinate of endcup FARICH system, m    &lt;br /&gt;
| 1.02    &lt;br /&gt;
|-&lt;br /&gt;
| farichZMax               &lt;br /&gt;
| Outer z coordinate of encup FARICH system, m     &lt;br /&gt;
| 1.273   &lt;br /&gt;
|-&lt;br /&gt;
| farichHoleR              &lt;br /&gt;
| Hole radius of FARICH system                     &lt;br /&gt;
| 0.3     &lt;br /&gt;
|-&lt;br /&gt;
| parSimFarichFileName     &lt;br /&gt;
| The path to the file with response histograms of FARICH &lt;br /&gt;
| ./pi_ms_f1_mppc2_px3_d200_mla4_graph2d.root &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== CaloSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| caloRhoMin               &lt;br /&gt;
| Inner radius of barrel calorimeter, m            &lt;br /&gt;
| 1.09    &lt;br /&gt;
|-&lt;br /&gt;
| caloRhoMax               &lt;br /&gt;
| Outer radius of barrel calorimeter, m            &lt;br /&gt;
| 1.55    &lt;br /&gt;
|-&lt;br /&gt;
| caloZMin                 &lt;br /&gt;
| Inner z coordinate of endcup calorimeter, m      &lt;br /&gt;
| 1.293   &lt;br /&gt;
|-&lt;br /&gt;
| caloZMax                 &lt;br /&gt;
| Outer z coordinate of endcup calorimeter, m      &lt;br /&gt;
| 1.86   &lt;br /&gt;
|-&lt;br /&gt;
| caloCosthmax             &lt;br /&gt;
| Maximum cosine                                   &lt;br /&gt;
| 0.9     &lt;br /&gt;
|-&lt;br /&gt;
| caloClSize               &lt;br /&gt;
| Calorimeter cluster size, m                      &lt;br /&gt;
| 0.045   &lt;br /&gt;
|-&lt;br /&gt;
| caloClSizeEGamma         &lt;br /&gt;
| Calorimeter cluster size for gamma, m            &lt;br /&gt;
| 0.15   &lt;br /&gt;
|-&lt;br /&gt;
| caloEMinBarrel           &lt;br /&gt;
| Minimal energy, GeV                              &lt;br /&gt;
| 0.015   &lt;br /&gt;
|-&lt;br /&gt;
| caloEMinEndcup           &lt;br /&gt;
| Minimal energy, GeV                              &lt;br /&gt;
| 0.015   &lt;br /&gt;
|-&lt;br /&gt;
| caloResPar               &lt;br /&gt;
| Parameterization parameters                      &lt;br /&gt;
| {1.34e-2, 0.066e-2, 0.0, 0.82e-2}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MuonSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| muonRhoMin               &lt;br /&gt;
| Inner radius of barrel muon system, m            &lt;br /&gt;
| 1.87    &lt;br /&gt;
|-&lt;br /&gt;
| muonRhoMax               &lt;br /&gt;
| Outer radius of barrel muon system, m            &lt;br /&gt;
| 2.15    &lt;br /&gt;
|-&lt;br /&gt;
| muonZMin                 &lt;br /&gt;
| Inner z coordinate of endcup muon system, m      &lt;br /&gt;
| 1.88    &lt;br /&gt;
|-&lt;br /&gt;
| muonZMax                 &lt;br /&gt;
| Outer z coordinate of endcup muon system, m      &lt;br /&gt;
| 2.16    &lt;br /&gt;
|-&lt;br /&gt;
| parSimMuonFileNameMu     &lt;br /&gt;
| The path to the file with response histograms of muon system (muon) &lt;br /&gt;
| ./g4beamline_mu_plus_100k_parse.root &lt;br /&gt;
|-&lt;br /&gt;
| parSimMuonFileNamePi     &lt;br /&gt;
| The path to the file with response histograms of muon system (pion) &lt;br /&gt;
| ./g4beamline_pi_plus_100k_parse.root &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parameterization ==&lt;br /&gt;
=== Drift chamber ===&lt;br /&gt;
&lt;br /&gt;
The track resolution is described [https://ctd.inp.nsk.su/wiki/index.php/Drift_chamber here].&lt;br /&gt;
&lt;br /&gt;
The parametric simulation has two options in the tracker to the particle identification: an ionisation clusters counting (dNcl/dx) and dE/dx. The model of calculation the specific number of ionization clusters is taken from a TraPID option by F. Gracagnolo ([https://indico.lal.in2p3.fr/event/4902/contributions/17030/attachments/13603/16389/SCTFDrift_Chamber.pdf The presentation on &amp;quot;Joint Workshop on Future tau-charm factory&amp;quot; in December 4--7, 2018]). An energy losing is calculated using the resolution model from BaBar experiment. The &amp;lt;math&amp;gt;\sigma \left( \frac{dE}{dx} \right)&amp;lt;/math&amp;gt; is parameterized using the Bethe-Bloch formula.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Tracker_res.png|Momentum resolution as a function of momentum depending on polar angle for π+&lt;br /&gt;
&lt;br /&gt;
File:DEdx.png|The dependence of the dE/dx on the momentum in the tracker system&lt;br /&gt;
&lt;br /&gt;
File:cl_count.png|The dependence of the specific number of ionization clusters on the momentum in the tracker system&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== FARICH PID system ===&lt;br /&gt;
&lt;br /&gt;
The FARICH PID system works using the results of the full GEANT4 simulation. The system output is the particle speed and number of photons.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Farich_res.png|The dependence of the particle β factor on the momentum in the FARICH PID system&lt;br /&gt;
&lt;br /&gt;
File:Farich_param.png|The dependence of the number of photoelectron on the βγ factor in the FARICH PID system for different angles (black - 10°, red - 30°, green - 45°)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Calorimeter ===&lt;br /&gt;
&lt;br /&gt;
The calorimeter resolution is &amp;lt;math&amp;gt; \sigma_E = e_0 \bigoplus \frac{e_1}{E} \bigoplus \frac{e_2}{\sqrt{E}} \bigoplus \frac{e_3}{E^{0.25}}&amp;lt;/math&amp;gt;, the coefficients (e0, e1 etc.) are taken from [https://indico.inp.nsk.su/event/13/session/10/contribution/17/material/slides/0.pdf the D. Epifanov presentation on Super C-Tau factory workshop in May 27, 2018].&lt;br /&gt;
&lt;br /&gt;
There are two cluster sizes to gammas / electrons and other particles.&lt;br /&gt;
&lt;br /&gt;
==== Reconstruction ====&lt;br /&gt;
The cross-linking data obtained by the track system and the calorimeter is implemented. This is implemented taking into account the geometric intersection of the calorimeter clusters.&lt;br /&gt;
 &lt;br /&gt;
The algorithm for the cross-linking data obtained by the track system and the calorimeter:&lt;br /&gt;
* union of geometrically intersecting calorimetric clusters&lt;br /&gt;
* finding a match between calorimetric clusters and tracks&lt;br /&gt;
* recalculating cluster characteristics (time, energy, cluster size, conversion point)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Res_eff.png‎|The reconstruction efficiency for different particle types&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Muon system ===&lt;br /&gt;
The muon system works using the results of a reconducted stand-alone simulation on G4BeamLine. The system is a cylinder of eight absorber and sensitive polystyrene layers. The absorber is iron.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:muon.png|The probability distribution for muons and pions to reach a certain layer in the muon system&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Output collection ==&lt;br /&gt;
&lt;br /&gt;
The output ROOT-file contains:&lt;br /&gt;
&lt;br /&gt;
* allGenParticles - MC particles&lt;br /&gt;
** pdgId&lt;br /&gt;
** charge&lt;br /&gt;
** vertex - x, y, and z coordinates&lt;br /&gt;
** p4 - momentum (px, py, pz) and mass&lt;br /&gt;
&lt;br /&gt;
* Particles - the particle characteristics after the parametric simulation &lt;br /&gt;
** pdgId&lt;br /&gt;
** charge&lt;br /&gt;
** vertex - x, y, z coordinates&lt;br /&gt;
** p4 - measured momentum (px, py, pz) and the most probability particle mass&lt;br /&gt;
** dedx&lt;br /&gt;
** dedx_err&lt;br /&gt;
** dncldx - cluster counting&lt;br /&gt;
** dedxPid&lt;br /&gt;
** dncldxPid&lt;br /&gt;
** farichPid&lt;br /&gt;
** muPid&lt;br /&gt;
&lt;br /&gt;
* TrackState - the helix characteristics (the track)&lt;br /&gt;
** phi&lt;br /&gt;
** theta&lt;br /&gt;
** qOverP&lt;br /&gt;
** d0&lt;br /&gt;
** z0&lt;br /&gt;
** referencePoint - x, y and z coordinates&lt;br /&gt;
&lt;br /&gt;
* CaloClusters&lt;br /&gt;
** energy&lt;br /&gt;
** time&lt;br /&gt;
** position - x, y and z coordinates of the calorimeter entry point&lt;br /&gt;
&lt;br /&gt;
* MuonHits&lt;br /&gt;
** layer - the last layer that registered a particle&lt;br /&gt;
&lt;br /&gt;
* FARICHHits&lt;br /&gt;
** time&lt;br /&gt;
** beta&lt;br /&gt;
** beta_err&lt;br /&gt;
** nphe0&lt;br /&gt;
** nphe&lt;br /&gt;
&lt;br /&gt;
The more characteristics have intuitive names.&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/SctParSim_(Aurora)</id>
		<title>SctParSim (Aurora)</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/SctParSim_(Aurora)"/>
				<updated>2021-11-25T08:20:01Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: /* Output collection */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= SctParSim =&lt;br /&gt;
A parametric simulation is a tool to receive a detector response without detailed description of interaction of particles with matter. The simulation is the part of the Aurora project, which is a software suit for SCTF. &lt;br /&gt;
&lt;br /&gt;
Implemented detector subsystems:&lt;br /&gt;
* drift chamber&lt;br /&gt;
* FARICH PID system&lt;br /&gt;
* calorimeter&lt;br /&gt;
* muon system&lt;br /&gt;
&lt;br /&gt;
The parametric simulation yields the detector response in the SCT EDM format thus allowing to analyze its result in the same manner as the result of the full simulation. The tracker and the calorimeter smear particle parameters according&lt;br /&gt;
to a Gaussian distribution, while the FARICH PID and the muon subsystem use for that purpose the results of a pre-conducted standalone full Geant4 simulations.&lt;br /&gt;
&lt;br /&gt;
'''How-to use the parametric simulation''' is demonstrated [https://ctd.inp.nsk.su/wiki/index.php/SCT_parametric_simulation here]&lt;br /&gt;
&lt;br /&gt;
== Detector configuration ==&lt;br /&gt;
&lt;br /&gt;
The detector parameters can be changed in the run script.&lt;br /&gt;
The detector parameters and their default values are presented below.&lt;br /&gt;
&lt;br /&gt;
=== SctParSimAlg ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change parameter&lt;br /&gt;
! Description&lt;br /&gt;
! Default value &lt;br /&gt;
|-&lt;br /&gt;
| B&lt;br /&gt;
| Detector magnetic field&lt;br /&gt;
| 1.5&lt;br /&gt;
|-&lt;br /&gt;
| mostProbMass&lt;br /&gt;
| The mass of most probable particle&lt;br /&gt;
| 0.13957&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== TrackSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater&lt;br /&gt;
! Description&lt;br /&gt;
! Default value&lt;br /&gt;
|-&lt;br /&gt;
| trackRhoMin&lt;br /&gt;
| Inner radius of barrel tracker, m        &lt;br /&gt;
| 0.1 &lt;br /&gt;
|-&lt;br /&gt;
| trackRhoMax              &lt;br /&gt;
| Outer radius of barrel tracker, m        &lt;br /&gt;
| 0.8 &lt;br /&gt;
|-&lt;br /&gt;
| trackZMin                &lt;br /&gt;
| Inner z coordinate of endcup tracker, m  &lt;br /&gt;
| 0   &lt;br /&gt;
|-&lt;br /&gt;
| trackZMax                &lt;br /&gt;
| Outer z coordinate of endcup tracker, m  &lt;br /&gt;
| 1   &lt;br /&gt;
|- &lt;br /&gt;
| trackMinPt               &lt;br /&gt;
| Minimum momentum, GeV                    &lt;br /&gt;
|0.05 &lt;br /&gt;
|- &lt;br /&gt;
| trackPtProb              &lt;br /&gt;
| Registration probabilities for different momentum, {GeV, prob} &lt;br /&gt;
| {{0.1, 0.8}, {0.3, 0.9}, {1, 0.95), {10, 0.99}} &lt;br /&gt;
|-&lt;br /&gt;
| trackRadLen              &lt;br /&gt;
| Radiation length in the track system, m  &lt;br /&gt;
| 187 &lt;br /&gt;
|-&lt;br /&gt;
| trackResParPT            &lt;br /&gt;
| Parameterizaton parameters for xy projection &lt;br /&gt;
| 0.00212 &lt;br /&gt;
|-&lt;br /&gt;
| trackResParPZ            &lt;br /&gt;
| Parameterization parameters for z projection &lt;br /&gt;
| {0.001281, 0.00308} &lt;br /&gt;
|-&lt;br /&gt;
| trackLayerAx             &lt;br /&gt;
| The radius of layers anf the location radius of the anod layers, mm &lt;br /&gt;
| {{6.306, 217.306}, {6.644, 227.1}, {7.165, 246.906}, {6.564, 341.938}, {6.794, 352.06}, {7.14, 371.992}, {7.388, 382.95}, {6.651, 467.57}, {6.823, 477.718}, {6.968, 488.097}, {7.12, 498.701}, {7.274, 509.535}, {6.768, 636.322}, {6.898, 646.501}, {7.007, 656.957}, {7.121, 667.581}, {6.791, 750.730}, {6.902, 761.027}, {6.995, 771.472}, {7.091, 782.061}} &lt;br /&gt;
|-&lt;br /&gt;
| trackLayerSt            &lt;br /&gt;
| The radius of layers and the location radius of the stereo layers, mm &lt;br /&gt;
| {{6.473, 280.136}, {6.747, 290.136}, {7.182, 310.863}, {7.486, 321.938}, {6.603, 405.941}, {6.799, 416.04}, {7.104, 436.741}, {7.314, 447.606}, {6.741, 533.35}, {6.859, 543.615}, {7.026, 554.088, {7.161, 564.762}, {6.778, 584.801}, {6.919, 595.108}, {7.039, 605.606}, {7.163, 6169.289}, {6.746, 689.948}, {6.865, 700.185}, {7.041, 720.09}, {7.165, 730.775}} &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== FARICHSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| farichRhoMin             &lt;br /&gt;
| Inner radius of barrel FARICH system, m          &lt;br /&gt;
| 0.82    &lt;br /&gt;
|-&lt;br /&gt;
| farichRhoMax             &lt;br /&gt;
| Outer radius of barrel FARICH system, m          &lt;br /&gt;
| 0.9     &lt;br /&gt;
|-&lt;br /&gt;
| farichZMin               &lt;br /&gt;
| Inner z coordinate of endcup FARICH system, m    &lt;br /&gt;
| 1.02    &lt;br /&gt;
|-&lt;br /&gt;
| farichZMax               &lt;br /&gt;
| Outer z coordinate of encup FARICH system, m     &lt;br /&gt;
| 1.273   &lt;br /&gt;
|-&lt;br /&gt;
| farichHoleR              &lt;br /&gt;
| Hole radius of FARICH system                     &lt;br /&gt;
| 0.3     &lt;br /&gt;
|-&lt;br /&gt;
| parSimFarichFileName     &lt;br /&gt;
| The path to the file with response histograms of FARICH &lt;br /&gt;
| ./pi_ms_f1_mppc2_px3_d200_mla4_graph2d.root &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== CaloSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| caloRhoMin               &lt;br /&gt;
| Inner radius of barrel calorimeter, m            &lt;br /&gt;
| 1.09    &lt;br /&gt;
|-&lt;br /&gt;
| caloRhoMax               &lt;br /&gt;
| Outer radius of barrel calorimeter, m            &lt;br /&gt;
| 1.55    &lt;br /&gt;
|-&lt;br /&gt;
| caloZMin                 &lt;br /&gt;
| Inner z coordinate of endcup calorimeter, m      &lt;br /&gt;
| 1.293   &lt;br /&gt;
|-&lt;br /&gt;
| caloZMax                 &lt;br /&gt;
| Outer z coordinate of endcup calorimeter, m      &lt;br /&gt;
| 1.86   &lt;br /&gt;
|-&lt;br /&gt;
| caloCosthmax             &lt;br /&gt;
| Maximum cosine                                   &lt;br /&gt;
| 0.9     &lt;br /&gt;
|-&lt;br /&gt;
| caloClSize               &lt;br /&gt;
| Calorimeter cluster size, m                      &lt;br /&gt;
| 0.045   &lt;br /&gt;
|-&lt;br /&gt;
| caloClSizeEGamma         &lt;br /&gt;
| Calorimeter cluster size for gamma, m            &lt;br /&gt;
| 0.15   &lt;br /&gt;
|-&lt;br /&gt;
| caloEMinBarrel           &lt;br /&gt;
| Minimal energy, GeV                              &lt;br /&gt;
| 0.015   &lt;br /&gt;
|-&lt;br /&gt;
| caloEMinEndcup           &lt;br /&gt;
| Minimal energy, GeV                              &lt;br /&gt;
| 0.015   &lt;br /&gt;
|-&lt;br /&gt;
| caloResPar               &lt;br /&gt;
| Parameterization parameters                      &lt;br /&gt;
| {1.34e-2, 0.066e-2, 0.0, 0.82e-2}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MuonSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| muonRhoMin               &lt;br /&gt;
| Inner radius of barrel muon system, m            &lt;br /&gt;
| 1.87    &lt;br /&gt;
|-&lt;br /&gt;
| muonRhoMax               &lt;br /&gt;
| Outer radius of barrel muon system, m            &lt;br /&gt;
| 2.15    &lt;br /&gt;
|-&lt;br /&gt;
| muonZMin                 &lt;br /&gt;
| Inner z coordinate of endcup muon system, m      &lt;br /&gt;
| 1.88    &lt;br /&gt;
|-&lt;br /&gt;
| muonZMax                 &lt;br /&gt;
| Outer z coordinate of endcup muon system, m      &lt;br /&gt;
| 2.16    &lt;br /&gt;
|-&lt;br /&gt;
| parSimMuonFileNameMu     &lt;br /&gt;
| The path to the file with response histograms of muon system (muon) &lt;br /&gt;
| ./g4beamline_mu_plus_100k_parse.root &lt;br /&gt;
|-&lt;br /&gt;
| parSimMuonFileNamePi     &lt;br /&gt;
| The path to the file with response histograms of muon system (pion) &lt;br /&gt;
| ./g4beamline_pi_plus_100k_parse.root &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parameterization ==&lt;br /&gt;
=== Drift chamber ===&lt;br /&gt;
&lt;br /&gt;
The track resolution is described [https://ctd.inp.nsk.su/wiki/index.php/Drift_chamber here].&lt;br /&gt;
&lt;br /&gt;
The parametric simulation has two options in the tracker to the particle identification: an ionisation clusters counting (dNcl/dx) and dE/dx. The model of calculation the specific number of ionization clusters is taken from a TraPID option by F. Gracagnolo ([https://indico.lal.in2p3.fr/event/4902/contributions/17030/attachments/13603/16389/SCTFDrift_Chamber.pdf The presentation on &amp;quot;Joint Workshop on Future tau-charm factory&amp;quot; in December 4--7, 2018]). An energy losing is calculated using the resolution model from BaBar experiment. The &amp;lt;math&amp;gt;\sigma \left( \frac{dE}{dx} \right)&amp;lt;/math&amp;gt; is parameterized as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\sigma \left( \frac{dE}{dx} \right) = \alpha \left( \frac{dE}{dx} \right) ^\beta dx^\gamma&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where α, β, γ is tuned on BaBar data.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Tracker_res.png|Momentum resolution as a function of momentum depending on polar angle for π+&lt;br /&gt;
&lt;br /&gt;
File:DEdx.png|The dependence of the dE/dx on the momentum in the tracker system&lt;br /&gt;
&lt;br /&gt;
File:cl_count.png|The dependence of the specific number of ionization clusters on the momentum in the tracker system&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== FARICH PID system ===&lt;br /&gt;
&lt;br /&gt;
The FARICH PID system works using the results of the full GEANT4 simulation. The system output is the particle speed and number of photons.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Farich_res.png|The dependence of the particle β factor on the momentum in the FARICH PID system&lt;br /&gt;
&lt;br /&gt;
File:Farich_param.png|The dependence of the number of photoelectron on the βγ factor in the FARICH PID system for different angles (black - 10°, red - 30°, green - 45°)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Calorimeter ===&lt;br /&gt;
&lt;br /&gt;
The calorimeter resolution is &amp;lt;math&amp;gt; \sigma_E = e_0 \bigoplus \frac{e_1}{E} \bigoplus \frac{e_2}{\sqrt{E}} \bigoplus \frac{e_3}{E^{0.25}}&amp;lt;/math&amp;gt;, the coefficients (e0, e1 etc.) are taken from [https://indico.inp.nsk.su/event/13/session/10/contribution/17/material/slides/0.pdf the D. Epifanov presentation on Super C-Tau factory workshop in May 27, 2018].&lt;br /&gt;
&lt;br /&gt;
There are two cluster sizes to gammas / electrons and other particles.&lt;br /&gt;
&lt;br /&gt;
==== Reconstruction ====&lt;br /&gt;
The cross-linking data obtained by the track system and the calorimeter is implemented. This is implemented taking into account the geometric intersection of the calorimeter clusters.&lt;br /&gt;
 &lt;br /&gt;
The algorithm for the cross-linking data obtained by the track system and the calorimeter:&lt;br /&gt;
* union of geometrically intersecting calorimetric clusters&lt;br /&gt;
* finding a match between calorimetric clusters and tracks&lt;br /&gt;
* recalculating cluster characteristics (time, energy, cluster size, conversion point)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Res_eff.png‎|The reconstruction efficiency for different particle types&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Muon system ===&lt;br /&gt;
The muon system works using the results of a reconducted stand-alone simulation on G4BeamLine. The system is a cylinder of eight absorber and sensitive polystyrene layers. The absorber is iron.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:muon.png|The probability distribution for muons and pions to reach a certain layer in the muon system&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Output collection ==&lt;br /&gt;
&lt;br /&gt;
The output ROOT-file contains:&lt;br /&gt;
&lt;br /&gt;
* allGenParticles - MC particles&lt;br /&gt;
** pdgId&lt;br /&gt;
** charge&lt;br /&gt;
** vertex - x, y, and z coordinates&lt;br /&gt;
** p4 - momentum (px, py, pz) and mass&lt;br /&gt;
&lt;br /&gt;
* Particles - the particle characteristics after the parametric simulation &lt;br /&gt;
** pdgId&lt;br /&gt;
** charge&lt;br /&gt;
** vertex - x, y, z coordinates&lt;br /&gt;
** p4 - measured momentum (px, py, pz) and the most probability particle mass&lt;br /&gt;
** dedx&lt;br /&gt;
** dedx_err&lt;br /&gt;
** dncldx - cluster counting&lt;br /&gt;
** dedxPid&lt;br /&gt;
** dncldxPid&lt;br /&gt;
** farichPid&lt;br /&gt;
** muPid&lt;br /&gt;
&lt;br /&gt;
* TrackState - the helix characteristics (the track)&lt;br /&gt;
** phi&lt;br /&gt;
** theta&lt;br /&gt;
** qOverP&lt;br /&gt;
** d0&lt;br /&gt;
** z0&lt;br /&gt;
** referencePoint - x, y and z coordinates&lt;br /&gt;
&lt;br /&gt;
* CaloClusters&lt;br /&gt;
** energy&lt;br /&gt;
** time&lt;br /&gt;
** position - x, y and z coordinates of the calorimeter entry point&lt;br /&gt;
&lt;br /&gt;
* MuonHits&lt;br /&gt;
** layer - the last layer that registered a particle&lt;br /&gt;
&lt;br /&gt;
* FARICHHits&lt;br /&gt;
** time&lt;br /&gt;
** beta&lt;br /&gt;
** beta_err&lt;br /&gt;
** nphe0&lt;br /&gt;
** nphe&lt;br /&gt;
&lt;br /&gt;
The more characteristics have intuitive names.&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/SctParSim_(Aurora)</id>
		<title>SctParSim (Aurora)</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/SctParSim_(Aurora)"/>
				<updated>2021-11-25T07:54:21Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: /* Output collection */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= SctParSim =&lt;br /&gt;
A parametric simulation is a tool to receive a detector response without detailed description of interaction of particles with matter. The simulation is the part of the Aurora project, which is a software suit for SCTF. &lt;br /&gt;
&lt;br /&gt;
Implemented detector subsystems:&lt;br /&gt;
* drift chamber&lt;br /&gt;
* FARICH PID system&lt;br /&gt;
* calorimeter&lt;br /&gt;
* muon system&lt;br /&gt;
&lt;br /&gt;
The parametric simulation yields the detector response in the SCT EDM format thus allowing to analyze its result in the same manner as the result of the full simulation. The tracker and the calorimeter smear particle parameters according&lt;br /&gt;
to a Gaussian distribution, while the FARICH PID and the muon subsystem use for that purpose the results of a pre-conducted standalone full Geant4 simulations.&lt;br /&gt;
&lt;br /&gt;
'''How-to use the parametric simulation''' is demonstrated [https://ctd.inp.nsk.su/wiki/index.php/SCT_parametric_simulation here]&lt;br /&gt;
&lt;br /&gt;
== Detector configuration ==&lt;br /&gt;
&lt;br /&gt;
The detector parameters can be changed in the run script.&lt;br /&gt;
The detector parameters and their default values are presented below.&lt;br /&gt;
&lt;br /&gt;
=== SctParSimAlg ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change parameter&lt;br /&gt;
! Description&lt;br /&gt;
! Default value &lt;br /&gt;
|-&lt;br /&gt;
| B&lt;br /&gt;
| Detector magnetic field&lt;br /&gt;
| 1.5&lt;br /&gt;
|-&lt;br /&gt;
| mostProbMass&lt;br /&gt;
| The mass of most probable particle&lt;br /&gt;
| 0.13957&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== TrackSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater&lt;br /&gt;
! Description&lt;br /&gt;
! Default value&lt;br /&gt;
|-&lt;br /&gt;
| trackRhoMin&lt;br /&gt;
| Inner radius of barrel tracker, m        &lt;br /&gt;
| 0.1 &lt;br /&gt;
|-&lt;br /&gt;
| trackRhoMax              &lt;br /&gt;
| Outer radius of barrel tracker, m        &lt;br /&gt;
| 0.8 &lt;br /&gt;
|-&lt;br /&gt;
| trackZMin                &lt;br /&gt;
| Inner z coordinate of endcup tracker, m  &lt;br /&gt;
| 0   &lt;br /&gt;
|-&lt;br /&gt;
| trackZMax                &lt;br /&gt;
| Outer z coordinate of endcup tracker, m  &lt;br /&gt;
| 1   &lt;br /&gt;
|- &lt;br /&gt;
| trackMinPt               &lt;br /&gt;
| Minimum momentum, GeV                    &lt;br /&gt;
|0.05 &lt;br /&gt;
|- &lt;br /&gt;
| trackPtProb              &lt;br /&gt;
| Registration probabilities for different momentum, {GeV, prob} &lt;br /&gt;
| {{0.1, 0.8}, {0.3, 0.9}, {1, 0.95), {10, 0.99}} &lt;br /&gt;
|-&lt;br /&gt;
| trackRadLen              &lt;br /&gt;
| Radiation length in the track system, m  &lt;br /&gt;
| 187 &lt;br /&gt;
|-&lt;br /&gt;
| trackResParPT            &lt;br /&gt;
| Parameterizaton parameters for xy projection &lt;br /&gt;
| 0.00212 &lt;br /&gt;
|-&lt;br /&gt;
| trackResParPZ            &lt;br /&gt;
| Parameterization parameters for z projection &lt;br /&gt;
| {0.001281, 0.00308} &lt;br /&gt;
|-&lt;br /&gt;
| trackLayerAx             &lt;br /&gt;
| The radius of layers anf the location radius of the anod layers, mm &lt;br /&gt;
| {{6.306, 217.306}, {6.644, 227.1}, {7.165, 246.906}, {6.564, 341.938}, {6.794, 352.06}, {7.14, 371.992}, {7.388, 382.95}, {6.651, 467.57}, {6.823, 477.718}, {6.968, 488.097}, {7.12, 498.701}, {7.274, 509.535}, {6.768, 636.322}, {6.898, 646.501}, {7.007, 656.957}, {7.121, 667.581}, {6.791, 750.730}, {6.902, 761.027}, {6.995, 771.472}, {7.091, 782.061}} &lt;br /&gt;
|-&lt;br /&gt;
| trackLayerSt            &lt;br /&gt;
| The radius of layers and the location radius of the stereo layers, mm &lt;br /&gt;
| {{6.473, 280.136}, {6.747, 290.136}, {7.182, 310.863}, {7.486, 321.938}, {6.603, 405.941}, {6.799, 416.04}, {7.104, 436.741}, {7.314, 447.606}, {6.741, 533.35}, {6.859, 543.615}, {7.026, 554.088, {7.161, 564.762}, {6.778, 584.801}, {6.919, 595.108}, {7.039, 605.606}, {7.163, 6169.289}, {6.746, 689.948}, {6.865, 700.185}, {7.041, 720.09}, {7.165, 730.775}} &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== FARICHSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| farichRhoMin             &lt;br /&gt;
| Inner radius of barrel FARICH system, m          &lt;br /&gt;
| 0.82    &lt;br /&gt;
|-&lt;br /&gt;
| farichRhoMax             &lt;br /&gt;
| Outer radius of barrel FARICH system, m          &lt;br /&gt;
| 0.9     &lt;br /&gt;
|-&lt;br /&gt;
| farichZMin               &lt;br /&gt;
| Inner z coordinate of endcup FARICH system, m    &lt;br /&gt;
| 1.02    &lt;br /&gt;
|-&lt;br /&gt;
| farichZMax               &lt;br /&gt;
| Outer z coordinate of encup FARICH system, m     &lt;br /&gt;
| 1.273   &lt;br /&gt;
|-&lt;br /&gt;
| farichHoleR              &lt;br /&gt;
| Hole radius of FARICH system                     &lt;br /&gt;
| 0.3     &lt;br /&gt;
|-&lt;br /&gt;
| parSimFarichFileName     &lt;br /&gt;
| The path to the file with response histograms of FARICH &lt;br /&gt;
| ./pi_ms_f1_mppc2_px3_d200_mla4_graph2d.root &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== CaloSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| caloRhoMin               &lt;br /&gt;
| Inner radius of barrel calorimeter, m            &lt;br /&gt;
| 1.09    &lt;br /&gt;
|-&lt;br /&gt;
| caloRhoMax               &lt;br /&gt;
| Outer radius of barrel calorimeter, m            &lt;br /&gt;
| 1.55    &lt;br /&gt;
|-&lt;br /&gt;
| caloZMin                 &lt;br /&gt;
| Inner z coordinate of endcup calorimeter, m      &lt;br /&gt;
| 1.293   &lt;br /&gt;
|-&lt;br /&gt;
| caloZMax                 &lt;br /&gt;
| Outer z coordinate of endcup calorimeter, m      &lt;br /&gt;
| 1.86   &lt;br /&gt;
|-&lt;br /&gt;
| caloCosthmax             &lt;br /&gt;
| Maximum cosine                                   &lt;br /&gt;
| 0.9     &lt;br /&gt;
|-&lt;br /&gt;
| caloClSize               &lt;br /&gt;
| Calorimeter cluster size, m                      &lt;br /&gt;
| 0.045   &lt;br /&gt;
|-&lt;br /&gt;
| caloClSizeEGamma         &lt;br /&gt;
| Calorimeter cluster size for gamma, m            &lt;br /&gt;
| 0.15   &lt;br /&gt;
|-&lt;br /&gt;
| caloEMinBarrel           &lt;br /&gt;
| Minimal energy, GeV                              &lt;br /&gt;
| 0.015   &lt;br /&gt;
|-&lt;br /&gt;
| caloEMinEndcup           &lt;br /&gt;
| Minimal energy, GeV                              &lt;br /&gt;
| 0.015   &lt;br /&gt;
|-&lt;br /&gt;
| caloResPar               &lt;br /&gt;
| Parameterization parameters                      &lt;br /&gt;
| {1.34e-2, 0.066e-2, 0.0, 0.82e-2}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MuonSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| muonRhoMin               &lt;br /&gt;
| Inner radius of barrel muon system, m            &lt;br /&gt;
| 1.87    &lt;br /&gt;
|-&lt;br /&gt;
| muonRhoMax               &lt;br /&gt;
| Outer radius of barrel muon system, m            &lt;br /&gt;
| 2.15    &lt;br /&gt;
|-&lt;br /&gt;
| muonZMin                 &lt;br /&gt;
| Inner z coordinate of endcup muon system, m      &lt;br /&gt;
| 1.88    &lt;br /&gt;
|-&lt;br /&gt;
| muonZMax                 &lt;br /&gt;
| Outer z coordinate of endcup muon system, m      &lt;br /&gt;
| 2.16    &lt;br /&gt;
|-&lt;br /&gt;
| parSimMuonFileNameMu     &lt;br /&gt;
| The path to the file with response histograms of muon system (muon) &lt;br /&gt;
| ./g4beamline_mu_plus_100k_parse.root &lt;br /&gt;
|-&lt;br /&gt;
| parSimMuonFileNamePi     &lt;br /&gt;
| The path to the file with response histograms of muon system (pion) &lt;br /&gt;
| ./g4beamline_pi_plus_100k_parse.root &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parameterization ==&lt;br /&gt;
=== Drift chamber ===&lt;br /&gt;
&lt;br /&gt;
The track resolution is described [https://ctd.inp.nsk.su/wiki/index.php/Drift_chamber here].&lt;br /&gt;
&lt;br /&gt;
The parametric simulation has two options in the tracker to the particle identification: an ionisation clusters counting (dNcl/dx) and dE/dx. The model of calculation the specific number of ionization clusters is taken from a TraPID option by F. Gracagnolo ([https://indico.lal.in2p3.fr/event/4902/contributions/17030/attachments/13603/16389/SCTFDrift_Chamber.pdf The presentation on &amp;quot;Joint Workshop on Future tau-charm factory&amp;quot; in December 4--7, 2018]). An energy losing is calculated using the resolution model from BaBar experiment. The &amp;lt;math&amp;gt;\sigma \left( \frac{dE}{dx} \right)&amp;lt;/math&amp;gt; is parameterized as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\sigma \left( \frac{dE}{dx} \right) = \alpha \left( \frac{dE}{dx} \right) ^\beta dx^\gamma&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where α, β, γ is tuned on BaBar data.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Tracker_res.png|Momentum resolution as a function of momentum depending on polar angle for π+&lt;br /&gt;
&lt;br /&gt;
File:DEdx.png|The dependence of the dE/dx on the momentum in the tracker system&lt;br /&gt;
&lt;br /&gt;
File:cl_count.png|The dependence of the specific number of ionization clusters on the momentum in the tracker system&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== FARICH PID system ===&lt;br /&gt;
&lt;br /&gt;
The FARICH PID system works using the results of the full GEANT4 simulation. The system output is the particle speed and number of photons.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Farich_res.png|The dependence of the particle β factor on the momentum in the FARICH PID system&lt;br /&gt;
&lt;br /&gt;
File:Farich_param.png|The dependence of the number of photoelectron on the βγ factor in the FARICH PID system for different angles (black - 10°, red - 30°, green - 45°)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Calorimeter ===&lt;br /&gt;
&lt;br /&gt;
The calorimeter resolution is &amp;lt;math&amp;gt; \sigma_E = e_0 \bigoplus \frac{e_1}{E} \bigoplus \frac{e_2}{\sqrt{E}} \bigoplus \frac{e_3}{E^{0.25}}&amp;lt;/math&amp;gt;, the coefficients (e0, e1 etc.) are taken from [https://indico.inp.nsk.su/event/13/session/10/contribution/17/material/slides/0.pdf the D. Epifanov presentation on Super C-Tau factory workshop in May 27, 2018].&lt;br /&gt;
&lt;br /&gt;
There are two cluster sizes to gammas / electrons and other particles.&lt;br /&gt;
&lt;br /&gt;
==== Reconstruction ====&lt;br /&gt;
The cross-linking data obtained by the track system and the calorimeter is implemented. This is implemented taking into account the geometric intersection of the calorimeter clusters.&lt;br /&gt;
 &lt;br /&gt;
The algorithm for the cross-linking data obtained by the track system and the calorimeter:&lt;br /&gt;
* union of geometrically intersecting calorimetric clusters&lt;br /&gt;
* finding a match between calorimetric clusters and tracks&lt;br /&gt;
* recalculating cluster characteristics (time, energy, cluster size, conversion point)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Res_eff.png‎|The reconstruction efficiency for different particle types&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Muon system ===&lt;br /&gt;
The muon system works using the results of a reconducted stand-alone simulation on G4BeamLine. The system is a cylinder of eight absorber and sensitive polystyrene layers. The absorber is iron.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:muon.png|The probability distribution for muons and pions to reach a certain layer in the muon system&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Output collection ==&lt;br /&gt;
&lt;br /&gt;
The output ROOT-file contains:&lt;br /&gt;
&lt;br /&gt;
* allGenParticles - MC particles&lt;br /&gt;
** pdgId&lt;br /&gt;
** charge&lt;br /&gt;
** vertex - x, y, and z coordinates&lt;br /&gt;
** p4 - momentum (px, py, pz) and mass&lt;br /&gt;
&lt;br /&gt;
* Particles - the particle characteristics after the parametric simulation &lt;br /&gt;
** pdgId&lt;br /&gt;
** charge&lt;br /&gt;
** vertex - x, y, z coordinates&lt;br /&gt;
** p4 - measured momentum (px, py, pz) and the most probability particle mass&lt;br /&gt;
** dedx&lt;br /&gt;
** dedx_err&lt;br /&gt;
** dncldx - cluster counting&lt;br /&gt;
** dedxPid&lt;br /&gt;
** dncldxPid&lt;br /&gt;
** farichPid&lt;br /&gt;
** muPid&lt;br /&gt;
&lt;br /&gt;
* TrackState - the helix characteristics (the track)&lt;br /&gt;
** phi&lt;br /&gt;
** theta&lt;br /&gt;
** qOverP&lt;br /&gt;
** d0&lt;br /&gt;
** z0&lt;br /&gt;
** referencePoint - x, y and z coordinates&lt;br /&gt;
&lt;br /&gt;
* CaloClusters&lt;br /&gt;
** energy&lt;br /&gt;
** time&lt;br /&gt;
** position - x, y and z coordinates of the calorimeter entry point&lt;br /&gt;
&lt;br /&gt;
* MuonHits&lt;br /&gt;
** layer - the last layer that registered a particle&lt;br /&gt;
&lt;br /&gt;
* FARICHHits&lt;br /&gt;
** cellId&lt;br /&gt;
** time&lt;br /&gt;
** beta&lt;br /&gt;
** beta_err&lt;br /&gt;
** nphe0&lt;br /&gt;
** nphe&lt;br /&gt;
&lt;br /&gt;
The more characteristics have intuitive names.&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation</id>
		<title>Parametric simulation</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation"/>
				<updated>2021-11-24T08:03:53Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: /* Talks */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Talks==&lt;br /&gt;
&lt;br /&gt;
* Software meeting 2018-06-29, Friday, [[File:sctau_papas_v2_20180629.pdf]] by '''Georgiy Razuvaev'''&lt;br /&gt;
* Software meeting 2019-02-01 [[:Media:Sctau_papas_v3_20190201.pdf | Status of PAPAS]] by '''Georgiy Razuvaev'''&lt;br /&gt;
* Software meeting 2019-08-09 [[:Media:Sctparsim_20190809.pdf | Super c-τ parametric simulation: Status]] by '''Georgiy Razuvaev'''&lt;br /&gt;
* Software meeting 2019-12-27 [[:Media:SctParSim_status_20191127_Belozyorova.pdf | SctParSim: status and recent progress]] by '''Maria Belozyorova'''&lt;br /&gt;
* Workshop on future Super c-tau factories 2021-11-16 [https://indico.inp.nsk.su/event/62/contributions/2315/ Parametric simulation of the SCT detector] by '''Maria Belozyorova'''&lt;br /&gt;
&lt;br /&gt;
= SctParSim (Aurora) =&lt;br /&gt;
A parametric simulation is a tool to receive a detector response without detailed description of interaction of particles with matter. The simulation is the part of the Aurora project, which is a software suit for SCTF. &lt;br /&gt;
&lt;br /&gt;
Implemented detector subsystems:&lt;br /&gt;
* drift chamber&lt;br /&gt;
* FARICH PID system&lt;br /&gt;
* calorimeter&lt;br /&gt;
* muon system&lt;br /&gt;
&lt;br /&gt;
The parametric simulation yields the detector response in the SCT EDM format thus allowing to analyze its result in the same manner as the result of the full simulation. The tracker and the calorimeter smear particle parameters according&lt;br /&gt;
to a Gaussian distribution, while the FARICH PID and the muon subsystem use for that purpose the results of a pre-conducted standalone full Geant4 simulations.&lt;br /&gt;
&lt;br /&gt;
'''More information about parameterization''' is presented [[SctParSim (Aurora)|here]].&lt;br /&gt;
&lt;br /&gt;
'''How-to use the parametric simulation''' is demonstrated [https://ctd.inp.nsk.su/wiki/index.php/SCT_parametric_simulation here]&lt;br /&gt;
&lt;br /&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 and parameter description''' is [[SctParSim (python)|here]]&lt;br /&gt;
&lt;br /&gt;
= PAPAS (Old) =&lt;br /&gt;
&lt;br /&gt;
More details are [[SctparSim (PAPAS)|here]]&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/SCT_parametric_simulation</id>
		<title>SCT parametric simulation</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/SCT_parametric_simulation"/>
				<updated>2021-11-24T06:34:37Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: /* SctParSim */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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 SCTauSim,master,latest&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/g4beamline_pi_plus_100k_parse.root .&lt;br /&gt;
cp /home/razuvaev/public/misc/g4beamline_mu_plus_100k_parse.root .&lt;br /&gt;
ctaurun SctParSimAlg/sctparsim_test_particle_gun.py&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Configure example =&lt;br /&gt;
&lt;br /&gt;
There are some examples to run the parametric simulation&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Using tools&lt;br /&gt;
! Link&lt;br /&gt;
|-&lt;br /&gt;
| Read from a ROOT-file, write to a ROOT-file&lt;br /&gt;
| [https://git.inp.nsk.su/sctau/aurora/-/blob/master/Simulation/SctParSimAlg/jobOptions/sctparsim_test_read.py sctparsim_test_read.py]&lt;br /&gt;
|-&lt;br /&gt;
| Generate using the particle gun, write to a ROOT-file&lt;br /&gt;
| [https://git.inp.nsk.su/sctau/aurora/-/blob/master/Simulation/SctParSimAlg/jobOptions/sctparsim_test_particle_gun.py sctparsim_test_particle_gun.py]&lt;br /&gt;
|-&lt;br /&gt;
| Generate using &amp;lt;code&amp;gt;EvtGen&amp;lt;/code&amp;gt;, write to a ROOT-file&lt;br /&gt;
| [https://git.inp.nsk.su/sctau/aurora/-/blob/master/Simulation/SctParSimAlg/jobOptions/sctparsim_test_evtgen.py sctparsim_test_evtgen.py]&lt;br /&gt;
|-&lt;br /&gt;
| Generate using &amp;lt;code&amp;gt;EvtGen&amp;lt;/code&amp;gt;, use the analysis tool&lt;br /&gt;
| [https://git.inp.nsk.su/sctau/aurora/-/blob/master/Simulation/SctParSimAlg/jobOptions/sct_run_test_analisis.py sct_run_test_analisis.py]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Event generation ==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Event generation&amp;quot; block may contain other options: to read a ROOT file, to generate using the particle gun tool and to generate using EvtGen.&lt;br /&gt;
&lt;br /&gt;
=== Podio input ===&lt;br /&gt;
&lt;br /&gt;
It is possible to read the particle parameters from a ROOT file. &lt;br /&gt;
&lt;br /&gt;
You have to import the library &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
from Configurables import PodioInput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and to create the algorithm instance&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
podioevent = ScTauDataSvc(&amp;quot;EventDataSvc&amp;quot;, input=&amp;quot;fileName.root&amp;quot;)&lt;br /&gt;
podioinput = PodioInput(&amp;quot;PodioReader&amp;quot;, OutputLevel=INFO, collections=['allGenParticles'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The reading algorithm has the following parameters:&lt;br /&gt;
* input - an input file name&lt;br /&gt;
* collections - a name of a branch with MC particles&lt;br /&gt;
&lt;br /&gt;
=== Particle gun ===&lt;br /&gt;
&lt;br /&gt;
To use the particle gun algorithm, it is necessary to import the following libraries&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
from Configurables import ParticleGun&lt;br /&gt;
from Configurables import GenAlg&lt;br /&gt;
from Configurables import HepMCToEDMConverter&lt;br /&gt;
from Configurables import HepMCFileWriter&lt;br /&gt;
&lt;br /&gt;
from Configurables import Gaudi__ParticlePropertySvc&lt;br /&gt;
from PathResolver import PathResolver&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and to write the following strings&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
particlePropertySvc = Gaudi__ParticlePropertySvc(&lt;br /&gt;
    &amp;quot;ParticlePropertySvc&amp;quot;,&lt;br /&gt;
    ParticlePropertiesFile=PathResolver.FindDataFile('GenParticleData/ParticleTable.txt')&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
from math import pi&lt;br /&gt;
guntool = ParticleGun(&amp;quot;PdgCodes&amp;quot;, PdgCodes=[211])&lt;br /&gt;
guntool.OutputLevel=DEBUG&lt;br /&gt;
&lt;br /&gt;
guntool.MomentumMin = 0 * units.MeV &lt;br /&gt;
guntool.MomentumMax = 4 * units.GeV&lt;br /&gt;
&lt;br /&gt;
guntool.ThetaMin = 0 * units.rad &lt;br /&gt;
guntool.ThetaMax = pi * units.rad &lt;br /&gt;
&lt;br /&gt;
guntool.PhiMin = 0 * units.rad&lt;br /&gt;
guntool.PhiMax = 2 * pi * units.rad &lt;br /&gt;
&lt;br /&gt;
gun = GenAlg(&amp;quot;ParticleGun&amp;quot;, SignalProvider=guntool)&lt;br /&gt;
gun.hepmc.Path = &amp;quot;hepmc&amp;quot;&lt;br /&gt;
&lt;br /&gt;
writer = HepMCFileWriter(&amp;quot;HepMCFileWriter&amp;quot;)&lt;br /&gt;
writer.hepmc.Path=&amp;quot;hepmc&amp;quot;&lt;br /&gt;
&lt;br /&gt;
hepmc_converter = HepMCToEDMConverter(&amp;quot;Converter&amp;quot;)&lt;br /&gt;
hepmc_converter.hepmc.Path=&amp;quot;hepmc&amp;quot;&lt;br /&gt;
hepmc_converter.genparticles.Path=&amp;quot;allGenParticles&amp;quot;&lt;br /&gt;
hepmc_converter.genvertices.Path=&amp;quot;allGenVertices&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some parameters can be changed:&lt;br /&gt;
* PdgCodes - a list containing particles PDG codes to generate&lt;br /&gt;
* MomentumMin - a minimum particle momentum&lt;br /&gt;
* MomentumMax - a maximum particle momentum&lt;br /&gt;
* ThetaMin - a minimum theta angle&lt;br /&gt;
* ThetaMax - a maximum theta angle&lt;br /&gt;
* PhiMin - a minimum phi angle&lt;br /&gt;
* PhiMax - a maximum phi angle&lt;br /&gt;
&lt;br /&gt;
=== EvtGen ===&lt;br /&gt;
&lt;br /&gt;
More information about EvtGen is [https://ctd.inp.nsk.su/wiki/index.php/Event_generators here].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;EvtGen&amp;lt;/code&amp;gt; interface has the following parameters:&lt;br /&gt;
* &amp;lt;code&amp;gt;dec&amp;lt;/code&amp;gt; - EvtGen users decay file. It can be one of the included in Aurora files or absolute path to your own decay file. Inclusive MC generation does not require user decay file&lt;br /&gt;
* &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt; - root particle for EvtGen. &amp;lt;code&amp;gt;vpho&amp;lt;/code&amp;gt; (virtual photon) should be used for non-resonant processes&lt;br /&gt;
** Acceptable root particles: &amp;lt;code&amp;gt;vpho&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;J/psi&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;psi(2S)&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;psi(3770)&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;psi(4040)&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;psi(4160)&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;psi(4415)&amp;lt;/code&amp;gt;. For more details see Generation/GenTools/GenWrappers/python/EvtGenTools.py in Aurora.&lt;br /&gt;
* &amp;lt;code&amp;gt;ecms&amp;lt;/code&amp;gt; - center-of-mass energy (mass of the root particle). The parameter &amp;lt;code&amp;gt;ecms&amp;lt;/code&amp;gt; must be set for virtual photon while for other root particles (&amp;lt;math&amp;gt;J/\psi&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\psi(2S)&amp;lt;/math&amp;gt;, ...) this parameter is optional. Mean mass of the root particle is adopted if &amp;lt;code&amp;gt;ecms&amp;lt;/code&amp;gt; is omitted.&lt;br /&gt;
* &amp;lt;code&amp;gt;nevt&amp;lt;/code&amp;gt; - number if events to be gnerated&lt;br /&gt;
* &amp;lt;code&amp;gt;ip&amp;lt;/code&amp;gt; - uniform 3D smearing (in mm) for the primary vertex&lt;br /&gt;
* &amp;lt;code&amp;gt;ofile&amp;lt;/code&amp;gt; - output file name&lt;br /&gt;
One can change these parameters to change behaviour of EvtGen and to produce arbitrary MC sample.&lt;br /&gt;
&lt;br /&gt;
== SctParSim ==&lt;br /&gt;
&lt;br /&gt;
To run the parametric simulation, the script has to have two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
from Configurables import SctParSimAlg&lt;br /&gt;
sct_alg = SctParSimAlg('SctAlg')&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To change some detector parameters, write strings of the following structure&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sct_alg.detectorSubsystemName.parameter = mean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The full parameters list is [https://ctd.inp.nsk.su/wiki/index.php/SctParSim_(Aurora) here].&lt;br /&gt;
&lt;br /&gt;
== Analysis ==&lt;br /&gt;
&lt;br /&gt;
The analysis tool has the following parameters:&lt;br /&gt;
* EventLoader&lt;br /&gt;
** pcl.Path - a branch (in the input ROOT-file) for reading&lt;br /&gt;
** plists - a partilce list for further analisis. if it is necessary to consider not only positive, but also negative particles, the label &amp;quot;сс&amp;quot; is used. For example &amp;lt;code&amp;gt;[['K+ cc'], ['pi+ cc']]&amp;lt;/code&amp;gt;. Also it is possible to write a kinematic constraint; for example &amp;lt;code&amp;gt;[['K+ cc', 'p &amp;gt; 0.5'], ['pi+ cc']]&amp;lt;/code&amp;gt;  (kaons don't have the momentum less then 0.5 GeV)&lt;br /&gt;
&lt;br /&gt;
* ParticleCombinerAlg&lt;br /&gt;
** decStr - an investigated decay&lt;br /&gt;
** cutStr - a selection criteria&lt;br /&gt;
** selfConj - if neutral particle &amp;lt;code&amp;gt;True&amp;lt;/code&amp;gt;, else &amp;lt;code&amp;gt;False&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* NtupleAlg&lt;br /&gt;
** vars - a list contains the particle parameters to write an output file. A particle in the decay string can be selected using the &amp;quot;^&amp;quot; symbol. If a decay isn't written (&amp;lt;code&amp;gt;''&amp;lt;/code&amp;gt;), the information about parameters will be about a parent particle.&lt;br /&gt;
&lt;br /&gt;
More information about the analysis tool is [https://ctd.inp.nsk.su/wiki/index.php/Use_Analysis_package here].&lt;br /&gt;
&lt;br /&gt;
== Podio output ==&lt;br /&gt;
&lt;br /&gt;
It is possible to write the particle parameters to a ROOT file.&lt;br /&gt;
&lt;br /&gt;
You have to import the library &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
from Configurables import PodioOutput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and to create the algorithm instance&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out = PodioOutput('out', filename=ofile)&lt;br /&gt;
out.outputCommands = [&amp;quot;keep *&amp;quot;]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The reading algorithm has the parameter: filename - an output file name.&lt;br /&gt;
&lt;br /&gt;
== Running algorithm ==&lt;br /&gt;
&lt;br /&gt;
Some necessary parametrs to run the algorithms:&lt;br /&gt;
* TopAlg - a list of the using algorithms&lt;br /&gt;
* EvtMax - a number of events&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation</id>
		<title>Parametric simulation</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation"/>
				<updated>2021-11-24T05:47:55Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: /* SctParSim */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Talks==&lt;br /&gt;
&lt;br /&gt;
* Software meeting 2018-06-29, Friday, [[File:sctau_papas_v2_20180629.pdf]] by '''Georgy Razuvaev'''&lt;br /&gt;
* Software meeting 2019-02-01 [[:Media:Sctau_papas_v3_20190201.pdf | Status of PAPAS]] by '''Georgy Razuvaev'''&lt;br /&gt;
* Software meeting 2019-08-09 [[:Media:Sctparsim_20190809.pdf | Super c-τ parametric simulation: Status]] by '''Georgy Razuvaev'''&lt;br /&gt;
* Software meeting 2019-12-27 [[:Media:SctParSim_status_20191127_Belozyorova.pdf | SctParSim: status and recent progress]] by '''Maria Belozyorova'''&lt;br /&gt;
* Workshop on future Super c-tau factories 2021-11-16 [https://indico.inp.nsk.su/event/62/contributions/2315/ Parametric simulation of the SCT detector] by '''Maria Belozyorova'''&lt;br /&gt;
&lt;br /&gt;
= SctParSim (Aurora) =&lt;br /&gt;
A parametric simulation is a tool to receive a detector response without detailed description of interaction of particles with matter. The simulation is the part of the Aurora project, which is a software suit for SCTF. &lt;br /&gt;
&lt;br /&gt;
Implemented detector subsystems:&lt;br /&gt;
* drift chamber&lt;br /&gt;
* FARICH PID system&lt;br /&gt;
* calorimeter&lt;br /&gt;
* muon system&lt;br /&gt;
&lt;br /&gt;
The parametric simulation yields the detector response in the SCT EDM format thus allowing to analyze its result in the same manner as the result of the full simulation. The tracker and the calorimeter smear particle parameters according&lt;br /&gt;
to a Gaussian distribution, while the FARICH PID and the muon subsystem use for that purpose the results of a pre-conducted standalone full Geant4 simulations.&lt;br /&gt;
&lt;br /&gt;
'''More information about parameterization''' is presented [[SctParSim (Aurora)|here]].&lt;br /&gt;
&lt;br /&gt;
'''How-to use the parametric simulation''' is demonstrated [https://ctd.inp.nsk.su/wiki/index.php/SCT_parametric_simulation here]&lt;br /&gt;
&lt;br /&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 and parameter description''' is [[SctParSim (python)|here]]&lt;br /&gt;
&lt;br /&gt;
= PAPAS (Old) =&lt;br /&gt;
&lt;br /&gt;
More details are [[SctparSim (PAPAS)|here]]&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/SctParSim_(Aurora)</id>
		<title>SctParSim (Aurora)</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/SctParSim_(Aurora)"/>
				<updated>2021-11-24T05:45:45Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: /* Drift chamber */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= SctParSim =&lt;br /&gt;
A parametric simulation is a tool to receive a detector response without detailed description of interaction of particles with matter. The simulation is the part of the Aurora project, which is a software suit for SCTF. &lt;br /&gt;
&lt;br /&gt;
Implemented detector subsystems:&lt;br /&gt;
* drift chamber&lt;br /&gt;
* FARICH PID system&lt;br /&gt;
* calorimeter&lt;br /&gt;
* muon system&lt;br /&gt;
&lt;br /&gt;
The parametric simulation yields the detector response in the SCT EDM format thus allowing to analyze its result in the same manner as the result of the full simulation. The tracker and the calorimeter smear particle parameters according&lt;br /&gt;
to a Gaussian distribution, while the FARICH PID and the muon subsystem use for that purpose the results of a pre-conducted standalone full Geant4 simulations.&lt;br /&gt;
&lt;br /&gt;
'''How-to use the parametric simulation''' is demonstrated [https://ctd.inp.nsk.su/wiki/index.php/SCT_parametric_simulation here]&lt;br /&gt;
&lt;br /&gt;
== Detector configuration ==&lt;br /&gt;
&lt;br /&gt;
The detector parameters can be changed in the run script.&lt;br /&gt;
The detector parameters and their default values are presented below.&lt;br /&gt;
&lt;br /&gt;
=== SctParSimAlg ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change parameter&lt;br /&gt;
! Description&lt;br /&gt;
! Default value &lt;br /&gt;
|-&lt;br /&gt;
| B&lt;br /&gt;
| Detector magnetic field&lt;br /&gt;
| 1.5&lt;br /&gt;
|-&lt;br /&gt;
| mostProbMass&lt;br /&gt;
| The mass of most probable particle&lt;br /&gt;
| 0.13957&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== TrackSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater&lt;br /&gt;
! Description&lt;br /&gt;
! Default value&lt;br /&gt;
|-&lt;br /&gt;
| trackRhoMin&lt;br /&gt;
| Inner radius of barrel tracker, m        &lt;br /&gt;
| 0.1 &lt;br /&gt;
|-&lt;br /&gt;
| trackRhoMax              &lt;br /&gt;
| Outer radius of barrel tracker, m        &lt;br /&gt;
| 0.8 &lt;br /&gt;
|-&lt;br /&gt;
| trackZMin                &lt;br /&gt;
| Inner z coordinate of endcup tracker, m  &lt;br /&gt;
| 0   &lt;br /&gt;
|-&lt;br /&gt;
| trackZMax                &lt;br /&gt;
| Outer z coordinate of endcup tracker, m  &lt;br /&gt;
| 1   &lt;br /&gt;
|- &lt;br /&gt;
| trackMinPt               &lt;br /&gt;
| Minimum momentum, GeV                    &lt;br /&gt;
|0.05 &lt;br /&gt;
|- &lt;br /&gt;
| trackPtProb              &lt;br /&gt;
| Registration probabilities for different momentum, {GeV, prob} &lt;br /&gt;
| {{0.1, 0.8}, {0.3, 0.9}, {1, 0.95), {10, 0.99}} &lt;br /&gt;
|-&lt;br /&gt;
| trackRadLen              &lt;br /&gt;
| Radiation length in the track system, m  &lt;br /&gt;
| 187 &lt;br /&gt;
|-&lt;br /&gt;
| trackResParPT            &lt;br /&gt;
| Parameterizaton parameters for xy projection &lt;br /&gt;
| 0.00212 &lt;br /&gt;
|-&lt;br /&gt;
| trackResParPZ            &lt;br /&gt;
| Parameterization parameters for z projection &lt;br /&gt;
| {0.001281, 0.00308} &lt;br /&gt;
|-&lt;br /&gt;
| trackLayerAx             &lt;br /&gt;
| The radius of layers anf the location radius of the anod layers, mm &lt;br /&gt;
| {{6.306, 217.306}, {6.644, 227.1}, {7.165, 246.906}, {6.564, 341.938}, {6.794, 352.06}, {7.14, 371.992}, {7.388, 382.95}, {6.651, 467.57}, {6.823, 477.718}, {6.968, 488.097}, {7.12, 498.701}, {7.274, 509.535}, {6.768, 636.322}, {6.898, 646.501}, {7.007, 656.957}, {7.121, 667.581}, {6.791, 750.730}, {6.902, 761.027}, {6.995, 771.472}, {7.091, 782.061}} &lt;br /&gt;
|-&lt;br /&gt;
| trackLayerSt            &lt;br /&gt;
| The radius of layers and the location radius of the stereo layers, mm &lt;br /&gt;
| {{6.473, 280.136}, {6.747, 290.136}, {7.182, 310.863}, {7.486, 321.938}, {6.603, 405.941}, {6.799, 416.04}, {7.104, 436.741}, {7.314, 447.606}, {6.741, 533.35}, {6.859, 543.615}, {7.026, 554.088, {7.161, 564.762}, {6.778, 584.801}, {6.919, 595.108}, {7.039, 605.606}, {7.163, 6169.289}, {6.746, 689.948}, {6.865, 700.185}, {7.041, 720.09}, {7.165, 730.775}} &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== FARICHSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| farichRhoMin             &lt;br /&gt;
| Inner radius of barrel FARICH system, m          &lt;br /&gt;
| 0.82    &lt;br /&gt;
|-&lt;br /&gt;
| farichRhoMax             &lt;br /&gt;
| Outer radius of barrel FARICH system, m          &lt;br /&gt;
| 0.9     &lt;br /&gt;
|-&lt;br /&gt;
| farichZMin               &lt;br /&gt;
| Inner z coordinate of endcup FARICH system, m    &lt;br /&gt;
| 1.02    &lt;br /&gt;
|-&lt;br /&gt;
| farichZMax               &lt;br /&gt;
| Outer z coordinate of encup FARICH system, m     &lt;br /&gt;
| 1.273   &lt;br /&gt;
|-&lt;br /&gt;
| farichHoleR              &lt;br /&gt;
| Hole radius of FARICH system                     &lt;br /&gt;
| 0.3     &lt;br /&gt;
|-&lt;br /&gt;
| parSimFarichFileName     &lt;br /&gt;
| The path to the file with response histograms of FARICH &lt;br /&gt;
| ./pi_ms_f1_mppc2_px3_d200_mla4_graph2d.root &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== CaloSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| caloRhoMin               &lt;br /&gt;
| Inner radius of barrel calorimeter, m            &lt;br /&gt;
| 1.09    &lt;br /&gt;
|-&lt;br /&gt;
| caloRhoMax               &lt;br /&gt;
| Outer radius of barrel calorimeter, m            &lt;br /&gt;
| 1.55    &lt;br /&gt;
|-&lt;br /&gt;
| caloZMin                 &lt;br /&gt;
| Inner z coordinate of endcup calorimeter, m      &lt;br /&gt;
| 1.293   &lt;br /&gt;
|-&lt;br /&gt;
| caloZMax                 &lt;br /&gt;
| Outer z coordinate of endcup calorimeter, m      &lt;br /&gt;
| 1.86   &lt;br /&gt;
|-&lt;br /&gt;
| caloCosthmax             &lt;br /&gt;
| Maximum cosine                                   &lt;br /&gt;
| 0.9     &lt;br /&gt;
|-&lt;br /&gt;
| caloClSize               &lt;br /&gt;
| Calorimeter cluster size, m                      &lt;br /&gt;
| 0.045   &lt;br /&gt;
|-&lt;br /&gt;
| caloClSizeEGamma         &lt;br /&gt;
| Calorimeter cluster size for gamma, m            &lt;br /&gt;
| 0.15   &lt;br /&gt;
|-&lt;br /&gt;
| caloEMinBarrel           &lt;br /&gt;
| Minimal energy, GeV                              &lt;br /&gt;
| 0.015   &lt;br /&gt;
|-&lt;br /&gt;
| caloEMinEndcup           &lt;br /&gt;
| Minimal energy, GeV                              &lt;br /&gt;
| 0.015   &lt;br /&gt;
|-&lt;br /&gt;
| caloResPar               &lt;br /&gt;
| Parameterization parameters                      &lt;br /&gt;
| {1.34e-2, 0.066e-2, 0.0, 0.82e-2}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MuonSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| muonRhoMin               &lt;br /&gt;
| Inner radius of barrel muon system, m            &lt;br /&gt;
| 1.87    &lt;br /&gt;
|-&lt;br /&gt;
| muonRhoMax               &lt;br /&gt;
| Outer radius of barrel muon system, m            &lt;br /&gt;
| 2.15    &lt;br /&gt;
|-&lt;br /&gt;
| muonZMin                 &lt;br /&gt;
| Inner z coordinate of endcup muon system, m      &lt;br /&gt;
| 1.88    &lt;br /&gt;
|-&lt;br /&gt;
| muonZMax                 &lt;br /&gt;
| Outer z coordinate of endcup muon system, m      &lt;br /&gt;
| 2.16    &lt;br /&gt;
|-&lt;br /&gt;
| parSimMuonFileNameMu     &lt;br /&gt;
| The path to the file with response histograms of muon system (muon) &lt;br /&gt;
| ./g4beamline_mu_plus_100k_parse.root &lt;br /&gt;
|-&lt;br /&gt;
| parSimMuonFileNamePi     &lt;br /&gt;
| The path to the file with response histograms of muon system (pion) &lt;br /&gt;
| ./g4beamline_pi_plus_100k_parse.root &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parameterization ==&lt;br /&gt;
=== Drift chamber ===&lt;br /&gt;
&lt;br /&gt;
The track resolution is described [https://ctd.inp.nsk.su/wiki/index.php/Drift_chamber here].&lt;br /&gt;
&lt;br /&gt;
The parametric simulation has two options in the tracker to the particle identification: an ionisation clusters counting (dNcl/dx) and dE/dx. The model of calculation the specific number of ionization clusters is taken from a TraPID option by F. Gracagnolo ([https://indico.lal.in2p3.fr/event/4902/contributions/17030/attachments/13603/16389/SCTFDrift_Chamber.pdf The presentation on &amp;quot;Joint Workshop on Future tau-charm factory&amp;quot; in December 4--7, 2018]). An energy losing is calculated using the resolution model from BaBar experiment. The &amp;lt;math&amp;gt;\sigma \left( \frac{dE}{dx} \right)&amp;lt;/math&amp;gt; is parameterized as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\sigma \left( \frac{dE}{dx} \right) = \alpha \left( \frac{dE}{dx} \right) ^\beta dx^\gamma&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where α, β, γ is tuned on BaBar data.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Tracker_res.png|Momentum resolution as a function of momentum depending on polar angle for π+&lt;br /&gt;
&lt;br /&gt;
File:DEdx.png|The dependence of the dE/dx on the momentum in the tracker system&lt;br /&gt;
&lt;br /&gt;
File:cl_count.png|The dependence of the specific number of ionization clusters on the momentum in the tracker system&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== FARICH PID system ===&lt;br /&gt;
&lt;br /&gt;
The FARICH PID system works using the results of the full GEANT4 simulation. The system output is the particle speed and number of photons.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Farich_res.png|The dependence of the particle β factor on the momentum in the FARICH PID system&lt;br /&gt;
&lt;br /&gt;
File:Farich_param.png|The dependence of the number of photoelectron on the βγ factor in the FARICH PID system for different angles (black - 10°, red - 30°, green - 45°)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Calorimeter ===&lt;br /&gt;
&lt;br /&gt;
The calorimeter resolution is &amp;lt;math&amp;gt; \sigma_E = e_0 \bigoplus \frac{e_1}{E} \bigoplus \frac{e_2}{\sqrt{E}} \bigoplus \frac{e_3}{E^{0.25}}&amp;lt;/math&amp;gt;, the coefficients (e0, e1 etc.) are taken from [https://indico.inp.nsk.su/event/13/session/10/contribution/17/material/slides/0.pdf the D. Epifanov presentation on Super C-Tau factory workshop in May 27, 2018].&lt;br /&gt;
&lt;br /&gt;
There are two cluster sizes to gammas / electrons and other particles.&lt;br /&gt;
&lt;br /&gt;
==== Reconstruction ====&lt;br /&gt;
The cross-linking data obtained by the track system and the calorimeter is implemented. This is implemented taking into account the geometric intersection of the calorimeter clusters.&lt;br /&gt;
 &lt;br /&gt;
The algorithm for the cross-linking data obtained by the track system and the calorimeter:&lt;br /&gt;
* union of geometrically intersecting calorimetric clusters&lt;br /&gt;
* finding a match between calorimetric clusters and tracks&lt;br /&gt;
* recalculating cluster characteristics (time, energy, cluster size, conversion point)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Res_eff.png‎|The reconstruction efficiency for different particle types&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Muon system ===&lt;br /&gt;
The muon system works using the results of a reconducted stand-alone simulation on G4BeamLine. The system is a cylinder of eight absorber and sensitive polystyrene layers. The absorber is iron.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:muon.png|The probability distribution for muons and pions to reach a certain layer in the muon system&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Output collection ==&lt;br /&gt;
&lt;br /&gt;
The output ROOT-file contains:&lt;br /&gt;
&lt;br /&gt;
* allGenParticles - MC particles&lt;br /&gt;
** pdgId&lt;br /&gt;
** charge&lt;br /&gt;
** vertex - x, y, and z coordinates&lt;br /&gt;
** p4 - momentum (px, py, pz) and mass&lt;br /&gt;
&lt;br /&gt;
* Particles - the particle characteristics after the parametric simulation &lt;br /&gt;
** pdgId&lt;br /&gt;
** charge&lt;br /&gt;
** vertex - x, y, z coordinates&lt;br /&gt;
** p4 - measured momentum (px, py, pz) and the most probability particle mass&lt;br /&gt;
** dedx&lt;br /&gt;
** dedx_err&lt;br /&gt;
** dncldx - cluster counting&lt;br /&gt;
** dedxPid&lt;br /&gt;
** dncldxPid&lt;br /&gt;
** farichPid&lt;br /&gt;
** muPid&lt;br /&gt;
&lt;br /&gt;
* TrackState - the helix characteristics (the track)&lt;br /&gt;
** phi&lt;br /&gt;
** theta&lt;br /&gt;
** qOverP&lt;br /&gt;
** d0&lt;br /&gt;
** z0&lt;br /&gt;
** referencePoint - x, y and z coordinates&lt;br /&gt;
&lt;br /&gt;
* CaloClusters&lt;br /&gt;
** energy&lt;br /&gt;
** time&lt;br /&gt;
** position - x, y and z coordinates of the calorimeter entry point&lt;br /&gt;
&lt;br /&gt;
* MuonHits&lt;br /&gt;
** layer - the last layer that registered a particle&lt;br /&gt;
&lt;br /&gt;
* FARICHHits&lt;br /&gt;
** cellId&lt;br /&gt;
** energy&lt;br /&gt;
** time&lt;br /&gt;
** beta&lt;br /&gt;
** beta_err&lt;br /&gt;
** nphe0&lt;br /&gt;
** nphe&lt;br /&gt;
&lt;br /&gt;
The more characteristics have intuitive names.&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/SctParSim_(Aurora)</id>
		<title>SctParSim (Aurora)</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/SctParSim_(Aurora)"/>
				<updated>2021-11-24T05:45:12Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: /* Detector configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= SctParSim =&lt;br /&gt;
A parametric simulation is a tool to receive a detector response without detailed description of interaction of particles with matter. The simulation is the part of the Aurora project, which is a software suit for SCTF. &lt;br /&gt;
&lt;br /&gt;
Implemented detector subsystems:&lt;br /&gt;
* drift chamber&lt;br /&gt;
* FARICH PID system&lt;br /&gt;
* calorimeter&lt;br /&gt;
* muon system&lt;br /&gt;
&lt;br /&gt;
The parametric simulation yields the detector response in the SCT EDM format thus allowing to analyze its result in the same manner as the result of the full simulation. The tracker and the calorimeter smear particle parameters according&lt;br /&gt;
to a Gaussian distribution, while the FARICH PID and the muon subsystem use for that purpose the results of a pre-conducted standalone full Geant4 simulations.&lt;br /&gt;
&lt;br /&gt;
'''How-to use the parametric simulation''' is demonstrated [https://ctd.inp.nsk.su/wiki/index.php/SCT_parametric_simulation here]&lt;br /&gt;
&lt;br /&gt;
== Detector configuration ==&lt;br /&gt;
&lt;br /&gt;
The detector parameters can be changed in the run script.&lt;br /&gt;
The detector parameters and their default values are presented below.&lt;br /&gt;
&lt;br /&gt;
=== SctParSimAlg ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change parameter&lt;br /&gt;
! Description&lt;br /&gt;
! Default value &lt;br /&gt;
|-&lt;br /&gt;
| B&lt;br /&gt;
| Detector magnetic field&lt;br /&gt;
| 1.5&lt;br /&gt;
|-&lt;br /&gt;
| mostProbMass&lt;br /&gt;
| The mass of most probable particle&lt;br /&gt;
| 0.13957&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== TrackSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater&lt;br /&gt;
! Description&lt;br /&gt;
! Default value&lt;br /&gt;
|-&lt;br /&gt;
| trackRhoMin&lt;br /&gt;
| Inner radius of barrel tracker, m        &lt;br /&gt;
| 0.1 &lt;br /&gt;
|-&lt;br /&gt;
| trackRhoMax              &lt;br /&gt;
| Outer radius of barrel tracker, m        &lt;br /&gt;
| 0.8 &lt;br /&gt;
|-&lt;br /&gt;
| trackZMin                &lt;br /&gt;
| Inner z coordinate of endcup tracker, m  &lt;br /&gt;
| 0   &lt;br /&gt;
|-&lt;br /&gt;
| trackZMax                &lt;br /&gt;
| Outer z coordinate of endcup tracker, m  &lt;br /&gt;
| 1   &lt;br /&gt;
|- &lt;br /&gt;
| trackMinPt               &lt;br /&gt;
| Minimum momentum, GeV                    &lt;br /&gt;
|0.05 &lt;br /&gt;
|- &lt;br /&gt;
| trackPtProb              &lt;br /&gt;
| Registration probabilities for different momentum, {GeV, prob} &lt;br /&gt;
| {{0.1, 0.8}, {0.3, 0.9}, {1, 0.95), {10, 0.99}} &lt;br /&gt;
|-&lt;br /&gt;
| trackRadLen              &lt;br /&gt;
| Radiation length in the track system, m  &lt;br /&gt;
| 187 &lt;br /&gt;
|-&lt;br /&gt;
| trackResParPT            &lt;br /&gt;
| Parameterizaton parameters for xy projection &lt;br /&gt;
| 0.00212 &lt;br /&gt;
|-&lt;br /&gt;
| trackResParPZ            &lt;br /&gt;
| Parameterization parameters for z projection &lt;br /&gt;
| {0.001281, 0.00308} &lt;br /&gt;
|-&lt;br /&gt;
| trackLayerAx             &lt;br /&gt;
| The radius of layers anf the location radius of the anod layers, mm &lt;br /&gt;
| {{6.306, 217.306}, {6.644, 227.1}, {7.165, 246.906}, {6.564, 341.938}, {6.794, 352.06}, {7.14, 371.992}, {7.388, 382.95}, {6.651, 467.57}, {6.823, 477.718}, {6.968, 488.097}, {7.12, 498.701}, {7.274, 509.535}, {6.768, 636.322}, {6.898, 646.501}, {7.007, 656.957}, {7.121, 667.581}, {6.791, 750.730}, {6.902, 761.027}, {6.995, 771.472}, {7.091, 782.061}} &lt;br /&gt;
|-&lt;br /&gt;
| trackLayerSt            &lt;br /&gt;
| The radius of layers and the location radius of the stereo layers, mm &lt;br /&gt;
| {{6.473, 280.136}, {6.747, 290.136}, {7.182, 310.863}, {7.486, 321.938}, {6.603, 405.941}, {6.799, 416.04}, {7.104, 436.741}, {7.314, 447.606}, {6.741, 533.35}, {6.859, 543.615}, {7.026, 554.088, {7.161, 564.762}, {6.778, 584.801}, {6.919, 595.108}, {7.039, 605.606}, {7.163, 6169.289}, {6.746, 689.948}, {6.865, 700.185}, {7.041, 720.09}, {7.165, 730.775}} &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== FARICHSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| farichRhoMin             &lt;br /&gt;
| Inner radius of barrel FARICH system, m          &lt;br /&gt;
| 0.82    &lt;br /&gt;
|-&lt;br /&gt;
| farichRhoMax             &lt;br /&gt;
| Outer radius of barrel FARICH system, m          &lt;br /&gt;
| 0.9     &lt;br /&gt;
|-&lt;br /&gt;
| farichZMin               &lt;br /&gt;
| Inner z coordinate of endcup FARICH system, m    &lt;br /&gt;
| 1.02    &lt;br /&gt;
|-&lt;br /&gt;
| farichZMax               &lt;br /&gt;
| Outer z coordinate of encup FARICH system, m     &lt;br /&gt;
| 1.273   &lt;br /&gt;
|-&lt;br /&gt;
| farichHoleR              &lt;br /&gt;
| Hole radius of FARICH system                     &lt;br /&gt;
| 0.3     &lt;br /&gt;
|-&lt;br /&gt;
| parSimFarichFileName     &lt;br /&gt;
| The path to the file with response histograms of FARICH &lt;br /&gt;
| ./pi_ms_f1_mppc2_px3_d200_mla4_graph2d.root &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== CaloSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| caloRhoMin               &lt;br /&gt;
| Inner radius of barrel calorimeter, m            &lt;br /&gt;
| 1.09    &lt;br /&gt;
|-&lt;br /&gt;
| caloRhoMax               &lt;br /&gt;
| Outer radius of barrel calorimeter, m            &lt;br /&gt;
| 1.55    &lt;br /&gt;
|-&lt;br /&gt;
| caloZMin                 &lt;br /&gt;
| Inner z coordinate of endcup calorimeter, m      &lt;br /&gt;
| 1.293   &lt;br /&gt;
|-&lt;br /&gt;
| caloZMax                 &lt;br /&gt;
| Outer z coordinate of endcup calorimeter, m      &lt;br /&gt;
| 1.86   &lt;br /&gt;
|-&lt;br /&gt;
| caloCosthmax             &lt;br /&gt;
| Maximum cosine                                   &lt;br /&gt;
| 0.9     &lt;br /&gt;
|-&lt;br /&gt;
| caloClSize               &lt;br /&gt;
| Calorimeter cluster size, m                      &lt;br /&gt;
| 0.045   &lt;br /&gt;
|-&lt;br /&gt;
| caloClSizeEGamma         &lt;br /&gt;
| Calorimeter cluster size for gamma, m            &lt;br /&gt;
| 0.15   &lt;br /&gt;
|-&lt;br /&gt;
| caloEMinBarrel           &lt;br /&gt;
| Minimal energy, GeV                              &lt;br /&gt;
| 0.015   &lt;br /&gt;
|-&lt;br /&gt;
| caloEMinEndcup           &lt;br /&gt;
| Minimal energy, GeV                              &lt;br /&gt;
| 0.015   &lt;br /&gt;
|-&lt;br /&gt;
| caloResPar               &lt;br /&gt;
| Parameterization parameters                      &lt;br /&gt;
| {1.34e-2, 0.066e-2, 0.0, 0.82e-2}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MuonSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| muonRhoMin               &lt;br /&gt;
| Inner radius of barrel muon system, m            &lt;br /&gt;
| 1.87    &lt;br /&gt;
|-&lt;br /&gt;
| muonRhoMax               &lt;br /&gt;
| Outer radius of barrel muon system, m            &lt;br /&gt;
| 2.15    &lt;br /&gt;
|-&lt;br /&gt;
| muonZMin                 &lt;br /&gt;
| Inner z coordinate of endcup muon system, m      &lt;br /&gt;
| 1.88    &lt;br /&gt;
|-&lt;br /&gt;
| muonZMax                 &lt;br /&gt;
| Outer z coordinate of endcup muon system, m      &lt;br /&gt;
| 2.16    &lt;br /&gt;
|-&lt;br /&gt;
| parSimMuonFileNameMu     &lt;br /&gt;
| The path to the file with response histograms of muon system (muon) &lt;br /&gt;
| ./g4beamline_mu_plus_100k_parse.root &lt;br /&gt;
|-&lt;br /&gt;
| parSimMuonFileNamePi     &lt;br /&gt;
| The path to the file with response histograms of muon system (pion) &lt;br /&gt;
| ./g4beamline_pi_plus_100k_parse.root &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parameterization ==&lt;br /&gt;
=== Drift chamber ===&lt;br /&gt;
&lt;br /&gt;
The track resolution is described [https://ctd.inp.nsk.su/wiki/index.php/Drift_chamber here].&lt;br /&gt;
&lt;br /&gt;
The parametric simulation has two options in the tracker to the particle identification: an ionisation clusters counting (dNcl/dx) and dE/dx. The model of calculation the specific number of ionization clusters is taken from a TraPID option by F. Gracagnolo ([https://indico.lal.in2p3.fr/event/4902/contributions/17030/attachments/13603/16389/SCTFDrift_Chamber.pdf The presentation on &amp;quot;Joint Workshop on Future tau-charm factory&amp;quot; in December 4--7, 2018]). An energy losing is calculated using the resolution model from BaBar experiment. The The &amp;lt;math&amp;gt;\sigma \left( \frac{dE}{dx} \right)&amp;lt;/math&amp;gt; is parameterized as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\sigma \left( \frac{dE}{dx} \right) = \alpha \left( \frac{dE}{dx} \right) ^\beta dx^\gamma&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where α, β, γ is tuned on BaBar data.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Tracker_res.png|Momentum resolution as a function of momentum depending on polar angle for π+&lt;br /&gt;
&lt;br /&gt;
File:DEdx.png|The dependence of the dE/dx on the momentum in the tracker system&lt;br /&gt;
&lt;br /&gt;
File:cl_count.png|The dependence of the specific number of ionization clusters on the momentum in the tracker system&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== FARICH PID system ===&lt;br /&gt;
&lt;br /&gt;
The FARICH PID system works using the results of the full GEANT4 simulation. The system output is the particle speed and number of photons.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Farich_res.png|The dependence of the particle β factor on the momentum in the FARICH PID system&lt;br /&gt;
&lt;br /&gt;
File:Farich_param.png|The dependence of the number of photoelectron on the βγ factor in the FARICH PID system for different angles (black - 10°, red - 30°, green - 45°)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Calorimeter ===&lt;br /&gt;
&lt;br /&gt;
The calorimeter resolution is &amp;lt;math&amp;gt; \sigma_E = e_0 \bigoplus \frac{e_1}{E} \bigoplus \frac{e_2}{\sqrt{E}} \bigoplus \frac{e_3}{E^{0.25}}&amp;lt;/math&amp;gt;, the coefficients (e0, e1 etc.) are taken from [https://indico.inp.nsk.su/event/13/session/10/contribution/17/material/slides/0.pdf the D. Epifanov presentation on Super C-Tau factory workshop in May 27, 2018].&lt;br /&gt;
&lt;br /&gt;
There are two cluster sizes to gammas / electrons and other particles.&lt;br /&gt;
&lt;br /&gt;
==== Reconstruction ====&lt;br /&gt;
The cross-linking data obtained by the track system and the calorimeter is implemented. This is implemented taking into account the geometric intersection of the calorimeter clusters.&lt;br /&gt;
 &lt;br /&gt;
The algorithm for the cross-linking data obtained by the track system and the calorimeter:&lt;br /&gt;
* union of geometrically intersecting calorimetric clusters&lt;br /&gt;
* finding a match between calorimetric clusters and tracks&lt;br /&gt;
* recalculating cluster characteristics (time, energy, cluster size, conversion point)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Res_eff.png‎|The reconstruction efficiency for different particle types&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Muon system ===&lt;br /&gt;
The muon system works using the results of a reconducted stand-alone simulation on G4BeamLine. The system is a cylinder of eight absorber and sensitive polystyrene layers. The absorber is iron.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:muon.png|The probability distribution for muons and pions to reach a certain layer in the muon system&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Output collection ==&lt;br /&gt;
&lt;br /&gt;
The output ROOT-file contains:&lt;br /&gt;
&lt;br /&gt;
* allGenParticles - MC particles&lt;br /&gt;
** pdgId&lt;br /&gt;
** charge&lt;br /&gt;
** vertex - x, y, and z coordinates&lt;br /&gt;
** p4 - momentum (px, py, pz) and mass&lt;br /&gt;
&lt;br /&gt;
* Particles - the particle characteristics after the parametric simulation &lt;br /&gt;
** pdgId&lt;br /&gt;
** charge&lt;br /&gt;
** vertex - x, y, z coordinates&lt;br /&gt;
** p4 - measured momentum (px, py, pz) and the most probability particle mass&lt;br /&gt;
** dedx&lt;br /&gt;
** dedx_err&lt;br /&gt;
** dncldx - cluster counting&lt;br /&gt;
** dedxPid&lt;br /&gt;
** dncldxPid&lt;br /&gt;
** farichPid&lt;br /&gt;
** muPid&lt;br /&gt;
&lt;br /&gt;
* TrackState - the helix characteristics (the track)&lt;br /&gt;
** phi&lt;br /&gt;
** theta&lt;br /&gt;
** qOverP&lt;br /&gt;
** d0&lt;br /&gt;
** z0&lt;br /&gt;
** referencePoint - x, y and z coordinates&lt;br /&gt;
&lt;br /&gt;
* CaloClusters&lt;br /&gt;
** energy&lt;br /&gt;
** time&lt;br /&gt;
** position - x, y and z coordinates of the calorimeter entry point&lt;br /&gt;
&lt;br /&gt;
* MuonHits&lt;br /&gt;
** layer - the last layer that registered a particle&lt;br /&gt;
&lt;br /&gt;
* FARICHHits&lt;br /&gt;
** cellId&lt;br /&gt;
** energy&lt;br /&gt;
** time&lt;br /&gt;
** beta&lt;br /&gt;
** beta_err&lt;br /&gt;
** nphe0&lt;br /&gt;
** nphe&lt;br /&gt;
&lt;br /&gt;
The more characteristics have intuitive names.&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/SctParSim_(Aurora)</id>
		<title>SctParSim (Aurora)</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/SctParSim_(Aurora)"/>
				<updated>2021-11-24T05:44:02Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: /* Detector configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= SctParSim =&lt;br /&gt;
A parametric simulation is a tool to receive a detector response without detailed description of interaction of particles with matter. The simulation is the part of the Aurora project, which is a software suit for SCTF. &lt;br /&gt;
&lt;br /&gt;
Implemented detector subsystems:&lt;br /&gt;
* drift chamber&lt;br /&gt;
* FARICH PID system&lt;br /&gt;
* calorimeter&lt;br /&gt;
* muon system&lt;br /&gt;
&lt;br /&gt;
The parametric simulation yields the detector response in the SCT EDM format thus allowing to analyze its result in the same manner as the result of the full simulation. The tracker and the calorimeter smear particle parameters according&lt;br /&gt;
to a Gaussian distribution, while the FARICH PID and the muon subsystem use for that purpose the results of a pre-conducted standalone full Geant4 simulations.&lt;br /&gt;
&lt;br /&gt;
'''How-to use the parametric simulation''' is demonstrated [https://ctd.inp.nsk.su/wiki/index.php/SCT_parametric_simulation here]&lt;br /&gt;
&lt;br /&gt;
== Detector configuration ==&lt;br /&gt;
&lt;br /&gt;
The detector parameters can be changed in the run script.&lt;br /&gt;
The detector parameters and their default values can be viewed here.&lt;br /&gt;
&lt;br /&gt;
=== SctParSimAlg ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change parameter&lt;br /&gt;
! Description&lt;br /&gt;
! Default value &lt;br /&gt;
|-&lt;br /&gt;
| B&lt;br /&gt;
| Detector magnetic field&lt;br /&gt;
| 1.5&lt;br /&gt;
|-&lt;br /&gt;
| mostProbMass&lt;br /&gt;
| The mass of most probable particle&lt;br /&gt;
| 0.13957&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== TrackSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater&lt;br /&gt;
! Description&lt;br /&gt;
! Default value&lt;br /&gt;
|-&lt;br /&gt;
| trackRhoMin&lt;br /&gt;
| Inner radius of barrel tracker, m        &lt;br /&gt;
| 0.1 &lt;br /&gt;
|-&lt;br /&gt;
| trackRhoMax              &lt;br /&gt;
| Outer radius of barrel tracker, m        &lt;br /&gt;
| 0.8 &lt;br /&gt;
|-&lt;br /&gt;
| trackZMin                &lt;br /&gt;
| Inner z coordinate of endcup tracker, m  &lt;br /&gt;
| 0   &lt;br /&gt;
|-&lt;br /&gt;
| trackZMax                &lt;br /&gt;
| Outer z coordinate of endcup tracker, m  &lt;br /&gt;
| 1   &lt;br /&gt;
|- &lt;br /&gt;
| trackMinPt               &lt;br /&gt;
| Minimum momentum, GeV                    &lt;br /&gt;
|0.05 &lt;br /&gt;
|- &lt;br /&gt;
| trackPtProb              &lt;br /&gt;
| Registration probabilities for different momentum, {GeV, prob} &lt;br /&gt;
| {{0.1, 0.8}, {0.3, 0.9}, {1, 0.95), {10, 0.99}} &lt;br /&gt;
|-&lt;br /&gt;
| trackRadLen              &lt;br /&gt;
| Radiation length in the track system, m  &lt;br /&gt;
| 187 &lt;br /&gt;
|-&lt;br /&gt;
| trackResParPT            &lt;br /&gt;
| Parameterizaton parameters for xy projection &lt;br /&gt;
| 0.00212 &lt;br /&gt;
|-&lt;br /&gt;
| trackResParPZ            &lt;br /&gt;
| Parameterization parameters for z projection &lt;br /&gt;
| {0.001281, 0.00308} &lt;br /&gt;
|-&lt;br /&gt;
| trackLayerAx             &lt;br /&gt;
| The radius of layers anf the location radius of the anod layers, mm &lt;br /&gt;
| {{6.306, 217.306}, {6.644, 227.1}, {7.165, 246.906}, {6.564, 341.938}, {6.794, 352.06}, {7.14, 371.992}, {7.388, 382.95}, {6.651, 467.57}, {6.823, 477.718}, {6.968, 488.097}, {7.12, 498.701}, {7.274, 509.535}, {6.768, 636.322}, {6.898, 646.501}, {7.007, 656.957}, {7.121, 667.581}, {6.791, 750.730}, {6.902, 761.027}, {6.995, 771.472}, {7.091, 782.061}} &lt;br /&gt;
|-&lt;br /&gt;
| trackLayerSt            &lt;br /&gt;
| The radius of layers and the location radius of the stereo layers, mm &lt;br /&gt;
| {{6.473, 280.136}, {6.747, 290.136}, {7.182, 310.863}, {7.486, 321.938}, {6.603, 405.941}, {6.799, 416.04}, {7.104, 436.741}, {7.314, 447.606}, {6.741, 533.35}, {6.859, 543.615}, {7.026, 554.088, {7.161, 564.762}, {6.778, 584.801}, {6.919, 595.108}, {7.039, 605.606}, {7.163, 6169.289}, {6.746, 689.948}, {6.865, 700.185}, {7.041, 720.09}, {7.165, 730.775}} &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== FARICHSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| farichRhoMin             &lt;br /&gt;
| Inner radius of barrel FARICH system, m          &lt;br /&gt;
| 0.82    &lt;br /&gt;
|-&lt;br /&gt;
| farichRhoMax             &lt;br /&gt;
| Outer radius of barrel FARICH system, m          &lt;br /&gt;
| 0.9     &lt;br /&gt;
|-&lt;br /&gt;
| farichZMin               &lt;br /&gt;
| Inner z coordinate of endcup FARICH system, m    &lt;br /&gt;
| 1.02    &lt;br /&gt;
|-&lt;br /&gt;
| farichZMax               &lt;br /&gt;
| Outer z coordinate of encup FARICH system, m     &lt;br /&gt;
| 1.273   &lt;br /&gt;
|-&lt;br /&gt;
| farichHoleR              &lt;br /&gt;
| Hole radius of FARICH system                     &lt;br /&gt;
| 0.3     &lt;br /&gt;
|-&lt;br /&gt;
| parSimFarichFileName     &lt;br /&gt;
| The path to the file with response histograms of FARICH &lt;br /&gt;
| ./pi_ms_f1_mppc2_px3_d200_mla4_graph2d.root &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== CaloSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| caloRhoMin               &lt;br /&gt;
| Inner radius of barrel calorimeter, m            &lt;br /&gt;
| 1.09    &lt;br /&gt;
|-&lt;br /&gt;
| caloRhoMax               &lt;br /&gt;
| Outer radius of barrel calorimeter, m            &lt;br /&gt;
| 1.55    &lt;br /&gt;
|-&lt;br /&gt;
| caloZMin                 &lt;br /&gt;
| Inner z coordinate of endcup calorimeter, m      &lt;br /&gt;
| 1.293   &lt;br /&gt;
|-&lt;br /&gt;
| caloZMax                 &lt;br /&gt;
| Outer z coordinate of endcup calorimeter, m      &lt;br /&gt;
| 1.86   &lt;br /&gt;
|-&lt;br /&gt;
| caloCosthmax             &lt;br /&gt;
| Maximum cosine                                   &lt;br /&gt;
| 0.9     &lt;br /&gt;
|-&lt;br /&gt;
| caloClSize               &lt;br /&gt;
| Calorimeter cluster size, m                      &lt;br /&gt;
| 0.045   &lt;br /&gt;
|-&lt;br /&gt;
| caloClSizeEGamma         &lt;br /&gt;
| Calorimeter cluster size for gamma, m            &lt;br /&gt;
| 0.15   &lt;br /&gt;
|-&lt;br /&gt;
| caloEMinBarrel           &lt;br /&gt;
| Minimal energy, GeV                              &lt;br /&gt;
| 0.015   &lt;br /&gt;
|-&lt;br /&gt;
| caloEMinEndcup           &lt;br /&gt;
| Minimal energy, GeV                              &lt;br /&gt;
| 0.015   &lt;br /&gt;
|-&lt;br /&gt;
| caloResPar               &lt;br /&gt;
| Parameterization parameters                      &lt;br /&gt;
| {1.34e-2, 0.066e-2, 0.0, 0.82e-2}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MuonSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| muonRhoMin               &lt;br /&gt;
| Inner radius of barrel muon system, m            &lt;br /&gt;
| 1.87    &lt;br /&gt;
|-&lt;br /&gt;
| muonRhoMax               &lt;br /&gt;
| Outer radius of barrel muon system, m            &lt;br /&gt;
| 2.15    &lt;br /&gt;
|-&lt;br /&gt;
| muonZMin                 &lt;br /&gt;
| Inner z coordinate of endcup muon system, m      &lt;br /&gt;
| 1.88    &lt;br /&gt;
|-&lt;br /&gt;
| muonZMax                 &lt;br /&gt;
| Outer z coordinate of endcup muon system, m      &lt;br /&gt;
| 2.16    &lt;br /&gt;
|-&lt;br /&gt;
| parSimMuonFileNameMu     &lt;br /&gt;
| The path to the file with response histograms of muon system (muon) &lt;br /&gt;
| ./g4beamline_mu_plus_100k_parse.root &lt;br /&gt;
|-&lt;br /&gt;
| parSimMuonFileNamePi     &lt;br /&gt;
| The path to the file with response histograms of muon system (pion) &lt;br /&gt;
| ./g4beamline_pi_plus_100k_parse.root &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parameterization ==&lt;br /&gt;
=== Drift chamber ===&lt;br /&gt;
&lt;br /&gt;
The track resolution is described [https://ctd.inp.nsk.su/wiki/index.php/Drift_chamber here].&lt;br /&gt;
&lt;br /&gt;
The parametric simulation has two options in the tracker to the particle identification: an ionisation clusters counting (dNcl/dx) and dE/dx. The model of calculation the specific number of ionization clusters is taken from a TraPID option by F. Gracagnolo ([https://indico.lal.in2p3.fr/event/4902/contributions/17030/attachments/13603/16389/SCTFDrift_Chamber.pdf The presentation on &amp;quot;Joint Workshop on Future tau-charm factory&amp;quot; in December 4--7, 2018]). An energy losing is calculated using the resolution model from BaBar experiment. The The &amp;lt;math&amp;gt;\sigma \left( \frac{dE}{dx} \right)&amp;lt;/math&amp;gt; is parameterized as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\sigma \left( \frac{dE}{dx} \right) = \alpha \left( \frac{dE}{dx} \right) ^\beta dx^\gamma&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where α, β, γ is tuned on BaBar data.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Tracker_res.png|Momentum resolution as a function of momentum depending on polar angle for π+&lt;br /&gt;
&lt;br /&gt;
File:DEdx.png|The dependence of the dE/dx on the momentum in the tracker system&lt;br /&gt;
&lt;br /&gt;
File:cl_count.png|The dependence of the specific number of ionization clusters on the momentum in the tracker system&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== FARICH PID system ===&lt;br /&gt;
&lt;br /&gt;
The FARICH PID system works using the results of the full GEANT4 simulation. The system output is the particle speed and number of photons.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Farich_res.png|The dependence of the particle β factor on the momentum in the FARICH PID system&lt;br /&gt;
&lt;br /&gt;
File:Farich_param.png|The dependence of the number of photoelectron on the βγ factor in the FARICH PID system for different angles (black - 10°, red - 30°, green - 45°)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Calorimeter ===&lt;br /&gt;
&lt;br /&gt;
The calorimeter resolution is &amp;lt;math&amp;gt; \sigma_E = e_0 \bigoplus \frac{e_1}{E} \bigoplus \frac{e_2}{\sqrt{E}} \bigoplus \frac{e_3}{E^{0.25}}&amp;lt;/math&amp;gt;, the coefficients (e0, e1 etc.) are taken from [https://indico.inp.nsk.su/event/13/session/10/contribution/17/material/slides/0.pdf the D. Epifanov presentation on Super C-Tau factory workshop in May 27, 2018].&lt;br /&gt;
&lt;br /&gt;
There are two cluster sizes to gammas / electrons and other particles.&lt;br /&gt;
&lt;br /&gt;
==== Reconstruction ====&lt;br /&gt;
The cross-linking data obtained by the track system and the calorimeter is implemented. This is implemented taking into account the geometric intersection of the calorimeter clusters.&lt;br /&gt;
 &lt;br /&gt;
The algorithm for the cross-linking data obtained by the track system and the calorimeter:&lt;br /&gt;
* union of geometrically intersecting calorimetric clusters&lt;br /&gt;
* finding a match between calorimetric clusters and tracks&lt;br /&gt;
* recalculating cluster characteristics (time, energy, cluster size, conversion point)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Res_eff.png‎|The reconstruction efficiency for different particle types&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Muon system ===&lt;br /&gt;
The muon system works using the results of a reconducted stand-alone simulation on G4BeamLine. The system is a cylinder of eight absorber and sensitive polystyrene layers. The absorber is iron.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:muon.png|The probability distribution for muons and pions to reach a certain layer in the muon system&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Output collection ==&lt;br /&gt;
&lt;br /&gt;
The output ROOT-file contains:&lt;br /&gt;
&lt;br /&gt;
* allGenParticles - MC particles&lt;br /&gt;
** pdgId&lt;br /&gt;
** charge&lt;br /&gt;
** vertex - x, y, and z coordinates&lt;br /&gt;
** p4 - momentum (px, py, pz) and mass&lt;br /&gt;
&lt;br /&gt;
* Particles - the particle characteristics after the parametric simulation &lt;br /&gt;
** pdgId&lt;br /&gt;
** charge&lt;br /&gt;
** vertex - x, y, z coordinates&lt;br /&gt;
** p4 - measured momentum (px, py, pz) and the most probability particle mass&lt;br /&gt;
** dedx&lt;br /&gt;
** dedx_err&lt;br /&gt;
** dncldx - cluster counting&lt;br /&gt;
** dedxPid&lt;br /&gt;
** dncldxPid&lt;br /&gt;
** farichPid&lt;br /&gt;
** muPid&lt;br /&gt;
&lt;br /&gt;
* TrackState - the helix characteristics (the track)&lt;br /&gt;
** phi&lt;br /&gt;
** theta&lt;br /&gt;
** qOverP&lt;br /&gt;
** d0&lt;br /&gt;
** z0&lt;br /&gt;
** referencePoint - x, y and z coordinates&lt;br /&gt;
&lt;br /&gt;
* CaloClusters&lt;br /&gt;
** energy&lt;br /&gt;
** time&lt;br /&gt;
** position - x, y and z coordinates of the calorimeter entry point&lt;br /&gt;
&lt;br /&gt;
* MuonHits&lt;br /&gt;
** layer - the last layer that registered a particle&lt;br /&gt;
&lt;br /&gt;
* FARICHHits&lt;br /&gt;
** cellId&lt;br /&gt;
** energy&lt;br /&gt;
** time&lt;br /&gt;
** beta&lt;br /&gt;
** beta_err&lt;br /&gt;
** nphe0&lt;br /&gt;
** nphe&lt;br /&gt;
&lt;br /&gt;
The more characteristics have intuitive names.&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/SctParSim_(Aurora)</id>
		<title>SctParSim (Aurora)</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/SctParSim_(Aurora)"/>
				<updated>2021-11-24T05:43:25Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: /* SctParSim */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= SctParSim =&lt;br /&gt;
A parametric simulation is a tool to receive a detector response without detailed description of interaction of particles with matter. The simulation is the part of the Aurora project, which is a software suit for SCTF. &lt;br /&gt;
&lt;br /&gt;
Implemented detector subsystems:&lt;br /&gt;
* drift chamber&lt;br /&gt;
* FARICH PID system&lt;br /&gt;
* calorimeter&lt;br /&gt;
* muon system&lt;br /&gt;
&lt;br /&gt;
The parametric simulation yields the detector response in the SCT EDM format thus allowing to analyze its result in the same manner as the result of the full simulation. The tracker and the calorimeter smear particle parameters according&lt;br /&gt;
to a Gaussian distribution, while the FARICH PID and the muon subsystem use for that purpose the results of a pre-conducted standalone full Geant4 simulations.&lt;br /&gt;
&lt;br /&gt;
'''How-to use the parametric simulation''' is demonstrated [https://ctd.inp.nsk.su/wiki/index.php/SCT_parametric_simulation here]&lt;br /&gt;
&lt;br /&gt;
== Detector configuration ==&lt;br /&gt;
&lt;br /&gt;
The detector parameters can be changed in the run script (see Configuration section).&lt;br /&gt;
The detector parameters and their default values can be viewed here.&lt;br /&gt;
&lt;br /&gt;
=== SctParSimAlg ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change parameter&lt;br /&gt;
! Description&lt;br /&gt;
! Default value &lt;br /&gt;
|-&lt;br /&gt;
| B&lt;br /&gt;
| Detector magnetic field&lt;br /&gt;
| 1.5&lt;br /&gt;
|-&lt;br /&gt;
| mostProbMass&lt;br /&gt;
| The mass of most probable particle&lt;br /&gt;
| 0.13957&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== TrackSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater&lt;br /&gt;
! Description&lt;br /&gt;
! Default value&lt;br /&gt;
|-&lt;br /&gt;
| trackRhoMin&lt;br /&gt;
| Inner radius of barrel tracker, m        &lt;br /&gt;
| 0.1 &lt;br /&gt;
|-&lt;br /&gt;
| trackRhoMax              &lt;br /&gt;
| Outer radius of barrel tracker, m        &lt;br /&gt;
| 0.8 &lt;br /&gt;
|-&lt;br /&gt;
| trackZMin                &lt;br /&gt;
| Inner z coordinate of endcup tracker, m  &lt;br /&gt;
| 0   &lt;br /&gt;
|-&lt;br /&gt;
| trackZMax                &lt;br /&gt;
| Outer z coordinate of endcup tracker, m  &lt;br /&gt;
| 1   &lt;br /&gt;
|- &lt;br /&gt;
| trackMinPt               &lt;br /&gt;
| Minimum momentum, GeV                    &lt;br /&gt;
|0.05 &lt;br /&gt;
|- &lt;br /&gt;
| trackPtProb              &lt;br /&gt;
| Registration probabilities for different momentum, {GeV, prob} &lt;br /&gt;
| {{0.1, 0.8}, {0.3, 0.9}, {1, 0.95), {10, 0.99}} &lt;br /&gt;
|-&lt;br /&gt;
| trackRadLen              &lt;br /&gt;
| Radiation length in the track system, m  &lt;br /&gt;
| 187 &lt;br /&gt;
|-&lt;br /&gt;
| trackResParPT            &lt;br /&gt;
| Parameterizaton parameters for xy projection &lt;br /&gt;
| 0.00212 &lt;br /&gt;
|-&lt;br /&gt;
| trackResParPZ            &lt;br /&gt;
| Parameterization parameters for z projection &lt;br /&gt;
| {0.001281, 0.00308} &lt;br /&gt;
|-&lt;br /&gt;
| trackLayerAx             &lt;br /&gt;
| The radius of layers anf the location radius of the anod layers, mm &lt;br /&gt;
| {{6.306, 217.306}, {6.644, 227.1}, {7.165, 246.906}, {6.564, 341.938}, {6.794, 352.06}, {7.14, 371.992}, {7.388, 382.95}, {6.651, 467.57}, {6.823, 477.718}, {6.968, 488.097}, {7.12, 498.701}, {7.274, 509.535}, {6.768, 636.322}, {6.898, 646.501}, {7.007, 656.957}, {7.121, 667.581}, {6.791, 750.730}, {6.902, 761.027}, {6.995, 771.472}, {7.091, 782.061}} &lt;br /&gt;
|-&lt;br /&gt;
| trackLayerSt            &lt;br /&gt;
| The radius of layers and the location radius of the stereo layers, mm &lt;br /&gt;
| {{6.473, 280.136}, {6.747, 290.136}, {7.182, 310.863}, {7.486, 321.938}, {6.603, 405.941}, {6.799, 416.04}, {7.104, 436.741}, {7.314, 447.606}, {6.741, 533.35}, {6.859, 543.615}, {7.026, 554.088, {7.161, 564.762}, {6.778, 584.801}, {6.919, 595.108}, {7.039, 605.606}, {7.163, 6169.289}, {6.746, 689.948}, {6.865, 700.185}, {7.041, 720.09}, {7.165, 730.775}} &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== FARICHSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| farichRhoMin             &lt;br /&gt;
| Inner radius of barrel FARICH system, m          &lt;br /&gt;
| 0.82    &lt;br /&gt;
|-&lt;br /&gt;
| farichRhoMax             &lt;br /&gt;
| Outer radius of barrel FARICH system, m          &lt;br /&gt;
| 0.9     &lt;br /&gt;
|-&lt;br /&gt;
| farichZMin               &lt;br /&gt;
| Inner z coordinate of endcup FARICH system, m    &lt;br /&gt;
| 1.02    &lt;br /&gt;
|-&lt;br /&gt;
| farichZMax               &lt;br /&gt;
| Outer z coordinate of encup FARICH system, m     &lt;br /&gt;
| 1.273   &lt;br /&gt;
|-&lt;br /&gt;
| farichHoleR              &lt;br /&gt;
| Hole radius of FARICH system                     &lt;br /&gt;
| 0.3     &lt;br /&gt;
|-&lt;br /&gt;
| parSimFarichFileName     &lt;br /&gt;
| The path to the file with response histograms of FARICH &lt;br /&gt;
| ./pi_ms_f1_mppc2_px3_d200_mla4_graph2d.root &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== CaloSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| caloRhoMin               &lt;br /&gt;
| Inner radius of barrel calorimeter, m            &lt;br /&gt;
| 1.09    &lt;br /&gt;
|-&lt;br /&gt;
| caloRhoMax               &lt;br /&gt;
| Outer radius of barrel calorimeter, m            &lt;br /&gt;
| 1.55    &lt;br /&gt;
|-&lt;br /&gt;
| caloZMin                 &lt;br /&gt;
| Inner z coordinate of endcup calorimeter, m      &lt;br /&gt;
| 1.293   &lt;br /&gt;
|-&lt;br /&gt;
| caloZMax                 &lt;br /&gt;
| Outer z coordinate of endcup calorimeter, m      &lt;br /&gt;
| 1.86   &lt;br /&gt;
|-&lt;br /&gt;
| caloCosthmax             &lt;br /&gt;
| Maximum cosine                                   &lt;br /&gt;
| 0.9     &lt;br /&gt;
|-&lt;br /&gt;
| caloClSize               &lt;br /&gt;
| Calorimeter cluster size, m                      &lt;br /&gt;
| 0.045   &lt;br /&gt;
|-&lt;br /&gt;
| caloClSizeEGamma         &lt;br /&gt;
| Calorimeter cluster size for gamma, m            &lt;br /&gt;
| 0.15   &lt;br /&gt;
|-&lt;br /&gt;
| caloEMinBarrel           &lt;br /&gt;
| Minimal energy, GeV                              &lt;br /&gt;
| 0.015   &lt;br /&gt;
|-&lt;br /&gt;
| caloEMinEndcup           &lt;br /&gt;
| Minimal energy, GeV                              &lt;br /&gt;
| 0.015   &lt;br /&gt;
|-&lt;br /&gt;
| caloResPar               &lt;br /&gt;
| Parameterization parameters                      &lt;br /&gt;
| {1.34e-2, 0.066e-2, 0.0, 0.82e-2}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MuonSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| muonRhoMin               &lt;br /&gt;
| Inner radius of barrel muon system, m            &lt;br /&gt;
| 1.87    &lt;br /&gt;
|-&lt;br /&gt;
| muonRhoMax               &lt;br /&gt;
| Outer radius of barrel muon system, m            &lt;br /&gt;
| 2.15    &lt;br /&gt;
|-&lt;br /&gt;
| muonZMin                 &lt;br /&gt;
| Inner z coordinate of endcup muon system, m      &lt;br /&gt;
| 1.88    &lt;br /&gt;
|-&lt;br /&gt;
| muonZMax                 &lt;br /&gt;
| Outer z coordinate of endcup muon system, m      &lt;br /&gt;
| 2.16    &lt;br /&gt;
|-&lt;br /&gt;
| parSimMuonFileNameMu     &lt;br /&gt;
| The path to the file with response histograms of muon system (muon) &lt;br /&gt;
| ./g4beamline_mu_plus_100k_parse.root &lt;br /&gt;
|-&lt;br /&gt;
| parSimMuonFileNamePi     &lt;br /&gt;
| The path to the file with response histograms of muon system (pion) &lt;br /&gt;
| ./g4beamline_pi_plus_100k_parse.root &lt;br /&gt;
|} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Parameterization ==&lt;br /&gt;
=== Drift chamber ===&lt;br /&gt;
&lt;br /&gt;
The track resolution is described [https://ctd.inp.nsk.su/wiki/index.php/Drift_chamber here].&lt;br /&gt;
&lt;br /&gt;
The parametric simulation has two options in the tracker to the particle identification: an ionisation clusters counting (dNcl/dx) and dE/dx. The model of calculation the specific number of ionization clusters is taken from a TraPID option by F. Gracagnolo ([https://indico.lal.in2p3.fr/event/4902/contributions/17030/attachments/13603/16389/SCTFDrift_Chamber.pdf The presentation on &amp;quot;Joint Workshop on Future tau-charm factory&amp;quot; in December 4--7, 2018]). An energy losing is calculated using the resolution model from BaBar experiment. The The &amp;lt;math&amp;gt;\sigma \left( \frac{dE}{dx} \right)&amp;lt;/math&amp;gt; is parameterized as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\sigma \left( \frac{dE}{dx} \right) = \alpha \left( \frac{dE}{dx} \right) ^\beta dx^\gamma&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where α, β, γ is tuned on BaBar data.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Tracker_res.png|Momentum resolution as a function of momentum depending on polar angle for π+&lt;br /&gt;
&lt;br /&gt;
File:DEdx.png|The dependence of the dE/dx on the momentum in the tracker system&lt;br /&gt;
&lt;br /&gt;
File:cl_count.png|The dependence of the specific number of ionization clusters on the momentum in the tracker system&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== FARICH PID system ===&lt;br /&gt;
&lt;br /&gt;
The FARICH PID system works using the results of the full GEANT4 simulation. The system output is the particle speed and number of photons.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Farich_res.png|The dependence of the particle β factor on the momentum in the FARICH PID system&lt;br /&gt;
&lt;br /&gt;
File:Farich_param.png|The dependence of the number of photoelectron on the βγ factor in the FARICH PID system for different angles (black - 10°, red - 30°, green - 45°)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Calorimeter ===&lt;br /&gt;
&lt;br /&gt;
The calorimeter resolution is &amp;lt;math&amp;gt; \sigma_E = e_0 \bigoplus \frac{e_1}{E} \bigoplus \frac{e_2}{\sqrt{E}} \bigoplus \frac{e_3}{E^{0.25}}&amp;lt;/math&amp;gt;, the coefficients (e0, e1 etc.) are taken from [https://indico.inp.nsk.su/event/13/session/10/contribution/17/material/slides/0.pdf the D. Epifanov presentation on Super C-Tau factory workshop in May 27, 2018].&lt;br /&gt;
&lt;br /&gt;
There are two cluster sizes to gammas / electrons and other particles.&lt;br /&gt;
&lt;br /&gt;
==== Reconstruction ====&lt;br /&gt;
The cross-linking data obtained by the track system and the calorimeter is implemented. This is implemented taking into account the geometric intersection of the calorimeter clusters.&lt;br /&gt;
 &lt;br /&gt;
The algorithm for the cross-linking data obtained by the track system and the calorimeter:&lt;br /&gt;
* union of geometrically intersecting calorimetric clusters&lt;br /&gt;
* finding a match between calorimetric clusters and tracks&lt;br /&gt;
* recalculating cluster characteristics (time, energy, cluster size, conversion point)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Res_eff.png‎|The reconstruction efficiency for different particle types&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Muon system ===&lt;br /&gt;
The muon system works using the results of a reconducted stand-alone simulation on G4BeamLine. The system is a cylinder of eight absorber and sensitive polystyrene layers. The absorber is iron.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:muon.png|The probability distribution for muons and pions to reach a certain layer in the muon system&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Output collection ==&lt;br /&gt;
&lt;br /&gt;
The output ROOT-file contains:&lt;br /&gt;
&lt;br /&gt;
* allGenParticles - MC particles&lt;br /&gt;
** pdgId&lt;br /&gt;
** charge&lt;br /&gt;
** vertex - x, y, and z coordinates&lt;br /&gt;
** p4 - momentum (px, py, pz) and mass&lt;br /&gt;
&lt;br /&gt;
* Particles - the particle characteristics after the parametric simulation &lt;br /&gt;
** pdgId&lt;br /&gt;
** charge&lt;br /&gt;
** vertex - x, y, z coordinates&lt;br /&gt;
** p4 - measured momentum (px, py, pz) and the most probability particle mass&lt;br /&gt;
** dedx&lt;br /&gt;
** dedx_err&lt;br /&gt;
** dncldx - cluster counting&lt;br /&gt;
** dedxPid&lt;br /&gt;
** dncldxPid&lt;br /&gt;
** farichPid&lt;br /&gt;
** muPid&lt;br /&gt;
&lt;br /&gt;
* TrackState - the helix characteristics (the track)&lt;br /&gt;
** phi&lt;br /&gt;
** theta&lt;br /&gt;
** qOverP&lt;br /&gt;
** d0&lt;br /&gt;
** z0&lt;br /&gt;
** referencePoint - x, y and z coordinates&lt;br /&gt;
&lt;br /&gt;
* CaloClusters&lt;br /&gt;
** energy&lt;br /&gt;
** time&lt;br /&gt;
** position - x, y and z coordinates of the calorimeter entry point&lt;br /&gt;
&lt;br /&gt;
* MuonHits&lt;br /&gt;
** layer - the last layer that registered a particle&lt;br /&gt;
&lt;br /&gt;
* FARICHHits&lt;br /&gt;
** cellId&lt;br /&gt;
** energy&lt;br /&gt;
** time&lt;br /&gt;
** beta&lt;br /&gt;
** beta_err&lt;br /&gt;
** nphe0&lt;br /&gt;
** nphe&lt;br /&gt;
&lt;br /&gt;
The more characteristics have intuitive names.&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation</id>
		<title>Parametric simulation</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation"/>
				<updated>2021-11-24T05:42:52Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: /* SctParSim (Python) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Talks==&lt;br /&gt;
&lt;br /&gt;
* Software meeting 2018-06-29, Friday, [[File:sctau_papas_v2_20180629.pdf]] by '''Georgy Razuvaev'''&lt;br /&gt;
* Software meeting 2019-02-01 [[:Media:Sctau_papas_v3_20190201.pdf | Status of PAPAS]] by '''Georgy Razuvaev'''&lt;br /&gt;
* Software meeting 2019-08-09 [[:Media:Sctparsim_20190809.pdf | Super c-τ parametric simulation: Status]] by '''Georgy Razuvaev'''&lt;br /&gt;
* Software meeting 2019-12-27 [[:Media:SctParSim_status_20191127_Belozyorova.pdf | SctParSim: status and recent progress]] by '''Maria Belozyorova'''&lt;br /&gt;
* Workshop on future Super c-tau factories 2021-11-16 [https://indico.inp.nsk.su/event/62/contributions/2315/ Parametric simulation of the SCT detector] by '''Maria Belozyorova'''&lt;br /&gt;
&lt;br /&gt;
= SctParSim =&lt;br /&gt;
A parametric simulation is a tool to receive a detector response without detailed description of interaction of particles with matter. The simulation is the part of the Aurora project, which is a software suit for SCTF. &lt;br /&gt;
&lt;br /&gt;
Implemented detector subsystems:&lt;br /&gt;
* drift chamber&lt;br /&gt;
* FARICH PID system&lt;br /&gt;
* calorimeter&lt;br /&gt;
* muon system&lt;br /&gt;
&lt;br /&gt;
The parametric simulation yields the detector response in the SCT EDM format thus allowing to analyze its result in the same manner as the result of the full simulation. The tracker and the calorimeter smear particle parameters according&lt;br /&gt;
to a Gaussian distribution, while the FARICH PID and the muon subsystem use for that purpose the results of a pre-conducted standalone full Geant4 simulations.&lt;br /&gt;
&lt;br /&gt;
'''More information about parameterization''' is presented [[SctParSim (Aurora)|here]].&lt;br /&gt;
&lt;br /&gt;
'''How-to use the parametric simulation''' is demonstrated [https://ctd.inp.nsk.su/wiki/index.php/SCT_parametric_simulation here]&lt;br /&gt;
&lt;br /&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 and parameter description''' is [[SctParSim (python)|here]]&lt;br /&gt;
&lt;br /&gt;
= PAPAS (Old) =&lt;br /&gt;
&lt;br /&gt;
More details are [[SctparSim (PAPAS)|here]]&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation</id>
		<title>Parametric simulation</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation"/>
				<updated>2021-11-24T05:42:13Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: /* SctParSim */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Talks==&lt;br /&gt;
&lt;br /&gt;
* Software meeting 2018-06-29, Friday, [[File:sctau_papas_v2_20180629.pdf]] by '''Georgy Razuvaev'''&lt;br /&gt;
* Software meeting 2019-02-01 [[:Media:Sctau_papas_v3_20190201.pdf | Status of PAPAS]] by '''Georgy Razuvaev'''&lt;br /&gt;
* Software meeting 2019-08-09 [[:Media:Sctparsim_20190809.pdf | Super c-τ parametric simulation: Status]] by '''Georgy Razuvaev'''&lt;br /&gt;
* Software meeting 2019-12-27 [[:Media:SctParSim_status_20191127_Belozyorova.pdf | SctParSim: status and recent progress]] by '''Maria Belozyorova'''&lt;br /&gt;
* Workshop on future Super c-tau factories 2021-11-16 [https://indico.inp.nsk.su/event/62/contributions/2315/ Parametric simulation of the SCT detector] by '''Maria Belozyorova'''&lt;br /&gt;
&lt;br /&gt;
= SctParSim =&lt;br /&gt;
A parametric simulation is a tool to receive a detector response without detailed description of interaction of particles with matter. The simulation is the part of the Aurora project, which is a software suit for SCTF. &lt;br /&gt;
&lt;br /&gt;
Implemented detector subsystems:&lt;br /&gt;
* drift chamber&lt;br /&gt;
* FARICH PID system&lt;br /&gt;
* calorimeter&lt;br /&gt;
* muon system&lt;br /&gt;
&lt;br /&gt;
The parametric simulation yields the detector response in the SCT EDM format thus allowing to analyze its result in the same manner as the result of the full simulation. The tracker and the calorimeter smear particle parameters according&lt;br /&gt;
to a Gaussian distribution, while the FARICH PID and the muon subsystem use for that purpose the results of a pre-conducted standalone full Geant4 simulations.&lt;br /&gt;
&lt;br /&gt;
'''More information about parameterization''' is presented [[SctParSim (Aurora)|here]].&lt;br /&gt;
&lt;br /&gt;
'''How-to use the parametric simulation''' is demonstrated [https://ctd.inp.nsk.su/wiki/index.php/SCT_parametric_simulation here]&lt;br /&gt;
&lt;br /&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. How to run and parameter description is [[SctParSim (python)|here]]&lt;br /&gt;
&lt;br /&gt;
= PAPAS (Old) =&lt;br /&gt;
&lt;br /&gt;
More details are [[SctparSim (PAPAS)|here]]&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation</id>
		<title>Parametric simulation</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation"/>
				<updated>2021-11-24T05:40:02Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: /* SctParSim */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Talks==&lt;br /&gt;
&lt;br /&gt;
* Software meeting 2018-06-29, Friday, [[File:sctau_papas_v2_20180629.pdf]] by '''Georgy Razuvaev'''&lt;br /&gt;
* Software meeting 2019-02-01 [[:Media:Sctau_papas_v3_20190201.pdf | Status of PAPAS]] by '''Georgy Razuvaev'''&lt;br /&gt;
* Software meeting 2019-08-09 [[:Media:Sctparsim_20190809.pdf | Super c-τ parametric simulation: Status]] by '''Georgy Razuvaev'''&lt;br /&gt;
* Software meeting 2019-12-27 [[:Media:SctParSim_status_20191127_Belozyorova.pdf | SctParSim: status and recent progress]] by '''Maria Belozyorova'''&lt;br /&gt;
* Workshop on future Super c-tau factories 2021-11-16 [https://indico.inp.nsk.su/event/62/contributions/2315/ Parametric simulation of the SCT detector] by '''Maria Belozyorova'''&lt;br /&gt;
&lt;br /&gt;
= SctParSim =&lt;br /&gt;
A parametric simulation is a tool to receive a detector response without detailed description of interaction of particles with matter. The simulation is the part of the Aurora project, which is a software suit for SCTF. &lt;br /&gt;
&lt;br /&gt;
Implemented detector subsystems:&lt;br /&gt;
* drift chamber&lt;br /&gt;
* FARICH PID system&lt;br /&gt;
* calorimeter&lt;br /&gt;
* muon system&lt;br /&gt;
&lt;br /&gt;
The parametric simulation yields the detector response in the SCT EDM format thus allowing to analyze its result in the same manner as the result of the full simulation.&lt;br /&gt;
&lt;br /&gt;
'''More information about parameterization''' is presented [[SctParSim (Aurora)|here]].&lt;br /&gt;
&lt;br /&gt;
'''How-to use the parametric simulation''' is demonstrated [https://ctd.inp.nsk.su/wiki/index.php/SCT_parametric_simulation here]&lt;br /&gt;
&lt;br /&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. How to run and parameter description is [[SctParSim (python)|here]]&lt;br /&gt;
&lt;br /&gt;
= PAPAS (Old) =&lt;br /&gt;
&lt;br /&gt;
More details are [[SctparSim (PAPAS)|here]]&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation</id>
		<title>Parametric simulation</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation"/>
				<updated>2021-11-24T05:25:35Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: /* Talks */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Talks==&lt;br /&gt;
&lt;br /&gt;
* Software meeting 2018-06-29, Friday, [[File:sctau_papas_v2_20180629.pdf]] by '''Georgy Razuvaev'''&lt;br /&gt;
* Software meeting 2019-02-01 [[:Media:Sctau_papas_v3_20190201.pdf | Status of PAPAS]] by '''Georgy Razuvaev'''&lt;br /&gt;
* Software meeting 2019-08-09 [[:Media:Sctparsim_20190809.pdf | Super c-τ parametric simulation: Status]] by '''Georgy Razuvaev'''&lt;br /&gt;
* Software meeting 2019-12-27 [[:Media:SctParSim_status_20191127_Belozyorova.pdf | SctParSim: status and recent progress]] by '''Maria Belozyorova'''&lt;br /&gt;
* Workshop on future Super c-tau factories 2021-11-16 [https://indico.inp.nsk.su/event/62/contributions/2315/ Parametric simulation of the SCT detector] by '''Maria Belozyorova'''&lt;br /&gt;
&lt;br /&gt;
= SctParSim =&lt;br /&gt;
A parametric simulation is a tool to receive a detector response without detailed description of interaction of particles with matter. The simulation is the part of the Aurora project, which is a software suit for SCTF. More details are [[SctParSim (Aurora)|here]]&lt;br /&gt;
&lt;br /&gt;
Implemented detector subsystems:&lt;br /&gt;
* drift chamber&lt;br /&gt;
* FARICH PID system&lt;br /&gt;
* calorimeter&lt;br /&gt;
* muon system&lt;br /&gt;
&lt;br /&gt;
The parametric simulation yields the detector response in the SCT EDM format thus allowing to analyze its result in the same manner as the result of the full simulation.&lt;br /&gt;
&lt;br /&gt;
How-to use the parametric simulation is demonstrated [https://ctd.inp.nsk.su/wiki/index.php/SCT_parametric_simulation here]&lt;br /&gt;
&lt;br /&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. How to run and parameter description is [[SctParSim (python)|here]]&lt;br /&gt;
&lt;br /&gt;
= PAPAS (Old) =&lt;br /&gt;
&lt;br /&gt;
More details are [[SctparSim (PAPAS)|here]]&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation</id>
		<title>Parametric simulation</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation"/>
				<updated>2021-11-24T05:25:03Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: /* Talks */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Talks==&lt;br /&gt;
&lt;br /&gt;
* Software meeting 2018-06-29, Friday, [[File:sctau_papas_v2_20180629.pdf]] by '''Georgy Razuvaev'''&lt;br /&gt;
* Software meeting 2019-02-01 [[:Media:Sctau_papas_v3_20190201.pdf | Status of PAPAS]] by '''Georgy Razuvaev'''&lt;br /&gt;
* Software meeting 2019-02-01 [[:Media:SctParSim_status_20191127_Belozyorova.pdf | SctParSim: status and recent progress]] by '''Maria Belozyorova'''&lt;br /&gt;
* Software meeting 2019-08-09 [[:Media:Sctparsim_20190809.pdf | Super c-τ parametric simulation: Status]] by '''Georgy Razuvaev'''&lt;br /&gt;
* Workshop on future Super c-tau factories 2021-11-16 [https://indico.inp.nsk.su/event/62/contributions/2315/ Parametric simulation of the SCT detector] by '''Maria Belozyorova'''&lt;br /&gt;
&lt;br /&gt;
= SctParSim =&lt;br /&gt;
A parametric simulation is a tool to receive a detector response without detailed description of interaction of particles with matter. The simulation is the part of the Aurora project, which is a software suit for SCTF. More details are [[SctParSim (Aurora)|here]]&lt;br /&gt;
&lt;br /&gt;
Implemented detector subsystems:&lt;br /&gt;
* drift chamber&lt;br /&gt;
* FARICH PID system&lt;br /&gt;
* calorimeter&lt;br /&gt;
* muon system&lt;br /&gt;
&lt;br /&gt;
The parametric simulation yields the detector response in the SCT EDM format thus allowing to analyze its result in the same manner as the result of the full simulation.&lt;br /&gt;
&lt;br /&gt;
How-to use the parametric simulation is demonstrated [https://ctd.inp.nsk.su/wiki/index.php/SCT_parametric_simulation here]&lt;br /&gt;
&lt;br /&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. How to run and parameter description is [[SctParSim (python)|here]]&lt;br /&gt;
&lt;br /&gt;
= PAPAS (Old) =&lt;br /&gt;
&lt;br /&gt;
More details are [[SctparSim (PAPAS)|here]]&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/SctParSim_(python)</id>
		<title>SctParSim (python)</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/SctParSim_(python)"/>
				<updated>2021-11-24T05:18:26Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: /* How to run */&lt;/p&gt;
&lt;hr /&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,0.2.3&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>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/SCT_parametric_simulation</id>
		<title>SCT parametric simulation</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/SCT_parametric_simulation"/>
				<updated>2021-11-24T05:16:38Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: /* How to run */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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 SCTauSim,master,latest&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/g4beamline_pi_plus_100k_parse.root .&lt;br /&gt;
cp /home/razuvaev/public/misc/g4beamline_mu_plus_100k_parse.root .&lt;br /&gt;
ctaurun SctParSimAlg/sctparsim_test_particle_gun.py&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Configure example =&lt;br /&gt;
&lt;br /&gt;
There are some examples to run the parametric simulation&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Using tools&lt;br /&gt;
! Link&lt;br /&gt;
|-&lt;br /&gt;
| Read from a ROOT-file, write to a ROOT-file&lt;br /&gt;
| [https://git.inp.nsk.su/sctau/aurora/-/blob/master/Simulation/SctParSimAlg/jobOptions/sctparsim_test_read.py sctparsim_test_read.py]&lt;br /&gt;
|-&lt;br /&gt;
| Generate using the particle gun, write to a ROOT-file&lt;br /&gt;
| [https://git.inp.nsk.su/sctau/aurora/-/blob/master/Simulation/SctParSimAlg/jobOptions/sctparsim_test_particle_gun.py sctparsim_test_particle_gun.py]&lt;br /&gt;
|-&lt;br /&gt;
| Generate using &amp;lt;code&amp;gt;EvtGen&amp;lt;/code&amp;gt;, write to a ROOT-file&lt;br /&gt;
| [https://git.inp.nsk.su/sctau/aurora/-/blob/master/Simulation/SctParSimAlg/jobOptions/sctparsim_test_evtgen.py sctparsim_test_evtgen.py]&lt;br /&gt;
|-&lt;br /&gt;
| Generate using &amp;lt;code&amp;gt;EvtGen&amp;lt;/code&amp;gt;, use the analysis tool&lt;br /&gt;
| [https://git.inp.nsk.su/sctau/aurora/-/blob/master/Simulation/SctParSimAlg/jobOptions/sct_run_test_analisis.py sct_run_test_analisis.py]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Event generation ==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Event generation&amp;quot; block may contain other options: to read a ROOT file, to generate using the particle gun tool and to generate using EvtGen.&lt;br /&gt;
&lt;br /&gt;
=== Podio input ===&lt;br /&gt;
&lt;br /&gt;
It is possible to read the particle parameters from a ROOT file. &lt;br /&gt;
&lt;br /&gt;
You have to import the library &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
from Configurables import PodioInput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and to create the algorithm instance&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
podioevent = ScTauDataSvc(&amp;quot;EventDataSvc&amp;quot;, input=&amp;quot;fileName.root&amp;quot;)&lt;br /&gt;
podioinput = PodioInput(&amp;quot;PodioReader&amp;quot;, OutputLevel=INFO, collections=['allGenParticles'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The reading algorithm has the following parameters:&lt;br /&gt;
* input - an input file name&lt;br /&gt;
* collections - a name of a branch with MC particles&lt;br /&gt;
&lt;br /&gt;
=== Particle gun ===&lt;br /&gt;
&lt;br /&gt;
To use the particle gun algorithm, it is necessary to import the following libraries&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
from Configurables import ParticleGun&lt;br /&gt;
from Configurables import GenAlg&lt;br /&gt;
from Configurables import HepMCToEDMConverter&lt;br /&gt;
from Configurables import HepMCFileWriter&lt;br /&gt;
&lt;br /&gt;
from Configurables import Gaudi__ParticlePropertySvc&lt;br /&gt;
from PathResolver import PathResolver&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and to write the following strings&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
particlePropertySvc = Gaudi__ParticlePropertySvc(&lt;br /&gt;
    &amp;quot;ParticlePropertySvc&amp;quot;,&lt;br /&gt;
    ParticlePropertiesFile=PathResolver.FindDataFile('GenParticleData/ParticleTable.txt')&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
from math import pi&lt;br /&gt;
guntool = ParticleGun(&amp;quot;PdgCodes&amp;quot;, PdgCodes=[211])&lt;br /&gt;
guntool.OutputLevel=DEBUG&lt;br /&gt;
&lt;br /&gt;
guntool.MomentumMin = 0 * units.MeV &lt;br /&gt;
guntool.MomentumMax = 4 * units.GeV&lt;br /&gt;
&lt;br /&gt;
guntool.ThetaMin = 0 * units.rad &lt;br /&gt;
guntool.ThetaMax = pi * units.rad &lt;br /&gt;
&lt;br /&gt;
guntool.PhiMin = 0 * units.rad&lt;br /&gt;
guntool.PhiMax = 2 * pi * units.rad &lt;br /&gt;
&lt;br /&gt;
gun = GenAlg(&amp;quot;ParticleGun&amp;quot;, SignalProvider=guntool)&lt;br /&gt;
gun.hepmc.Path = &amp;quot;hepmc&amp;quot;&lt;br /&gt;
&lt;br /&gt;
writer = HepMCFileWriter(&amp;quot;HepMCFileWriter&amp;quot;)&lt;br /&gt;
writer.hepmc.Path=&amp;quot;hepmc&amp;quot;&lt;br /&gt;
&lt;br /&gt;
hepmc_converter = HepMCToEDMConverter(&amp;quot;Converter&amp;quot;)&lt;br /&gt;
hepmc_converter.hepmc.Path=&amp;quot;hepmc&amp;quot;&lt;br /&gt;
hepmc_converter.genparticles.Path=&amp;quot;allGenParticles&amp;quot;&lt;br /&gt;
hepmc_converter.genvertices.Path=&amp;quot;allGenVertices&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some parameters can be changed:&lt;br /&gt;
* PdgCodes - a list containing particles PDG codes to generate&lt;br /&gt;
* MomentumMin - a minimum particle momentum&lt;br /&gt;
* MomentumMax - a maximum particle momentum&lt;br /&gt;
* ThetaMin - a minimum theta angle&lt;br /&gt;
* ThetaMax - a maximum theta angle&lt;br /&gt;
* PhiMin - a minimum phi angle&lt;br /&gt;
* PhiMax - a maximum phi angle&lt;br /&gt;
&lt;br /&gt;
=== EvtGen ===&lt;br /&gt;
&lt;br /&gt;
More information about EvtGen is [https://ctd.inp.nsk.su/wiki/index.php/Event_generators here].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;EvtGen&amp;lt;/code&amp;gt; interface has the following parameters:&lt;br /&gt;
* &amp;lt;code&amp;gt;dec&amp;lt;/code&amp;gt; - EvtGen users decay file. It can be one of the included in Aurora files or absolute path to your own decay file. Inclusive MC generation does not require user decay file&lt;br /&gt;
* &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt; - root particle for EvtGen. &amp;lt;code&amp;gt;vpho&amp;lt;/code&amp;gt; (virtual photon) should be used for non-resonant processes&lt;br /&gt;
** Acceptable root particles: &amp;lt;code&amp;gt;vpho&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;J/psi&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;psi(2S)&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;psi(3770)&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;psi(4040)&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;psi(4160)&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;psi(4415)&amp;lt;/code&amp;gt;. For more details see Generation/GenTools/GenWrappers/python/EvtGenTools.py in Aurora.&lt;br /&gt;
* &amp;lt;code&amp;gt;ecms&amp;lt;/code&amp;gt; - center-of-mass energy (mass of the root particle). The parameter &amp;lt;code&amp;gt;ecms&amp;lt;/code&amp;gt; must be set for virtual photon while for other root particles (&amp;lt;math&amp;gt;J/\psi&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\psi(2S)&amp;lt;/math&amp;gt;, ...) this parameter is optional. Mean mass of the root particle is adopted if &amp;lt;code&amp;gt;ecms&amp;lt;/code&amp;gt; is omitted.&lt;br /&gt;
* &amp;lt;code&amp;gt;nevt&amp;lt;/code&amp;gt; - number if events to be gnerated&lt;br /&gt;
* &amp;lt;code&amp;gt;ip&amp;lt;/code&amp;gt; - uniform 3D smearing (in mm) for the primary vertex&lt;br /&gt;
* &amp;lt;code&amp;gt;ofile&amp;lt;/code&amp;gt; - output file name&lt;br /&gt;
One can change these parameters to change behaviour of EvtGen and to produce arbitrary MC sample.&lt;br /&gt;
&lt;br /&gt;
== SctParSim ==&lt;br /&gt;
&lt;br /&gt;
To run the parametric simulation, the script has to have two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
from Configurables import SctParSimAlg&lt;br /&gt;
sct_alg = SctParSimAlg('SctAlg')&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To change some detector parameters, write strings of the following structure&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sct_alg.detectorSubsystemName.parameter = mean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The full parameters list is [https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation here].&lt;br /&gt;
&lt;br /&gt;
== Analysis ==&lt;br /&gt;
&lt;br /&gt;
The analysis tool has the following parameters:&lt;br /&gt;
* EventLoader&lt;br /&gt;
** pcl.Path - a branch (in the input ROOT-file) for reading&lt;br /&gt;
** plists - a partilce list for further analisis. if it is necessary to consider not only positive, but also negative particles, the label &amp;quot;сс&amp;quot; is used. For example &amp;lt;code&amp;gt;[['K+ cc'], ['pi+ cc']]&amp;lt;/code&amp;gt;. Also it is possible to write a kinematic constraint; for example &amp;lt;code&amp;gt;[['K+ cc', 'p &amp;gt; 0.5'], ['pi+ cc']]&amp;lt;/code&amp;gt;  (kaons don't have the momentum less then 0.5 GeV)&lt;br /&gt;
&lt;br /&gt;
* ParticleCombinerAlg&lt;br /&gt;
** decStr - an investigated decay&lt;br /&gt;
** cutStr - a selection criteria&lt;br /&gt;
** selfConj - if neutral particle &amp;lt;code&amp;gt;True&amp;lt;/code&amp;gt;, else &amp;lt;code&amp;gt;False&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* NtupleAlg&lt;br /&gt;
** vars - a list contains the particle parameters to write an output file. A particle in the decay string can be selected using the &amp;quot;^&amp;quot; symbol. If a decay isn't written (&amp;lt;code&amp;gt;''&amp;lt;/code&amp;gt;), the information about parameters will be about a parent particle.&lt;br /&gt;
&lt;br /&gt;
More information about the analysis tool is [https://ctd.inp.nsk.su/wiki/index.php/Use_Analysis_package here].&lt;br /&gt;
&lt;br /&gt;
== Podio output ==&lt;br /&gt;
&lt;br /&gt;
It is possible to write the particle parameters to a ROOT file.&lt;br /&gt;
&lt;br /&gt;
You have to import the library &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
from Configurables import PodioOutput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and to create the algorithm instance&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out = PodioOutput('out', filename=ofile)&lt;br /&gt;
out.outputCommands = [&amp;quot;keep *&amp;quot;]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The reading algorithm has the parameter: filename - an output file name.&lt;br /&gt;
&lt;br /&gt;
== Running algorithm ==&lt;br /&gt;
&lt;br /&gt;
Some necessary parametrs to run the algorithms:&lt;br /&gt;
* TopAlg - a list of the using algorithms&lt;br /&gt;
* EvtMax - a number of events&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation</id>
		<title>Parametric simulation</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation"/>
				<updated>2021-11-23T14:51:17Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: /* PAPAS (Old) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Talks==&lt;br /&gt;
&lt;br /&gt;
* Software meeting 2018-06-29, Friday, [[File:sctau_papas_v2_20180629.pdf]]&lt;br /&gt;
* Workshop on future Super c-tau factories 2021-11-16 [https://indico.inp.nsk.su/event/62/contributions/2315/ Parametric simulation of the SCT detector]&lt;br /&gt;
&lt;br /&gt;
= SctParSim =&lt;br /&gt;
A parametric simulation is a tool to receive a detector response without detailed description of interaction of particles with matter. The simulation is the part of the Aurora project, which is a software suit for SCTF. More details are [[SctParSim (Aurora)|here]]&lt;br /&gt;
&lt;br /&gt;
Implemented detector subsystems:&lt;br /&gt;
* drift chamber&lt;br /&gt;
* FARICH PID system&lt;br /&gt;
* calorimeter&lt;br /&gt;
* muon system&lt;br /&gt;
&lt;br /&gt;
The parametric simulation yields the detector response in the SCT EDM format thus allowing to analyze its result in the same manner as the result of the full simulation.&lt;br /&gt;
&lt;br /&gt;
How-to use the parametric simulation is demonstrated [https://ctd.inp.nsk.su/wiki/index.php/SCT_parametric_simulation here]&lt;br /&gt;
&lt;br /&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. How to run and parameter description is [[SctParSim (python)|here]]&lt;br /&gt;
&lt;br /&gt;
= PAPAS (Old) =&lt;br /&gt;
&lt;br /&gt;
More details are [[SctparSim (PAPAS)|here]]&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/SctparSim_(PAPAS)</id>
		<title>SctparSim (PAPAS)</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/SctparSim_(PAPAS)"/>
				<updated>2021-11-23T14:51:12Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: Created page with &amp;quot;== About papas, heppy et cetra ==  Particle propagation is done by geometry calculation. To valid the calculation several different cases were plotted.  [[File:Tof_test_9k.png...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== About papas, heppy et cetra ==&lt;br /&gt;
&lt;br /&gt;
Particle propagation is done by geometry calculation.&lt;br /&gt;
To valid the calculation several different cases were plotted.&lt;br /&gt;
&lt;br /&gt;
[[File:Tof_test_9k.png|thumb|center|alt=Helix.|Helix.]]&lt;br /&gt;
&lt;br /&gt;
== Configure detector parameters ==&lt;br /&gt;
&lt;br /&gt;
The detector parameters can be changed via a configuration file ''CTauPapas.cfg'' placed in the main papas 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(s) should be separated by spaces.&lt;br /&gt;
Empty lines and lines beginning with # are ignored.&lt;br /&gt;
&lt;br /&gt;
In the example below the parameter at the first line is one number,&lt;br /&gt;
while the parameter at the second line is an array.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ecal_emin_barrel 0.05&lt;br /&gt;
&lt;br /&gt;
ecal_eres 1.34e-2 0.066e-2 0 0.82e-2&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The parameters can be given in any order.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configure detector parameters ==&lt;br /&gt;
&lt;br /&gt;
The file ''ctau_input_sim.txt'' contains two lines.&lt;br /&gt;
The first line is the path to a primary simulation file (see [[MC_Data_Sets|MC Data Sets]] page).&lt;br /&gt;
The second line is an integer number of events to be processed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== How to run papas ==&lt;br /&gt;
&lt;br /&gt;
Copy a directory with papas on stark the machine and go to this directory.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd&lt;br /&gt;
&lt;br /&gt;
cp -rf ~razuvaev/myheppy .&lt;br /&gt;
&lt;br /&gt;
cd myheppy&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There are a directory ''output'' for output files,&lt;br /&gt;
detector configuration file ''CTauPapas.cfg'',&lt;br /&gt;
file ''ctau_input_sim.txt'' with a path to the file with primary generator events,&lt;br /&gt;
and the folder ''heppy'' with heppy code itself.&lt;br /&gt;
Let's go into it and tune environment.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd heppy&lt;br /&gt;
&lt;br /&gt;
source init.sh&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now it is time to run papas.&lt;br /&gt;
You may be asked a question because the output directory is not empty.&lt;br /&gt;
So just input &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt; or clean the folder.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd test&lt;br /&gt;
&lt;br /&gt;
./heppy_loop.py ../../output/ ctau_cfg1.py&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If it don't want to run try &amp;lt;code&amp;gt;source ~razuvaev/.bashrc&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;source ../init.sh&amp;lt;/code&amp;gt; because it can be caused by the problem with environment variables.&lt;br /&gt;
&lt;br /&gt;
When papas simulation has been done one need to present papas output to a suitable form and also add initial generator information.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd ../../&lt;br /&gt;
&lt;br /&gt;
./txt2tree.py&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The output root tree is available in the file ''myheppy/output/txt2tree.root''.&lt;br /&gt;
&lt;br /&gt;
== Output tree ==&lt;br /&gt;
&lt;br /&gt;
The output tree contains branches which can be divided in several groups:&lt;br /&gt;
* reconstructed particle parameters;&lt;br /&gt;
* generated particle parameters;&lt;br /&gt;
* generated vertices;&lt;br /&gt;
* connection between reconstructed particles, generated particles and generated vertices.&lt;br /&gt;
&lt;br /&gt;
The table below presents branches and description of their content.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name&lt;br /&gt;
! Type&lt;br /&gt;
! Length&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Reconstructed particles&lt;br /&gt;
|-&lt;br /&gt;
| n&lt;br /&gt;
| int&lt;br /&gt;
| 1&lt;br /&gt;
| The number of reconstructed particles.&lt;br /&gt;
|-&lt;br /&gt;
| px&lt;br /&gt;
| float []&lt;br /&gt;
| n&lt;br /&gt;
| The reconstructed particle momentum: x coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| py&lt;br /&gt;
| float []&lt;br /&gt;
| n&lt;br /&gt;
| The reconstructed particle momentum: y coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| pz&lt;br /&gt;
| float []&lt;br /&gt;
| n&lt;br /&gt;
| The reconstructed particle momentum: z coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Generated particles&lt;br /&gt;
|-&lt;br /&gt;
| n0&lt;br /&gt;
| int&lt;br /&gt;
| 1&lt;br /&gt;
| The number of generated particles.&lt;br /&gt;
|-&lt;br /&gt;
| px0&lt;br /&gt;
| float []&lt;br /&gt;
| n0&lt;br /&gt;
| The generated particle momentum: x coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| py0&lt;br /&gt;
| float []&lt;br /&gt;
| n0&lt;br /&gt;
| The generated particle momentum: y coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| pz0&lt;br /&gt;
| float []&lt;br /&gt;
| n0&lt;br /&gt;
| The generated particle momentum: z coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Generated vertices&lt;br /&gt;
|-&lt;br /&gt;
| nv0&lt;br /&gt;
| int&lt;br /&gt;
| 1&lt;br /&gt;
| The number of generated vertices.&lt;br /&gt;
|-&lt;br /&gt;
| vx0&lt;br /&gt;
| float []&lt;br /&gt;
| nv0&lt;br /&gt;
| The generated vertex: x coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| vy0&lt;br /&gt;
| float []&lt;br /&gt;
| nv0&lt;br /&gt;
| The generated vertex: y coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| vz0&lt;br /&gt;
| float []&lt;br /&gt;
| nv0&lt;br /&gt;
| The generated vertex: z coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Links&lt;br /&gt;
|-&lt;br /&gt;
| recgen&lt;br /&gt;
| int []&lt;br /&gt;
| n&lt;br /&gt;
| Transform a reconstructed particle index to the generated particle index.&lt;br /&gt;
|-&lt;br /&gt;
| genver&lt;br /&gt;
| int []&lt;br /&gt;
| n0&lt;br /&gt;
| Transform a generated particle index to the generated vertex index.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Analysis example ==&lt;br /&gt;
&lt;br /&gt;
Here a short analysis example of&lt;br /&gt;
&amp;lt;math&amp;gt;D^0 \to K_S^0 \pi^+ \pi^-&amp;lt;/math&amp;gt;&lt;br /&gt;
is presented.&lt;br /&gt;
The things are performed with PyROOT.&lt;br /&gt;
&lt;br /&gt;
The data a taken from the available&lt;br /&gt;
[[MC_Data_Sets#Exclusive_samples|exclusive sample]].&lt;br /&gt;
&lt;br /&gt;
The code can be taken from github&lt;br /&gt;
[https://github.com/lbrl/sctau_py/blob/master/search_dkspipi.py]&lt;br /&gt;
or find at the stark cluster: &lt;br /&gt;
''/home/razuvaev/myheppy/search_dkspipi.py''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Dkspipi_mksmd0.png|alt=mksmd0.|&amp;lt;math&amp;gt;K_S^0&amp;lt;/math&amp;gt; mass vs &amp;lt;math&amp;gt;D^0&amp;lt;/math&amp;gt; mass.&lt;br /&gt;
File:Dkspipi_md0pd0.png|alt=md0pd0.|&amp;lt;math&amp;gt;D^0&amp;lt;/math&amp;gt; mass vs its momentum.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation</id>
		<title>Parametric simulation</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation"/>
				<updated>2021-11-23T14:50:54Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: /* PAPAS (Old) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Talks==&lt;br /&gt;
&lt;br /&gt;
* Software meeting 2018-06-29, Friday, [[File:sctau_papas_v2_20180629.pdf]]&lt;br /&gt;
* Workshop on future Super c-tau factories 2021-11-16 [https://indico.inp.nsk.su/event/62/contributions/2315/ Parametric simulation of the SCT detector]&lt;br /&gt;
&lt;br /&gt;
= SctParSim =&lt;br /&gt;
A parametric simulation is a tool to receive a detector response without detailed description of interaction of particles with matter. The simulation is the part of the Aurora project, which is a software suit for SCTF. More details are [[SctParSim (Aurora)|here]]&lt;br /&gt;
&lt;br /&gt;
Implemented detector subsystems:&lt;br /&gt;
* drift chamber&lt;br /&gt;
* FARICH PID system&lt;br /&gt;
* calorimeter&lt;br /&gt;
* muon system&lt;br /&gt;
&lt;br /&gt;
The parametric simulation yields the detector response in the SCT EDM format thus allowing to analyze its result in the same manner as the result of the full simulation.&lt;br /&gt;
&lt;br /&gt;
How-to use the parametric simulation is demonstrated [https://ctd.inp.nsk.su/wiki/index.php/SCT_parametric_simulation here]&lt;br /&gt;
&lt;br /&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. How to run and parameter description is [[SctParSim (python)|here]]&lt;br /&gt;
&lt;br /&gt;
= PAPAS (Old) =&lt;br /&gt;
&lt;br /&gt;
More details are [[SctparSim (PAPAS)|here]]&lt;br /&gt;
&lt;br /&gt;
== About papas, heppy et cetra ==&lt;br /&gt;
&lt;br /&gt;
Particle propagation is done by geometry calculation.&lt;br /&gt;
To valid the calculation several different cases were plotted.&lt;br /&gt;
&lt;br /&gt;
[[File:Tof_test_9k.png|thumb|center|alt=Helix.|Helix.]]&lt;br /&gt;
&lt;br /&gt;
== Configure detector parameters ==&lt;br /&gt;
&lt;br /&gt;
The detector parameters can be changed via a configuration file ''CTauPapas.cfg'' placed in the main papas 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(s) should be separated by spaces.&lt;br /&gt;
Empty lines and lines beginning with # are ignored.&lt;br /&gt;
&lt;br /&gt;
In the example below the parameter at the first line is one number,&lt;br /&gt;
while the parameter at the second line is an array.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ecal_emin_barrel 0.05&lt;br /&gt;
&lt;br /&gt;
ecal_eres 1.34e-2 0.066e-2 0 0.82e-2&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The parameters can be given in any order.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configure detector parameters ==&lt;br /&gt;
&lt;br /&gt;
The file ''ctau_input_sim.txt'' contains two lines.&lt;br /&gt;
The first line is the path to a primary simulation file (see [[MC_Data_Sets|MC Data Sets]] page).&lt;br /&gt;
The second line is an integer number of events to be processed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== How to run papas ==&lt;br /&gt;
&lt;br /&gt;
Copy a directory with papas on stark the machine and go to this directory.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd&lt;br /&gt;
&lt;br /&gt;
cp -rf ~razuvaev/myheppy .&lt;br /&gt;
&lt;br /&gt;
cd myheppy&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There are a directory ''output'' for output files,&lt;br /&gt;
detector configuration file ''CTauPapas.cfg'',&lt;br /&gt;
file ''ctau_input_sim.txt'' with a path to the file with primary generator events,&lt;br /&gt;
and the folder ''heppy'' with heppy code itself.&lt;br /&gt;
Let's go into it and tune environment.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd heppy&lt;br /&gt;
&lt;br /&gt;
source init.sh&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now it is time to run papas.&lt;br /&gt;
You may be asked a question because the output directory is not empty.&lt;br /&gt;
So just input &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt; or clean the folder.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd test&lt;br /&gt;
&lt;br /&gt;
./heppy_loop.py ../../output/ ctau_cfg1.py&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If it don't want to run try &amp;lt;code&amp;gt;source ~razuvaev/.bashrc&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;source ../init.sh&amp;lt;/code&amp;gt; because it can be caused by the problem with environment variables.&lt;br /&gt;
&lt;br /&gt;
When papas simulation has been done one need to present papas output to a suitable form and also add initial generator information.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd ../../&lt;br /&gt;
&lt;br /&gt;
./txt2tree.py&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The output root tree is available in the file ''myheppy/output/txt2tree.root''.&lt;br /&gt;
&lt;br /&gt;
== Output tree ==&lt;br /&gt;
&lt;br /&gt;
The output tree contains branches which can be divided in several groups:&lt;br /&gt;
* reconstructed particle parameters;&lt;br /&gt;
* generated particle parameters;&lt;br /&gt;
* generated vertices;&lt;br /&gt;
* connection between reconstructed particles, generated particles and generated vertices.&lt;br /&gt;
&lt;br /&gt;
The table below presents branches and description of their content.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name&lt;br /&gt;
! Type&lt;br /&gt;
! Length&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Reconstructed particles&lt;br /&gt;
|-&lt;br /&gt;
| n&lt;br /&gt;
| int&lt;br /&gt;
| 1&lt;br /&gt;
| The number of reconstructed particles.&lt;br /&gt;
|-&lt;br /&gt;
| px&lt;br /&gt;
| float []&lt;br /&gt;
| n&lt;br /&gt;
| The reconstructed particle momentum: x coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| py&lt;br /&gt;
| float []&lt;br /&gt;
| n&lt;br /&gt;
| The reconstructed particle momentum: y coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| pz&lt;br /&gt;
| float []&lt;br /&gt;
| n&lt;br /&gt;
| The reconstructed particle momentum: z coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Generated particles&lt;br /&gt;
|-&lt;br /&gt;
| n0&lt;br /&gt;
| int&lt;br /&gt;
| 1&lt;br /&gt;
| The number of generated particles.&lt;br /&gt;
|-&lt;br /&gt;
| px0&lt;br /&gt;
| float []&lt;br /&gt;
| n0&lt;br /&gt;
| The generated particle momentum: x coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| py0&lt;br /&gt;
| float []&lt;br /&gt;
| n0&lt;br /&gt;
| The generated particle momentum: y coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| pz0&lt;br /&gt;
| float []&lt;br /&gt;
| n0&lt;br /&gt;
| The generated particle momentum: z coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Generated vertices&lt;br /&gt;
|-&lt;br /&gt;
| nv0&lt;br /&gt;
| int&lt;br /&gt;
| 1&lt;br /&gt;
| The number of generated vertices.&lt;br /&gt;
|-&lt;br /&gt;
| vx0&lt;br /&gt;
| float []&lt;br /&gt;
| nv0&lt;br /&gt;
| The generated vertex: x coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| vy0&lt;br /&gt;
| float []&lt;br /&gt;
| nv0&lt;br /&gt;
| The generated vertex: y coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| vz0&lt;br /&gt;
| float []&lt;br /&gt;
| nv0&lt;br /&gt;
| The generated vertex: z coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Links&lt;br /&gt;
|-&lt;br /&gt;
| recgen&lt;br /&gt;
| int []&lt;br /&gt;
| n&lt;br /&gt;
| Transform a reconstructed particle index to the generated particle index.&lt;br /&gt;
|-&lt;br /&gt;
| genver&lt;br /&gt;
| int []&lt;br /&gt;
| n0&lt;br /&gt;
| Transform a generated particle index to the generated vertex index.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Analysis example ==&lt;br /&gt;
&lt;br /&gt;
Here a short analysis example of&lt;br /&gt;
&amp;lt;math&amp;gt;D^0 \to K_S^0 \pi^+ \pi^-&amp;lt;/math&amp;gt;&lt;br /&gt;
is presented.&lt;br /&gt;
The things are performed with PyROOT.&lt;br /&gt;
&lt;br /&gt;
The data a taken from the available&lt;br /&gt;
[[MC_Data_Sets#Exclusive_samples|exclusive sample]].&lt;br /&gt;
&lt;br /&gt;
The code can be taken from github&lt;br /&gt;
[https://github.com/lbrl/sctau_py/blob/master/search_dkspipi.py]&lt;br /&gt;
or find at the stark cluster: &lt;br /&gt;
''/home/razuvaev/myheppy/search_dkspipi.py''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Dkspipi_mksmd0.png|alt=mksmd0.|&amp;lt;math&amp;gt;K_S^0&amp;lt;/math&amp;gt; mass vs &amp;lt;math&amp;gt;D^0&amp;lt;/math&amp;gt; mass.&lt;br /&gt;
File:Dkspipi_md0pd0.png|alt=md0pd0.|&amp;lt;math&amp;gt;D^0&amp;lt;/math&amp;gt; mass vs its momentum.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation</id>
		<title>Parametric simulation</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation"/>
				<updated>2021-11-23T14:48:57Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: /* SctParSim (Python) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Talks==&lt;br /&gt;
&lt;br /&gt;
* Software meeting 2018-06-29, Friday, [[File:sctau_papas_v2_20180629.pdf]]&lt;br /&gt;
* Workshop on future Super c-tau factories 2021-11-16 [https://indico.inp.nsk.su/event/62/contributions/2315/ Parametric simulation of the SCT detector]&lt;br /&gt;
&lt;br /&gt;
= SctParSim =&lt;br /&gt;
A parametric simulation is a tool to receive a detector response without detailed description of interaction of particles with matter. The simulation is the part of the Aurora project, which is a software suit for SCTF. More details are [[SctParSim (Aurora)|here]]&lt;br /&gt;
&lt;br /&gt;
Implemented detector subsystems:&lt;br /&gt;
* drift chamber&lt;br /&gt;
* FARICH PID system&lt;br /&gt;
* calorimeter&lt;br /&gt;
* muon system&lt;br /&gt;
&lt;br /&gt;
The parametric simulation yields the detector response in the SCT EDM format thus allowing to analyze its result in the same manner as the result of the full simulation.&lt;br /&gt;
&lt;br /&gt;
How-to use the parametric simulation is demonstrated [https://ctd.inp.nsk.su/wiki/index.php/SCT_parametric_simulation here]&lt;br /&gt;
&lt;br /&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. How to run and parameter description is [[SctParSim (python)|here]]&lt;br /&gt;
&lt;br /&gt;
= PAPAS (Old) =&lt;br /&gt;
&lt;br /&gt;
== About papas, heppy et cetra ==&lt;br /&gt;
&lt;br /&gt;
Particle propagation is done by geometry calculation.&lt;br /&gt;
To valid the calculation several different cases were plotted.&lt;br /&gt;
&lt;br /&gt;
[[File:Tof_test_9k.png|thumb|center|alt=Helix.|Helix.]]&lt;br /&gt;
&lt;br /&gt;
== Configure detector parameters ==&lt;br /&gt;
&lt;br /&gt;
The detector parameters can be changed via a configuration file ''CTauPapas.cfg'' placed in the main papas 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(s) should be separated by spaces.&lt;br /&gt;
Empty lines and lines beginning with # are ignored.&lt;br /&gt;
&lt;br /&gt;
In the example below the parameter at the first line is one number,&lt;br /&gt;
while the parameter at the second line is an array.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ecal_emin_barrel 0.05&lt;br /&gt;
&lt;br /&gt;
ecal_eres 1.34e-2 0.066e-2 0 0.82e-2&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The parameters can be given in any order.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configure detector parameters ==&lt;br /&gt;
&lt;br /&gt;
The file ''ctau_input_sim.txt'' contains two lines.&lt;br /&gt;
The first line is the path to a primary simulation file (see [[MC_Data_Sets|MC Data Sets]] page).&lt;br /&gt;
The second line is an integer number of events to be processed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== How to run papas ==&lt;br /&gt;
&lt;br /&gt;
Copy a directory with papas on stark the machine and go to this directory.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd&lt;br /&gt;
&lt;br /&gt;
cp -rf ~razuvaev/myheppy .&lt;br /&gt;
&lt;br /&gt;
cd myheppy&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There are a directory ''output'' for output files,&lt;br /&gt;
detector configuration file ''CTauPapas.cfg'',&lt;br /&gt;
file ''ctau_input_sim.txt'' with a path to the file with primary generator events,&lt;br /&gt;
and the folder ''heppy'' with heppy code itself.&lt;br /&gt;
Let's go into it and tune environment.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd heppy&lt;br /&gt;
&lt;br /&gt;
source init.sh&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now it is time to run papas.&lt;br /&gt;
You may be asked a question because the output directory is not empty.&lt;br /&gt;
So just input &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt; or clean the folder.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd test&lt;br /&gt;
&lt;br /&gt;
./heppy_loop.py ../../output/ ctau_cfg1.py&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If it don't want to run try &amp;lt;code&amp;gt;source ~razuvaev/.bashrc&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;source ../init.sh&amp;lt;/code&amp;gt; because it can be caused by the problem with environment variables.&lt;br /&gt;
&lt;br /&gt;
When papas simulation has been done one need to present papas output to a suitable form and also add initial generator information.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd ../../&lt;br /&gt;
&lt;br /&gt;
./txt2tree.py&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The output root tree is available in the file ''myheppy/output/txt2tree.root''.&lt;br /&gt;
&lt;br /&gt;
== Output tree ==&lt;br /&gt;
&lt;br /&gt;
The output tree contains branches which can be divided in several groups:&lt;br /&gt;
* reconstructed particle parameters;&lt;br /&gt;
* generated particle parameters;&lt;br /&gt;
* generated vertices;&lt;br /&gt;
* connection between reconstructed particles, generated particles and generated vertices.&lt;br /&gt;
&lt;br /&gt;
The table below presents branches and description of their content.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name&lt;br /&gt;
! Type&lt;br /&gt;
! Length&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Reconstructed particles&lt;br /&gt;
|-&lt;br /&gt;
| n&lt;br /&gt;
| int&lt;br /&gt;
| 1&lt;br /&gt;
| The number of reconstructed particles.&lt;br /&gt;
|-&lt;br /&gt;
| px&lt;br /&gt;
| float []&lt;br /&gt;
| n&lt;br /&gt;
| The reconstructed particle momentum: x coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| py&lt;br /&gt;
| float []&lt;br /&gt;
| n&lt;br /&gt;
| The reconstructed particle momentum: y coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| pz&lt;br /&gt;
| float []&lt;br /&gt;
| n&lt;br /&gt;
| The reconstructed particle momentum: z coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Generated particles&lt;br /&gt;
|-&lt;br /&gt;
| n0&lt;br /&gt;
| int&lt;br /&gt;
| 1&lt;br /&gt;
| The number of generated particles.&lt;br /&gt;
|-&lt;br /&gt;
| px0&lt;br /&gt;
| float []&lt;br /&gt;
| n0&lt;br /&gt;
| The generated particle momentum: x coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| py0&lt;br /&gt;
| float []&lt;br /&gt;
| n0&lt;br /&gt;
| The generated particle momentum: y coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| pz0&lt;br /&gt;
| float []&lt;br /&gt;
| n0&lt;br /&gt;
| The generated particle momentum: z coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Generated vertices&lt;br /&gt;
|-&lt;br /&gt;
| nv0&lt;br /&gt;
| int&lt;br /&gt;
| 1&lt;br /&gt;
| The number of generated vertices.&lt;br /&gt;
|-&lt;br /&gt;
| vx0&lt;br /&gt;
| float []&lt;br /&gt;
| nv0&lt;br /&gt;
| The generated vertex: x coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| vy0&lt;br /&gt;
| float []&lt;br /&gt;
| nv0&lt;br /&gt;
| The generated vertex: y coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| vz0&lt;br /&gt;
| float []&lt;br /&gt;
| nv0&lt;br /&gt;
| The generated vertex: z coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Links&lt;br /&gt;
|-&lt;br /&gt;
| recgen&lt;br /&gt;
| int []&lt;br /&gt;
| n&lt;br /&gt;
| Transform a reconstructed particle index to the generated particle index.&lt;br /&gt;
|-&lt;br /&gt;
| genver&lt;br /&gt;
| int []&lt;br /&gt;
| n0&lt;br /&gt;
| Transform a generated particle index to the generated vertex index.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Analysis example ==&lt;br /&gt;
&lt;br /&gt;
Here a short analysis example of&lt;br /&gt;
&amp;lt;math&amp;gt;D^0 \to K_S^0 \pi^+ \pi^-&amp;lt;/math&amp;gt;&lt;br /&gt;
is presented.&lt;br /&gt;
The things are performed with PyROOT.&lt;br /&gt;
&lt;br /&gt;
The data a taken from the available&lt;br /&gt;
[[MC_Data_Sets#Exclusive_samples|exclusive sample]].&lt;br /&gt;
&lt;br /&gt;
The code can be taken from github&lt;br /&gt;
[https://github.com/lbrl/sctau_py/blob/master/search_dkspipi.py]&lt;br /&gt;
or find at the stark cluster: &lt;br /&gt;
''/home/razuvaev/myheppy/search_dkspipi.py''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Dkspipi_mksmd0.png|alt=mksmd0.|&amp;lt;math&amp;gt;K_S^0&amp;lt;/math&amp;gt; mass vs &amp;lt;math&amp;gt;D^0&amp;lt;/math&amp;gt; mass.&lt;br /&gt;
File:Dkspipi_md0pd0.png|alt=md0pd0.|&amp;lt;math&amp;gt;D^0&amp;lt;/math&amp;gt; mass vs its momentum.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/SctParSim_(python)</id>
		<title>SctParSim (python)</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/SctParSim_(python)"/>
				<updated>2021-11-23T14:48:44Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: 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;hr /&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>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation</id>
		<title>Parametric simulation</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation"/>
				<updated>2021-11-23T14:46:29Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: /* SctParSim */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Talks==&lt;br /&gt;
&lt;br /&gt;
* Software meeting 2018-06-29, Friday, [[File:sctau_papas_v2_20180629.pdf]]&lt;br /&gt;
* Workshop on future Super c-tau factories 2021-11-16 [https://indico.inp.nsk.su/event/62/contributions/2315/ Parametric simulation of the SCT detector]&lt;br /&gt;
&lt;br /&gt;
= SctParSim =&lt;br /&gt;
A parametric simulation is a tool to receive a detector response without detailed description of interaction of particles with matter. The simulation is the part of the Aurora project, which is a software suit for SCTF. More details are [[SctParSim (Aurora)|here]]&lt;br /&gt;
&lt;br /&gt;
Implemented detector subsystems:&lt;br /&gt;
* drift chamber&lt;br /&gt;
* FARICH PID system&lt;br /&gt;
* calorimeter&lt;br /&gt;
* muon system&lt;br /&gt;
&lt;br /&gt;
The parametric simulation yields the detector response in the SCT EDM format thus allowing to analyze its result in the same manner as the result of the full simulation.&lt;br /&gt;
&lt;br /&gt;
How-to use the parametric simulation is demonstrated [https://ctd.inp.nsk.su/wiki/index.php/SCT_parametric_simulation here]&lt;br /&gt;
&lt;br /&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. How to run and parameter description is [[SctParSim (python)|here]]&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 SCTauSim,master,latest&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;br /&gt;
&lt;br /&gt;
= PAPAS (Old) =&lt;br /&gt;
&lt;br /&gt;
== About papas, heppy et cetra ==&lt;br /&gt;
&lt;br /&gt;
Particle propagation is done by geometry calculation.&lt;br /&gt;
To valid the calculation several different cases were plotted.&lt;br /&gt;
&lt;br /&gt;
[[File:Tof_test_9k.png|thumb|center|alt=Helix.|Helix.]]&lt;br /&gt;
&lt;br /&gt;
== Configure detector parameters ==&lt;br /&gt;
&lt;br /&gt;
The detector parameters can be changed via a configuration file ''CTauPapas.cfg'' placed in the main papas 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(s) should be separated by spaces.&lt;br /&gt;
Empty lines and lines beginning with # are ignored.&lt;br /&gt;
&lt;br /&gt;
In the example below the parameter at the first line is one number,&lt;br /&gt;
while the parameter at the second line is an array.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ecal_emin_barrel 0.05&lt;br /&gt;
&lt;br /&gt;
ecal_eres 1.34e-2 0.066e-2 0 0.82e-2&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The parameters can be given in any order.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configure detector parameters ==&lt;br /&gt;
&lt;br /&gt;
The file ''ctau_input_sim.txt'' contains two lines.&lt;br /&gt;
The first line is the path to a primary simulation file (see [[MC_Data_Sets|MC Data Sets]] page).&lt;br /&gt;
The second line is an integer number of events to be processed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== How to run papas ==&lt;br /&gt;
&lt;br /&gt;
Copy a directory with papas on stark the machine and go to this directory.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd&lt;br /&gt;
&lt;br /&gt;
cp -rf ~razuvaev/myheppy .&lt;br /&gt;
&lt;br /&gt;
cd myheppy&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There are a directory ''output'' for output files,&lt;br /&gt;
detector configuration file ''CTauPapas.cfg'',&lt;br /&gt;
file ''ctau_input_sim.txt'' with a path to the file with primary generator events,&lt;br /&gt;
and the folder ''heppy'' with heppy code itself.&lt;br /&gt;
Let's go into it and tune environment.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd heppy&lt;br /&gt;
&lt;br /&gt;
source init.sh&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now it is time to run papas.&lt;br /&gt;
You may be asked a question because the output directory is not empty.&lt;br /&gt;
So just input &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt; or clean the folder.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd test&lt;br /&gt;
&lt;br /&gt;
./heppy_loop.py ../../output/ ctau_cfg1.py&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If it don't want to run try &amp;lt;code&amp;gt;source ~razuvaev/.bashrc&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;source ../init.sh&amp;lt;/code&amp;gt; because it can be caused by the problem with environment variables.&lt;br /&gt;
&lt;br /&gt;
When papas simulation has been done one need to present papas output to a suitable form and also add initial generator information.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd ../../&lt;br /&gt;
&lt;br /&gt;
./txt2tree.py&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The output root tree is available in the file ''myheppy/output/txt2tree.root''.&lt;br /&gt;
&lt;br /&gt;
== Output tree ==&lt;br /&gt;
&lt;br /&gt;
The output tree contains branches which can be divided in several groups:&lt;br /&gt;
* reconstructed particle parameters;&lt;br /&gt;
* generated particle parameters;&lt;br /&gt;
* generated vertices;&lt;br /&gt;
* connection between reconstructed particles, generated particles and generated vertices.&lt;br /&gt;
&lt;br /&gt;
The table below presents branches and description of their content.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name&lt;br /&gt;
! Type&lt;br /&gt;
! Length&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Reconstructed particles&lt;br /&gt;
|-&lt;br /&gt;
| n&lt;br /&gt;
| int&lt;br /&gt;
| 1&lt;br /&gt;
| The number of reconstructed particles.&lt;br /&gt;
|-&lt;br /&gt;
| px&lt;br /&gt;
| float []&lt;br /&gt;
| n&lt;br /&gt;
| The reconstructed particle momentum: x coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| py&lt;br /&gt;
| float []&lt;br /&gt;
| n&lt;br /&gt;
| The reconstructed particle momentum: y coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| pz&lt;br /&gt;
| float []&lt;br /&gt;
| n&lt;br /&gt;
| The reconstructed particle momentum: z coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Generated particles&lt;br /&gt;
|-&lt;br /&gt;
| n0&lt;br /&gt;
| int&lt;br /&gt;
| 1&lt;br /&gt;
| The number of generated particles.&lt;br /&gt;
|-&lt;br /&gt;
| px0&lt;br /&gt;
| float []&lt;br /&gt;
| n0&lt;br /&gt;
| The generated particle momentum: x coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| py0&lt;br /&gt;
| float []&lt;br /&gt;
| n0&lt;br /&gt;
| The generated particle momentum: y coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| pz0&lt;br /&gt;
| float []&lt;br /&gt;
| n0&lt;br /&gt;
| The generated particle momentum: z coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Generated vertices&lt;br /&gt;
|-&lt;br /&gt;
| nv0&lt;br /&gt;
| int&lt;br /&gt;
| 1&lt;br /&gt;
| The number of generated vertices.&lt;br /&gt;
|-&lt;br /&gt;
| vx0&lt;br /&gt;
| float []&lt;br /&gt;
| nv0&lt;br /&gt;
| The generated vertex: x coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| vy0&lt;br /&gt;
| float []&lt;br /&gt;
| nv0&lt;br /&gt;
| The generated vertex: y coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| vz0&lt;br /&gt;
| float []&lt;br /&gt;
| nv0&lt;br /&gt;
| The generated vertex: z coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Links&lt;br /&gt;
|-&lt;br /&gt;
| recgen&lt;br /&gt;
| int []&lt;br /&gt;
| n&lt;br /&gt;
| Transform a reconstructed particle index to the generated particle index.&lt;br /&gt;
|-&lt;br /&gt;
| genver&lt;br /&gt;
| int []&lt;br /&gt;
| n0&lt;br /&gt;
| Transform a generated particle index to the generated vertex index.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Analysis example ==&lt;br /&gt;
&lt;br /&gt;
Here a short analysis example of&lt;br /&gt;
&amp;lt;math&amp;gt;D^0 \to K_S^0 \pi^+ \pi^-&amp;lt;/math&amp;gt;&lt;br /&gt;
is presented.&lt;br /&gt;
The things are performed with PyROOT.&lt;br /&gt;
&lt;br /&gt;
The data a taken from the available&lt;br /&gt;
[[MC_Data_Sets#Exclusive_samples|exclusive sample]].&lt;br /&gt;
&lt;br /&gt;
The code can be taken from github&lt;br /&gt;
[https://github.com/lbrl/sctau_py/blob/master/search_dkspipi.py]&lt;br /&gt;
or find at the stark cluster: &lt;br /&gt;
''/home/razuvaev/myheppy/search_dkspipi.py''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Dkspipi_mksmd0.png|alt=mksmd0.|&amp;lt;math&amp;gt;K_S^0&amp;lt;/math&amp;gt; mass vs &amp;lt;math&amp;gt;D^0&amp;lt;/math&amp;gt; mass.&lt;br /&gt;
File:Dkspipi_md0pd0.png|alt=md0pd0.|&amp;lt;math&amp;gt;D^0&amp;lt;/math&amp;gt; mass vs its momentum.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/SctParSim_-_parametric_simulation</id>
		<title>SctParSim - parametric simulation</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/SctParSim_-_parametric_simulation"/>
				<updated>2021-11-23T14:46:13Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: Razuvaev moved page SctParSim - parametric simulation to SctParSim (Aurora)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[SctParSim (Aurora)]]&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/SctParSim_(Aurora)</id>
		<title>SctParSim (Aurora)</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/SctParSim_(Aurora)"/>
				<updated>2021-11-23T14:46:12Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: Razuvaev moved page SctParSim - parametric simulation to SctParSim (Aurora)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= SctParSim =&lt;br /&gt;
A parametric simulation is a tool to receive a detector response without detailed description of interaction of particles with matter. The simulation is the part of the Aurora project, which is a software suit for SCTF.&lt;br /&gt;
&lt;br /&gt;
Implemented detector subsystems:&lt;br /&gt;
* drift chamber&lt;br /&gt;
* FARICH PID system&lt;br /&gt;
* calorimeter&lt;br /&gt;
* muon system&lt;br /&gt;
&lt;br /&gt;
The parametric simulation yields the detector response in the SCT EDM format thus allowing to analyze its result in the same manner as the result of the full simulation.&lt;br /&gt;
&lt;br /&gt;
How-to use the parametric simulation is demonstrated [https://ctd.inp.nsk.su/wiki/index.php/SCT_parametric_simulation here]&lt;br /&gt;
&lt;br /&gt;
== Detector configuration ==&lt;br /&gt;
&lt;br /&gt;
The detector parameters can be changed in the run script (see Configuration section).&lt;br /&gt;
The detector parameters and their default values can be viewed here.&lt;br /&gt;
&lt;br /&gt;
=== SctParSimAlg ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change parameter&lt;br /&gt;
! Description&lt;br /&gt;
! Default value &lt;br /&gt;
|-&lt;br /&gt;
| B&lt;br /&gt;
| Detector magnetic field&lt;br /&gt;
| 1.5&lt;br /&gt;
|-&lt;br /&gt;
| mostProbMass&lt;br /&gt;
| The mass of most probable particle&lt;br /&gt;
| 0.13957&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== TrackSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater&lt;br /&gt;
! Description&lt;br /&gt;
! Default value&lt;br /&gt;
|-&lt;br /&gt;
| trackRhoMin&lt;br /&gt;
| Inner radius of barrel tracker, m        &lt;br /&gt;
| 0.1 &lt;br /&gt;
|-&lt;br /&gt;
| trackRhoMax              &lt;br /&gt;
| Outer radius of barrel tracker, m        &lt;br /&gt;
| 0.8 &lt;br /&gt;
|-&lt;br /&gt;
| trackZMin                &lt;br /&gt;
| Inner z coordinate of endcup tracker, m  &lt;br /&gt;
| 0   &lt;br /&gt;
|-&lt;br /&gt;
| trackZMax                &lt;br /&gt;
| Outer z coordinate of endcup tracker, m  &lt;br /&gt;
| 1   &lt;br /&gt;
|- &lt;br /&gt;
| trackMinPt               &lt;br /&gt;
| Minimum momentum, GeV                    &lt;br /&gt;
|0.05 &lt;br /&gt;
|- &lt;br /&gt;
| trackPtProb              &lt;br /&gt;
| Registration probabilities for different momentum, {GeV, prob} &lt;br /&gt;
| {{0.1, 0.8}, {0.3, 0.9}, {1, 0.95), {10, 0.99}} &lt;br /&gt;
|-&lt;br /&gt;
| trackRadLen              &lt;br /&gt;
| Radiation length in the track system, m  &lt;br /&gt;
| 187 &lt;br /&gt;
|-&lt;br /&gt;
| trackResParPT            &lt;br /&gt;
| Parameterizaton parameters for xy projection &lt;br /&gt;
| 0.00212 &lt;br /&gt;
|-&lt;br /&gt;
| trackResParPZ            &lt;br /&gt;
| Parameterization parameters for z projection &lt;br /&gt;
| {0.001281, 0.00308} &lt;br /&gt;
|-&lt;br /&gt;
| trackLayerAx             &lt;br /&gt;
| The radius of layers anf the location radius of the anod layers, mm &lt;br /&gt;
| {{6.306, 217.306}, {6.644, 227.1}, {7.165, 246.906}, {6.564, 341.938}, {6.794, 352.06}, {7.14, 371.992}, {7.388, 382.95}, {6.651, 467.57}, {6.823, 477.718}, {6.968, 488.097}, {7.12, 498.701}, {7.274, 509.535}, {6.768, 636.322}, {6.898, 646.501}, {7.007, 656.957}, {7.121, 667.581}, {6.791, 750.730}, {6.902, 761.027}, {6.995, 771.472}, {7.091, 782.061}} &lt;br /&gt;
|-&lt;br /&gt;
| trackLayerSt            &lt;br /&gt;
| The radius of layers and the location radius of the stereo layers, mm &lt;br /&gt;
| {{6.473, 280.136}, {6.747, 290.136}, {7.182, 310.863}, {7.486, 321.938}, {6.603, 405.941}, {6.799, 416.04}, {7.104, 436.741}, {7.314, 447.606}, {6.741, 533.35}, {6.859, 543.615}, {7.026, 554.088, {7.161, 564.762}, {6.778, 584.801}, {6.919, 595.108}, {7.039, 605.606}, {7.163, 6169.289}, {6.746, 689.948}, {6.865, 700.185}, {7.041, 720.09}, {7.165, 730.775}} &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== FARICHSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| farichRhoMin             &lt;br /&gt;
| Inner radius of barrel FARICH system, m          &lt;br /&gt;
| 0.82    &lt;br /&gt;
|-&lt;br /&gt;
| farichRhoMax             &lt;br /&gt;
| Outer radius of barrel FARICH system, m          &lt;br /&gt;
| 0.9     &lt;br /&gt;
|-&lt;br /&gt;
| farichZMin               &lt;br /&gt;
| Inner z coordinate of endcup FARICH system, m    &lt;br /&gt;
| 1.02    &lt;br /&gt;
|-&lt;br /&gt;
| farichZMax               &lt;br /&gt;
| Outer z coordinate of encup FARICH system, m     &lt;br /&gt;
| 1.273   &lt;br /&gt;
|-&lt;br /&gt;
| farichHoleR              &lt;br /&gt;
| Hole radius of FARICH system                     &lt;br /&gt;
| 0.3     &lt;br /&gt;
|-&lt;br /&gt;
| parSimFarichFileName     &lt;br /&gt;
| The path to the file with response histograms of FARICH &lt;br /&gt;
| ./pi_ms_f1_mppc2_px3_d200_mla4_graph2d.root &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== CaloSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| caloRhoMin               &lt;br /&gt;
| Inner radius of barrel calorimeter, m            &lt;br /&gt;
| 1.09    &lt;br /&gt;
|-&lt;br /&gt;
| caloRhoMax               &lt;br /&gt;
| Outer radius of barrel calorimeter, m            &lt;br /&gt;
| 1.55    &lt;br /&gt;
|-&lt;br /&gt;
| caloZMin                 &lt;br /&gt;
| Inner z coordinate of endcup calorimeter, m      &lt;br /&gt;
| 1.293   &lt;br /&gt;
|-&lt;br /&gt;
| caloZMax                 &lt;br /&gt;
| Outer z coordinate of endcup calorimeter, m      &lt;br /&gt;
| 1.86   &lt;br /&gt;
|-&lt;br /&gt;
| caloCosthmax             &lt;br /&gt;
| Maximum cosine                                   &lt;br /&gt;
| 0.9     &lt;br /&gt;
|-&lt;br /&gt;
| caloClSize               &lt;br /&gt;
| Calorimeter cluster size, m                      &lt;br /&gt;
| 0.045   &lt;br /&gt;
|-&lt;br /&gt;
| caloClSizeEGamma         &lt;br /&gt;
| Calorimeter cluster size for gamma, m            &lt;br /&gt;
| 0.15   &lt;br /&gt;
|-&lt;br /&gt;
| caloEMinBarrel           &lt;br /&gt;
| Minimal energy, GeV                              &lt;br /&gt;
| 0.015   &lt;br /&gt;
|-&lt;br /&gt;
| caloEMinEndcup           &lt;br /&gt;
| Minimal energy, GeV                              &lt;br /&gt;
| 0.015   &lt;br /&gt;
|-&lt;br /&gt;
| caloResPar               &lt;br /&gt;
| Parameterization parameters                      &lt;br /&gt;
| {1.34e-2, 0.066e-2, 0.0, 0.82e-2}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MuonSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| muonRhoMin               &lt;br /&gt;
| Inner radius of barrel muon system, m            &lt;br /&gt;
| 1.87    &lt;br /&gt;
|-&lt;br /&gt;
| muonRhoMax               &lt;br /&gt;
| Outer radius of barrel muon system, m            &lt;br /&gt;
| 2.15    &lt;br /&gt;
|-&lt;br /&gt;
| muonZMin                 &lt;br /&gt;
| Inner z coordinate of endcup muon system, m      &lt;br /&gt;
| 1.88    &lt;br /&gt;
|-&lt;br /&gt;
| muonZMax                 &lt;br /&gt;
| Outer z coordinate of endcup muon system, m      &lt;br /&gt;
| 2.16    &lt;br /&gt;
|-&lt;br /&gt;
| parSimMuonFileNameMu     &lt;br /&gt;
| The path to the file with response histograms of muon system (muon) &lt;br /&gt;
| ./g4beamline_mu_plus_100k_parse.root &lt;br /&gt;
|-&lt;br /&gt;
| parSimMuonFileNamePi     &lt;br /&gt;
| The path to the file with response histograms of muon system (pion) &lt;br /&gt;
| ./g4beamline_pi_plus_100k_parse.root &lt;br /&gt;
|} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Parameterization ==&lt;br /&gt;
=== Drift chamber ===&lt;br /&gt;
&lt;br /&gt;
The track resolution is described [https://ctd.inp.nsk.su/wiki/index.php/Drift_chamber here].&lt;br /&gt;
&lt;br /&gt;
The parametric simulation has two options in the tracker to the particle identification: an ionisation clusters counting (dNcl/dx) and dE/dx. The model of calculation the specific number of ionization clusters is taken from a TraPID option by F. Gracagnolo ([https://indico.lal.in2p3.fr/event/4902/contributions/17030/attachments/13603/16389/SCTFDrift_Chamber.pdf The presentation on &amp;quot;Joint Workshop on Future tau-charm factory&amp;quot; in December 4--7, 2018]). An energy losing is calculated using the resolution model from BaBar experiment. The The &amp;lt;math&amp;gt;\sigma \left( \frac{dE}{dx} \right)&amp;lt;/math&amp;gt; is parameterized as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\sigma \left( \frac{dE}{dx} \right) = \alpha \left( \frac{dE}{dx} \right) ^\beta dx^\gamma&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where α, β, γ is tuned on BaBar data.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Tracker_res.png|Momentum resolution as a function of momentum depending on polar angle for π+&lt;br /&gt;
&lt;br /&gt;
File:DEdx.png|The dependence of the dE/dx on the momentum in the tracker system&lt;br /&gt;
&lt;br /&gt;
File:cl_count.png|The dependence of the specific number of ionization clusters on the momentum in the tracker system&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== FARICH PID system ===&lt;br /&gt;
&lt;br /&gt;
The FARICH PID system works using the results of the full GEANT4 simulation. The system output is the particle speed and number of photons.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Farich_res.png|The dependence of the particle β factor on the momentum in the FARICH PID system&lt;br /&gt;
&lt;br /&gt;
File:Farich_param.png|The dependence of the number of photoelectron on the βγ factor in the FARICH PID system for different angles (black - 10°, red - 30°, green - 45°)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Calorimeter ===&lt;br /&gt;
&lt;br /&gt;
The calorimeter resolution is &amp;lt;math&amp;gt; \sigma_E = e_0 \bigoplus \frac{e_1}{E} \bigoplus \frac{e_2}{\sqrt{E}} \bigoplus \frac{e_3}{E^{0.25}}&amp;lt;/math&amp;gt;, the coefficients (e0, e1 etc.) are taken from [https://indico.inp.nsk.su/event/13/session/10/contribution/17/material/slides/0.pdf the D. Epifanov presentation on Super C-Tau factory workshop in May 27, 2018].&lt;br /&gt;
&lt;br /&gt;
There are two cluster sizes to gammas / electrons and other particles.&lt;br /&gt;
&lt;br /&gt;
==== Reconstruction ====&lt;br /&gt;
The cross-linking data obtained by the track system and the calorimeter is implemented. This is implemented taking into account the geometric intersection of the calorimeter clusters.&lt;br /&gt;
 &lt;br /&gt;
The algorithm for the cross-linking data obtained by the track system and the calorimeter:&lt;br /&gt;
* union of geometrically intersecting calorimetric clusters&lt;br /&gt;
* finding a match between calorimetric clusters and tracks&lt;br /&gt;
* recalculating cluster characteristics (time, energy, cluster size, conversion point)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Res_eff.png‎|The reconstruction efficiency for different particle types&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Muon system ===&lt;br /&gt;
The muon system works using the results of a reconducted stand-alone simulation on G4BeamLine. The system is a cylinder of eight absorber and sensitive polystyrene layers. The absorber is iron.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:muon.png|The probability distribution for muons and pions to reach a certain layer in the muon system&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Output collection ==&lt;br /&gt;
&lt;br /&gt;
The output ROOT-file contains:&lt;br /&gt;
&lt;br /&gt;
* allGenParticles - MC particles&lt;br /&gt;
** pdgId&lt;br /&gt;
** charge&lt;br /&gt;
** vertex - x, y, and z coordinates&lt;br /&gt;
** p4 - momentum (px, py, pz) and mass&lt;br /&gt;
&lt;br /&gt;
* Particles - the particle characteristics after the parametric simulation &lt;br /&gt;
** pdgId&lt;br /&gt;
** charge&lt;br /&gt;
** vertex - x, y, z coordinates&lt;br /&gt;
** p4 - measured momentum (px, py, pz) and the most probability particle mass&lt;br /&gt;
** dedx&lt;br /&gt;
** dedx_err&lt;br /&gt;
** dncldx - cluster counting&lt;br /&gt;
** dedxPid&lt;br /&gt;
** dncldxPid&lt;br /&gt;
** farichPid&lt;br /&gt;
** muPid&lt;br /&gt;
&lt;br /&gt;
* TrackState - the helix characteristics (the track)&lt;br /&gt;
** phi&lt;br /&gt;
** theta&lt;br /&gt;
** qOverP&lt;br /&gt;
** d0&lt;br /&gt;
** z0&lt;br /&gt;
** referencePoint - x, y and z coordinates&lt;br /&gt;
&lt;br /&gt;
* CaloClusters&lt;br /&gt;
** energy&lt;br /&gt;
** time&lt;br /&gt;
** position - x, y and z coordinates of the calorimeter entry point&lt;br /&gt;
&lt;br /&gt;
* MuonHits&lt;br /&gt;
** layer - the last layer that registered a particle&lt;br /&gt;
&lt;br /&gt;
* FARICHHits&lt;br /&gt;
** cellId&lt;br /&gt;
** energy&lt;br /&gt;
** time&lt;br /&gt;
** beta&lt;br /&gt;
** beta_err&lt;br /&gt;
** nphe0&lt;br /&gt;
** nphe&lt;br /&gt;
&lt;br /&gt;
The more characteristics have intuitive names.&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation</id>
		<title>Parametric simulation</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation"/>
				<updated>2021-11-23T14:45:47Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: /* SctParSim (Python) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Talks==&lt;br /&gt;
&lt;br /&gt;
* Software meeting 2018-06-29, Friday, [[File:sctau_papas_v2_20180629.pdf]]&lt;br /&gt;
* Workshop on future Super c-tau factories 2021-11-16 [https://indico.inp.nsk.su/event/62/contributions/2315/ Parametric simulation of the SCT detector]&lt;br /&gt;
&lt;br /&gt;
= SctParSim =&lt;br /&gt;
A parametric simulation is a tool to receive a detector response without detailed description of interaction of particles with matter. The simulation is the part of the Aurora project, which is a software suit for SCTF. More details are [[SctParSim - parametric simulation|here]]&lt;br /&gt;
&lt;br /&gt;
Implemented detector subsystems:&lt;br /&gt;
* drift chamber&lt;br /&gt;
* FARICH PID system&lt;br /&gt;
* calorimeter&lt;br /&gt;
* muon system&lt;br /&gt;
&lt;br /&gt;
The parametric simulation yields the detector response in the SCT EDM format thus allowing to analyze its result in the same manner as the result of the full simulation.&lt;br /&gt;
&lt;br /&gt;
How-to use the parametric simulation is demonstrated [https://ctd.inp.nsk.su/wiki/index.php/SCT_parametric_simulation here]&lt;br /&gt;
&lt;br /&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. How to run and parameter description is [[SctParSim (python)|here]]&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 SCTauSim,master,latest&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;br /&gt;
&lt;br /&gt;
= PAPAS (Old) =&lt;br /&gt;
&lt;br /&gt;
== About papas, heppy et cetra ==&lt;br /&gt;
&lt;br /&gt;
Particle propagation is done by geometry calculation.&lt;br /&gt;
To valid the calculation several different cases were plotted.&lt;br /&gt;
&lt;br /&gt;
[[File:Tof_test_9k.png|thumb|center|alt=Helix.|Helix.]]&lt;br /&gt;
&lt;br /&gt;
== Configure detector parameters ==&lt;br /&gt;
&lt;br /&gt;
The detector parameters can be changed via a configuration file ''CTauPapas.cfg'' placed in the main papas 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(s) should be separated by spaces.&lt;br /&gt;
Empty lines and lines beginning with # are ignored.&lt;br /&gt;
&lt;br /&gt;
In the example below the parameter at the first line is one number,&lt;br /&gt;
while the parameter at the second line is an array.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ecal_emin_barrel 0.05&lt;br /&gt;
&lt;br /&gt;
ecal_eres 1.34e-2 0.066e-2 0 0.82e-2&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The parameters can be given in any order.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configure detector parameters ==&lt;br /&gt;
&lt;br /&gt;
The file ''ctau_input_sim.txt'' contains two lines.&lt;br /&gt;
The first line is the path to a primary simulation file (see [[MC_Data_Sets|MC Data Sets]] page).&lt;br /&gt;
The second line is an integer number of events to be processed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== How to run papas ==&lt;br /&gt;
&lt;br /&gt;
Copy a directory with papas on stark the machine and go to this directory.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd&lt;br /&gt;
&lt;br /&gt;
cp -rf ~razuvaev/myheppy .&lt;br /&gt;
&lt;br /&gt;
cd myheppy&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There are a directory ''output'' for output files,&lt;br /&gt;
detector configuration file ''CTauPapas.cfg'',&lt;br /&gt;
file ''ctau_input_sim.txt'' with a path to the file with primary generator events,&lt;br /&gt;
and the folder ''heppy'' with heppy code itself.&lt;br /&gt;
Let's go into it and tune environment.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd heppy&lt;br /&gt;
&lt;br /&gt;
source init.sh&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now it is time to run papas.&lt;br /&gt;
You may be asked a question because the output directory is not empty.&lt;br /&gt;
So just input &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt; or clean the folder.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd test&lt;br /&gt;
&lt;br /&gt;
./heppy_loop.py ../../output/ ctau_cfg1.py&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If it don't want to run try &amp;lt;code&amp;gt;source ~razuvaev/.bashrc&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;source ../init.sh&amp;lt;/code&amp;gt; because it can be caused by the problem with environment variables.&lt;br /&gt;
&lt;br /&gt;
When papas simulation has been done one need to present papas output to a suitable form and also add initial generator information.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd ../../&lt;br /&gt;
&lt;br /&gt;
./txt2tree.py&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The output root tree is available in the file ''myheppy/output/txt2tree.root''.&lt;br /&gt;
&lt;br /&gt;
== Output tree ==&lt;br /&gt;
&lt;br /&gt;
The output tree contains branches which can be divided in several groups:&lt;br /&gt;
* reconstructed particle parameters;&lt;br /&gt;
* generated particle parameters;&lt;br /&gt;
* generated vertices;&lt;br /&gt;
* connection between reconstructed particles, generated particles and generated vertices.&lt;br /&gt;
&lt;br /&gt;
The table below presents branches and description of their content.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name&lt;br /&gt;
! Type&lt;br /&gt;
! Length&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Reconstructed particles&lt;br /&gt;
|-&lt;br /&gt;
| n&lt;br /&gt;
| int&lt;br /&gt;
| 1&lt;br /&gt;
| The number of reconstructed particles.&lt;br /&gt;
|-&lt;br /&gt;
| px&lt;br /&gt;
| float []&lt;br /&gt;
| n&lt;br /&gt;
| The reconstructed particle momentum: x coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| py&lt;br /&gt;
| float []&lt;br /&gt;
| n&lt;br /&gt;
| The reconstructed particle momentum: y coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| pz&lt;br /&gt;
| float []&lt;br /&gt;
| n&lt;br /&gt;
| The reconstructed particle momentum: z coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Generated particles&lt;br /&gt;
|-&lt;br /&gt;
| n0&lt;br /&gt;
| int&lt;br /&gt;
| 1&lt;br /&gt;
| The number of generated particles.&lt;br /&gt;
|-&lt;br /&gt;
| px0&lt;br /&gt;
| float []&lt;br /&gt;
| n0&lt;br /&gt;
| The generated particle momentum: x coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| py0&lt;br /&gt;
| float []&lt;br /&gt;
| n0&lt;br /&gt;
| The generated particle momentum: y coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| pz0&lt;br /&gt;
| float []&lt;br /&gt;
| n0&lt;br /&gt;
| The generated particle momentum: z coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Generated vertices&lt;br /&gt;
|-&lt;br /&gt;
| nv0&lt;br /&gt;
| int&lt;br /&gt;
| 1&lt;br /&gt;
| The number of generated vertices.&lt;br /&gt;
|-&lt;br /&gt;
| vx0&lt;br /&gt;
| float []&lt;br /&gt;
| nv0&lt;br /&gt;
| The generated vertex: x coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| vy0&lt;br /&gt;
| float []&lt;br /&gt;
| nv0&lt;br /&gt;
| The generated vertex: y coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| vz0&lt;br /&gt;
| float []&lt;br /&gt;
| nv0&lt;br /&gt;
| The generated vertex: z coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Links&lt;br /&gt;
|-&lt;br /&gt;
| recgen&lt;br /&gt;
| int []&lt;br /&gt;
| n&lt;br /&gt;
| Transform a reconstructed particle index to the generated particle index.&lt;br /&gt;
|-&lt;br /&gt;
| genver&lt;br /&gt;
| int []&lt;br /&gt;
| n0&lt;br /&gt;
| Transform a generated particle index to the generated vertex index.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Analysis example ==&lt;br /&gt;
&lt;br /&gt;
Here a short analysis example of&lt;br /&gt;
&amp;lt;math&amp;gt;D^0 \to K_S^0 \pi^+ \pi^-&amp;lt;/math&amp;gt;&lt;br /&gt;
is presented.&lt;br /&gt;
The things are performed with PyROOT.&lt;br /&gt;
&lt;br /&gt;
The data a taken from the available&lt;br /&gt;
[[MC_Data_Sets#Exclusive_samples|exclusive sample]].&lt;br /&gt;
&lt;br /&gt;
The code can be taken from github&lt;br /&gt;
[https://github.com/lbrl/sctau_py/blob/master/search_dkspipi.py]&lt;br /&gt;
or find at the stark cluster: &lt;br /&gt;
''/home/razuvaev/myheppy/search_dkspipi.py''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Dkspipi_mksmd0.png|alt=mksmd0.|&amp;lt;math&amp;gt;K_S^0&amp;lt;/math&amp;gt; mass vs &amp;lt;math&amp;gt;D^0&amp;lt;/math&amp;gt; mass.&lt;br /&gt;
File:Dkspipi_md0pd0.png|alt=md0pd0.|&amp;lt;math&amp;gt;D^0&amp;lt;/math&amp;gt; mass vs its momentum.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation</id>
		<title>Parametric simulation</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation"/>
				<updated>2021-11-23T14:42:28Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: /* SctParSim */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Talks==&lt;br /&gt;
&lt;br /&gt;
* Software meeting 2018-06-29, Friday, [[File:sctau_papas_v2_20180629.pdf]]&lt;br /&gt;
* Workshop on future Super c-tau factories 2021-11-16 [https://indico.inp.nsk.su/event/62/contributions/2315/ Parametric simulation of the SCT detector]&lt;br /&gt;
&lt;br /&gt;
= SctParSim =&lt;br /&gt;
A parametric simulation is a tool to receive a detector response without detailed description of interaction of particles with matter. The simulation is the part of the Aurora project, which is a software suit for SCTF. More details are [[SctParSim - parametric simulation|here]]&lt;br /&gt;
&lt;br /&gt;
Implemented detector subsystems:&lt;br /&gt;
* drift chamber&lt;br /&gt;
* FARICH PID system&lt;br /&gt;
* calorimeter&lt;br /&gt;
* muon system&lt;br /&gt;
&lt;br /&gt;
The parametric simulation yields the detector response in the SCT EDM format thus allowing to analyze its result in the same manner as the result of the full simulation.&lt;br /&gt;
&lt;br /&gt;
How-to use the parametric simulation is demonstrated [https://ctd.inp.nsk.su/wiki/index.php/SCT_parametric_simulation here]&lt;br /&gt;
&lt;br /&gt;
= SctParSim (Python) =&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 SCTauSim,master,latest&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;br /&gt;
&lt;br /&gt;
= PAPAS (Old) =&lt;br /&gt;
&lt;br /&gt;
== About papas, heppy et cetra ==&lt;br /&gt;
&lt;br /&gt;
Particle propagation is done by geometry calculation.&lt;br /&gt;
To valid the calculation several different cases were plotted.&lt;br /&gt;
&lt;br /&gt;
[[File:Tof_test_9k.png|thumb|center|alt=Helix.|Helix.]]&lt;br /&gt;
&lt;br /&gt;
== Configure detector parameters ==&lt;br /&gt;
&lt;br /&gt;
The detector parameters can be changed via a configuration file ''CTauPapas.cfg'' placed in the main papas 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(s) should be separated by spaces.&lt;br /&gt;
Empty lines and lines beginning with # are ignored.&lt;br /&gt;
&lt;br /&gt;
In the example below the parameter at the first line is one number,&lt;br /&gt;
while the parameter at the second line is an array.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ecal_emin_barrel 0.05&lt;br /&gt;
&lt;br /&gt;
ecal_eres 1.34e-2 0.066e-2 0 0.82e-2&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The parameters can be given in any order.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configure detector parameters ==&lt;br /&gt;
&lt;br /&gt;
The file ''ctau_input_sim.txt'' contains two lines.&lt;br /&gt;
The first line is the path to a primary simulation file (see [[MC_Data_Sets|MC Data Sets]] page).&lt;br /&gt;
The second line is an integer number of events to be processed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== How to run papas ==&lt;br /&gt;
&lt;br /&gt;
Copy a directory with papas on stark the machine and go to this directory.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd&lt;br /&gt;
&lt;br /&gt;
cp -rf ~razuvaev/myheppy .&lt;br /&gt;
&lt;br /&gt;
cd myheppy&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There are a directory ''output'' for output files,&lt;br /&gt;
detector configuration file ''CTauPapas.cfg'',&lt;br /&gt;
file ''ctau_input_sim.txt'' with a path to the file with primary generator events,&lt;br /&gt;
and the folder ''heppy'' with heppy code itself.&lt;br /&gt;
Let's go into it and tune environment.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd heppy&lt;br /&gt;
&lt;br /&gt;
source init.sh&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now it is time to run papas.&lt;br /&gt;
You may be asked a question because the output directory is not empty.&lt;br /&gt;
So just input &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt; or clean the folder.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd test&lt;br /&gt;
&lt;br /&gt;
./heppy_loop.py ../../output/ ctau_cfg1.py&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If it don't want to run try &amp;lt;code&amp;gt;source ~razuvaev/.bashrc&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;source ../init.sh&amp;lt;/code&amp;gt; because it can be caused by the problem with environment variables.&lt;br /&gt;
&lt;br /&gt;
When papas simulation has been done one need to present papas output to a suitable form and also add initial generator information.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd ../../&lt;br /&gt;
&lt;br /&gt;
./txt2tree.py&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The output root tree is available in the file ''myheppy/output/txt2tree.root''.&lt;br /&gt;
&lt;br /&gt;
== Output tree ==&lt;br /&gt;
&lt;br /&gt;
The output tree contains branches which can be divided in several groups:&lt;br /&gt;
* reconstructed particle parameters;&lt;br /&gt;
* generated particle parameters;&lt;br /&gt;
* generated vertices;&lt;br /&gt;
* connection between reconstructed particles, generated particles and generated vertices.&lt;br /&gt;
&lt;br /&gt;
The table below presents branches and description of their content.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name&lt;br /&gt;
! Type&lt;br /&gt;
! Length&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Reconstructed particles&lt;br /&gt;
|-&lt;br /&gt;
| n&lt;br /&gt;
| int&lt;br /&gt;
| 1&lt;br /&gt;
| The number of reconstructed particles.&lt;br /&gt;
|-&lt;br /&gt;
| px&lt;br /&gt;
| float []&lt;br /&gt;
| n&lt;br /&gt;
| The reconstructed particle momentum: x coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| py&lt;br /&gt;
| float []&lt;br /&gt;
| n&lt;br /&gt;
| The reconstructed particle momentum: y coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| pz&lt;br /&gt;
| float []&lt;br /&gt;
| n&lt;br /&gt;
| The reconstructed particle momentum: z coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Generated particles&lt;br /&gt;
|-&lt;br /&gt;
| n0&lt;br /&gt;
| int&lt;br /&gt;
| 1&lt;br /&gt;
| The number of generated particles.&lt;br /&gt;
|-&lt;br /&gt;
| px0&lt;br /&gt;
| float []&lt;br /&gt;
| n0&lt;br /&gt;
| The generated particle momentum: x coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| py0&lt;br /&gt;
| float []&lt;br /&gt;
| n0&lt;br /&gt;
| The generated particle momentum: y coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| pz0&lt;br /&gt;
| float []&lt;br /&gt;
| n0&lt;br /&gt;
| The generated particle momentum: z coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Generated vertices&lt;br /&gt;
|-&lt;br /&gt;
| nv0&lt;br /&gt;
| int&lt;br /&gt;
| 1&lt;br /&gt;
| The number of generated vertices.&lt;br /&gt;
|-&lt;br /&gt;
| vx0&lt;br /&gt;
| float []&lt;br /&gt;
| nv0&lt;br /&gt;
| The generated vertex: x coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| vy0&lt;br /&gt;
| float []&lt;br /&gt;
| nv0&lt;br /&gt;
| The generated vertex: y coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| vz0&lt;br /&gt;
| float []&lt;br /&gt;
| nv0&lt;br /&gt;
| The generated vertex: z coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Links&lt;br /&gt;
|-&lt;br /&gt;
| recgen&lt;br /&gt;
| int []&lt;br /&gt;
| n&lt;br /&gt;
| Transform a reconstructed particle index to the generated particle index.&lt;br /&gt;
|-&lt;br /&gt;
| genver&lt;br /&gt;
| int []&lt;br /&gt;
| n0&lt;br /&gt;
| Transform a generated particle index to the generated vertex index.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Analysis example ==&lt;br /&gt;
&lt;br /&gt;
Here a short analysis example of&lt;br /&gt;
&amp;lt;math&amp;gt;D^0 \to K_S^0 \pi^+ \pi^-&amp;lt;/math&amp;gt;&lt;br /&gt;
is presented.&lt;br /&gt;
The things are performed with PyROOT.&lt;br /&gt;
&lt;br /&gt;
The data a taken from the available&lt;br /&gt;
[[MC_Data_Sets#Exclusive_samples|exclusive sample]].&lt;br /&gt;
&lt;br /&gt;
The code can be taken from github&lt;br /&gt;
[https://github.com/lbrl/sctau_py/blob/master/search_dkspipi.py]&lt;br /&gt;
or find at the stark cluster: &lt;br /&gt;
''/home/razuvaev/myheppy/search_dkspipi.py''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Dkspipi_mksmd0.png|alt=mksmd0.|&amp;lt;math&amp;gt;K_S^0&amp;lt;/math&amp;gt; mass vs &amp;lt;math&amp;gt;D^0&amp;lt;/math&amp;gt; mass.&lt;br /&gt;
File:Dkspipi_md0pd0.png|alt=md0pd0.|&amp;lt;math&amp;gt;D^0&amp;lt;/math&amp;gt; mass vs its momentum.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/SctParSim_(Aurora)</id>
		<title>SctParSim (Aurora)</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/SctParSim_(Aurora)"/>
				<updated>2021-11-23T14:42:18Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: Created page with &amp;quot;= SctParSim = A parametric simulation is a tool to receive a detector response without detailed description of interaction of particles with matter. The simulation is the part...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= SctParSim =&lt;br /&gt;
A parametric simulation is a tool to receive a detector response without detailed description of interaction of particles with matter. The simulation is the part of the Aurora project, which is a software suit for SCTF.&lt;br /&gt;
&lt;br /&gt;
Implemented detector subsystems:&lt;br /&gt;
* drift chamber&lt;br /&gt;
* FARICH PID system&lt;br /&gt;
* calorimeter&lt;br /&gt;
* muon system&lt;br /&gt;
&lt;br /&gt;
The parametric simulation yields the detector response in the SCT EDM format thus allowing to analyze its result in the same manner as the result of the full simulation.&lt;br /&gt;
&lt;br /&gt;
How-to use the parametric simulation is demonstrated [https://ctd.inp.nsk.su/wiki/index.php/SCT_parametric_simulation here]&lt;br /&gt;
&lt;br /&gt;
== Detector configuration ==&lt;br /&gt;
&lt;br /&gt;
The detector parameters can be changed in the run script (see Configuration section).&lt;br /&gt;
The detector parameters and their default values can be viewed here.&lt;br /&gt;
&lt;br /&gt;
=== SctParSimAlg ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change parameter&lt;br /&gt;
! Description&lt;br /&gt;
! Default value &lt;br /&gt;
|-&lt;br /&gt;
| B&lt;br /&gt;
| Detector magnetic field&lt;br /&gt;
| 1.5&lt;br /&gt;
|-&lt;br /&gt;
| mostProbMass&lt;br /&gt;
| The mass of most probable particle&lt;br /&gt;
| 0.13957&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== TrackSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater&lt;br /&gt;
! Description&lt;br /&gt;
! Default value&lt;br /&gt;
|-&lt;br /&gt;
| trackRhoMin&lt;br /&gt;
| Inner radius of barrel tracker, m        &lt;br /&gt;
| 0.1 &lt;br /&gt;
|-&lt;br /&gt;
| trackRhoMax              &lt;br /&gt;
| Outer radius of barrel tracker, m        &lt;br /&gt;
| 0.8 &lt;br /&gt;
|-&lt;br /&gt;
| trackZMin                &lt;br /&gt;
| Inner z coordinate of endcup tracker, m  &lt;br /&gt;
| 0   &lt;br /&gt;
|-&lt;br /&gt;
| trackZMax                &lt;br /&gt;
| Outer z coordinate of endcup tracker, m  &lt;br /&gt;
| 1   &lt;br /&gt;
|- &lt;br /&gt;
| trackMinPt               &lt;br /&gt;
| Minimum momentum, GeV                    &lt;br /&gt;
|0.05 &lt;br /&gt;
|- &lt;br /&gt;
| trackPtProb              &lt;br /&gt;
| Registration probabilities for different momentum, {GeV, prob} &lt;br /&gt;
| {{0.1, 0.8}, {0.3, 0.9}, {1, 0.95), {10, 0.99}} &lt;br /&gt;
|-&lt;br /&gt;
| trackRadLen              &lt;br /&gt;
| Radiation length in the track system, m  &lt;br /&gt;
| 187 &lt;br /&gt;
|-&lt;br /&gt;
| trackResParPT            &lt;br /&gt;
| Parameterizaton parameters for xy projection &lt;br /&gt;
| 0.00212 &lt;br /&gt;
|-&lt;br /&gt;
| trackResParPZ            &lt;br /&gt;
| Parameterization parameters for z projection &lt;br /&gt;
| {0.001281, 0.00308} &lt;br /&gt;
|-&lt;br /&gt;
| trackLayerAx             &lt;br /&gt;
| The radius of layers anf the location radius of the anod layers, mm &lt;br /&gt;
| {{6.306, 217.306}, {6.644, 227.1}, {7.165, 246.906}, {6.564, 341.938}, {6.794, 352.06}, {7.14, 371.992}, {7.388, 382.95}, {6.651, 467.57}, {6.823, 477.718}, {6.968, 488.097}, {7.12, 498.701}, {7.274, 509.535}, {6.768, 636.322}, {6.898, 646.501}, {7.007, 656.957}, {7.121, 667.581}, {6.791, 750.730}, {6.902, 761.027}, {6.995, 771.472}, {7.091, 782.061}} &lt;br /&gt;
|-&lt;br /&gt;
| trackLayerSt            &lt;br /&gt;
| The radius of layers and the location radius of the stereo layers, mm &lt;br /&gt;
| {{6.473, 280.136}, {6.747, 290.136}, {7.182, 310.863}, {7.486, 321.938}, {6.603, 405.941}, {6.799, 416.04}, {7.104, 436.741}, {7.314, 447.606}, {6.741, 533.35}, {6.859, 543.615}, {7.026, 554.088, {7.161, 564.762}, {6.778, 584.801}, {6.919, 595.108}, {7.039, 605.606}, {7.163, 6169.289}, {6.746, 689.948}, {6.865, 700.185}, {7.041, 720.09}, {7.165, 730.775}} &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== FARICHSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| farichRhoMin             &lt;br /&gt;
| Inner radius of barrel FARICH system, m          &lt;br /&gt;
| 0.82    &lt;br /&gt;
|-&lt;br /&gt;
| farichRhoMax             &lt;br /&gt;
| Outer radius of barrel FARICH system, m          &lt;br /&gt;
| 0.9     &lt;br /&gt;
|-&lt;br /&gt;
| farichZMin               &lt;br /&gt;
| Inner z coordinate of endcup FARICH system, m    &lt;br /&gt;
| 1.02    &lt;br /&gt;
|-&lt;br /&gt;
| farichZMax               &lt;br /&gt;
| Outer z coordinate of encup FARICH system, m     &lt;br /&gt;
| 1.273   &lt;br /&gt;
|-&lt;br /&gt;
| farichHoleR              &lt;br /&gt;
| Hole radius of FARICH system                     &lt;br /&gt;
| 0.3     &lt;br /&gt;
|-&lt;br /&gt;
| parSimFarichFileName     &lt;br /&gt;
| The path to the file with response histograms of FARICH &lt;br /&gt;
| ./pi_ms_f1_mppc2_px3_d200_mla4_graph2d.root &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== CaloSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| caloRhoMin               &lt;br /&gt;
| Inner radius of barrel calorimeter, m            &lt;br /&gt;
| 1.09    &lt;br /&gt;
|-&lt;br /&gt;
| caloRhoMax               &lt;br /&gt;
| Outer radius of barrel calorimeter, m            &lt;br /&gt;
| 1.55    &lt;br /&gt;
|-&lt;br /&gt;
| caloZMin                 &lt;br /&gt;
| Inner z coordinate of endcup calorimeter, m      &lt;br /&gt;
| 1.293   &lt;br /&gt;
|-&lt;br /&gt;
| caloZMax                 &lt;br /&gt;
| Outer z coordinate of endcup calorimeter, m      &lt;br /&gt;
| 1.86   &lt;br /&gt;
|-&lt;br /&gt;
| caloCosthmax             &lt;br /&gt;
| Maximum cosine                                   &lt;br /&gt;
| 0.9     &lt;br /&gt;
|-&lt;br /&gt;
| caloClSize               &lt;br /&gt;
| Calorimeter cluster size, m                      &lt;br /&gt;
| 0.045   &lt;br /&gt;
|-&lt;br /&gt;
| caloClSizeEGamma         &lt;br /&gt;
| Calorimeter cluster size for gamma, m            &lt;br /&gt;
| 0.15   &lt;br /&gt;
|-&lt;br /&gt;
| caloEMinBarrel           &lt;br /&gt;
| Minimal energy, GeV                              &lt;br /&gt;
| 0.015   &lt;br /&gt;
|-&lt;br /&gt;
| caloEMinEndcup           &lt;br /&gt;
| Minimal energy, GeV                              &lt;br /&gt;
| 0.015   &lt;br /&gt;
|-&lt;br /&gt;
| caloResPar               &lt;br /&gt;
| Parameterization parameters                      &lt;br /&gt;
| {1.34e-2, 0.066e-2, 0.0, 0.82e-2}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MuonSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| muonRhoMin               &lt;br /&gt;
| Inner radius of barrel muon system, m            &lt;br /&gt;
| 1.87    &lt;br /&gt;
|-&lt;br /&gt;
| muonRhoMax               &lt;br /&gt;
| Outer radius of barrel muon system, m            &lt;br /&gt;
| 2.15    &lt;br /&gt;
|-&lt;br /&gt;
| muonZMin                 &lt;br /&gt;
| Inner z coordinate of endcup muon system, m      &lt;br /&gt;
| 1.88    &lt;br /&gt;
|-&lt;br /&gt;
| muonZMax                 &lt;br /&gt;
| Outer z coordinate of endcup muon system, m      &lt;br /&gt;
| 2.16    &lt;br /&gt;
|-&lt;br /&gt;
| parSimMuonFileNameMu     &lt;br /&gt;
| The path to the file with response histograms of muon system (muon) &lt;br /&gt;
| ./g4beamline_mu_plus_100k_parse.root &lt;br /&gt;
|-&lt;br /&gt;
| parSimMuonFileNamePi     &lt;br /&gt;
| The path to the file with response histograms of muon system (pion) &lt;br /&gt;
| ./g4beamline_pi_plus_100k_parse.root &lt;br /&gt;
|} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Parameterization ==&lt;br /&gt;
=== Drift chamber ===&lt;br /&gt;
&lt;br /&gt;
The track resolution is described [https://ctd.inp.nsk.su/wiki/index.php/Drift_chamber here].&lt;br /&gt;
&lt;br /&gt;
The parametric simulation has two options in the tracker to the particle identification: an ionisation clusters counting (dNcl/dx) and dE/dx. The model of calculation the specific number of ionization clusters is taken from a TraPID option by F. Gracagnolo ([https://indico.lal.in2p3.fr/event/4902/contributions/17030/attachments/13603/16389/SCTFDrift_Chamber.pdf The presentation on &amp;quot;Joint Workshop on Future tau-charm factory&amp;quot; in December 4--7, 2018]). An energy losing is calculated using the resolution model from BaBar experiment. The The &amp;lt;math&amp;gt;\sigma \left( \frac{dE}{dx} \right)&amp;lt;/math&amp;gt; is parameterized as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\sigma \left( \frac{dE}{dx} \right) = \alpha \left( \frac{dE}{dx} \right) ^\beta dx^\gamma&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where α, β, γ is tuned on BaBar data.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Tracker_res.png|Momentum resolution as a function of momentum depending on polar angle for π+&lt;br /&gt;
&lt;br /&gt;
File:DEdx.png|The dependence of the dE/dx on the momentum in the tracker system&lt;br /&gt;
&lt;br /&gt;
File:cl_count.png|The dependence of the specific number of ionization clusters on the momentum in the tracker system&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== FARICH PID system ===&lt;br /&gt;
&lt;br /&gt;
The FARICH PID system works using the results of the full GEANT4 simulation. The system output is the particle speed and number of photons.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Farich_res.png|The dependence of the particle β factor on the momentum in the FARICH PID system&lt;br /&gt;
&lt;br /&gt;
File:Farich_param.png|The dependence of the number of photoelectron on the βγ factor in the FARICH PID system for different angles (black - 10°, red - 30°, green - 45°)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Calorimeter ===&lt;br /&gt;
&lt;br /&gt;
The calorimeter resolution is &amp;lt;math&amp;gt; \sigma_E = e_0 \bigoplus \frac{e_1}{E} \bigoplus \frac{e_2}{\sqrt{E}} \bigoplus \frac{e_3}{E^{0.25}}&amp;lt;/math&amp;gt;, the coefficients (e0, e1 etc.) are taken from [https://indico.inp.nsk.su/event/13/session/10/contribution/17/material/slides/0.pdf the D. Epifanov presentation on Super C-Tau factory workshop in May 27, 2018].&lt;br /&gt;
&lt;br /&gt;
There are two cluster sizes to gammas / electrons and other particles.&lt;br /&gt;
&lt;br /&gt;
==== Reconstruction ====&lt;br /&gt;
The cross-linking data obtained by the track system and the calorimeter is implemented. This is implemented taking into account the geometric intersection of the calorimeter clusters.&lt;br /&gt;
 &lt;br /&gt;
The algorithm for the cross-linking data obtained by the track system and the calorimeter:&lt;br /&gt;
* union of geometrically intersecting calorimetric clusters&lt;br /&gt;
* finding a match between calorimetric clusters and tracks&lt;br /&gt;
* recalculating cluster characteristics (time, energy, cluster size, conversion point)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Res_eff.png‎|The reconstruction efficiency for different particle types&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Muon system ===&lt;br /&gt;
The muon system works using the results of a reconducted stand-alone simulation on G4BeamLine. The system is a cylinder of eight absorber and sensitive polystyrene layers. The absorber is iron.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:muon.png|The probability distribution for muons and pions to reach a certain layer in the muon system&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Output collection ==&lt;br /&gt;
&lt;br /&gt;
The output ROOT-file contains:&lt;br /&gt;
&lt;br /&gt;
* allGenParticles - MC particles&lt;br /&gt;
** pdgId&lt;br /&gt;
** charge&lt;br /&gt;
** vertex - x, y, and z coordinates&lt;br /&gt;
** p4 - momentum (px, py, pz) and mass&lt;br /&gt;
&lt;br /&gt;
* Particles - the particle characteristics after the parametric simulation &lt;br /&gt;
** pdgId&lt;br /&gt;
** charge&lt;br /&gt;
** vertex - x, y, z coordinates&lt;br /&gt;
** p4 - measured momentum (px, py, pz) and the most probability particle mass&lt;br /&gt;
** dedx&lt;br /&gt;
** dedx_err&lt;br /&gt;
** dncldx - cluster counting&lt;br /&gt;
** dedxPid&lt;br /&gt;
** dncldxPid&lt;br /&gt;
** farichPid&lt;br /&gt;
** muPid&lt;br /&gt;
&lt;br /&gt;
* TrackState - the helix characteristics (the track)&lt;br /&gt;
** phi&lt;br /&gt;
** theta&lt;br /&gt;
** qOverP&lt;br /&gt;
** d0&lt;br /&gt;
** z0&lt;br /&gt;
** referencePoint - x, y and z coordinates&lt;br /&gt;
&lt;br /&gt;
* CaloClusters&lt;br /&gt;
** energy&lt;br /&gt;
** time&lt;br /&gt;
** position - x, y and z coordinates of the calorimeter entry point&lt;br /&gt;
&lt;br /&gt;
* MuonHits&lt;br /&gt;
** layer - the last layer that registered a particle&lt;br /&gt;
&lt;br /&gt;
* FARICHHits&lt;br /&gt;
** cellId&lt;br /&gt;
** energy&lt;br /&gt;
** time&lt;br /&gt;
** beta&lt;br /&gt;
** beta_err&lt;br /&gt;
** nphe0&lt;br /&gt;
** nphe&lt;br /&gt;
&lt;br /&gt;
The more characteristics have intuitive names.&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation</id>
		<title>Parametric simulation</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation"/>
				<updated>2021-11-23T14:40:13Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: /* SctParSim */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Talks==&lt;br /&gt;
&lt;br /&gt;
* Software meeting 2018-06-29, Friday, [[File:sctau_papas_v2_20180629.pdf]]&lt;br /&gt;
* Workshop on future Super c-tau factories 2021-11-16 [https://indico.inp.nsk.su/event/62/contributions/2315/ Parametric simulation of the SCT detector]&lt;br /&gt;
&lt;br /&gt;
= SctParSim =&lt;br /&gt;
A parametric simulation is a tool to receive a detector response without detailed description of interaction of particles with matter. More details are [[SctParSim - parametric simulation|here]]&lt;br /&gt;
&lt;br /&gt;
Implemented detector subsystems:&lt;br /&gt;
* drift chamber&lt;br /&gt;
* FARICH PID system&lt;br /&gt;
* calorimeter&lt;br /&gt;
* muon system&lt;br /&gt;
&lt;br /&gt;
The parametric simulation yields the detector response in the SCT EDM format thus allowing to analyze its result in the same manner as the result of the full simulation.&lt;br /&gt;
&lt;br /&gt;
How-to use the parametric simulation is demonstrated [https://ctd.inp.nsk.su/wiki/index.php/SCT_parametric_simulation here]&lt;br /&gt;
&lt;br /&gt;
== Detector configuration ==&lt;br /&gt;
&lt;br /&gt;
The detector parameters can be changed in the run script (see Configuration section).&lt;br /&gt;
The detector parameters and their default values can be viewed here.&lt;br /&gt;
&lt;br /&gt;
=== SctParSimAlg ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change parameter&lt;br /&gt;
! Description&lt;br /&gt;
! Default value &lt;br /&gt;
|-&lt;br /&gt;
| B&lt;br /&gt;
| Detector magnetic field&lt;br /&gt;
| 1.5&lt;br /&gt;
|-&lt;br /&gt;
| mostProbMass&lt;br /&gt;
| The mass of most probable particle&lt;br /&gt;
| 0.13957&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== TrackSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater&lt;br /&gt;
! Description&lt;br /&gt;
! Default value&lt;br /&gt;
|-&lt;br /&gt;
| trackRhoMin&lt;br /&gt;
| Inner radius of barrel tracker, m        &lt;br /&gt;
| 0.1 &lt;br /&gt;
|-&lt;br /&gt;
| trackRhoMax              &lt;br /&gt;
| Outer radius of barrel tracker, m        &lt;br /&gt;
| 0.8 &lt;br /&gt;
|-&lt;br /&gt;
| trackZMin                &lt;br /&gt;
| Inner z coordinate of endcup tracker, m  &lt;br /&gt;
| 0   &lt;br /&gt;
|-&lt;br /&gt;
| trackZMax                &lt;br /&gt;
| Outer z coordinate of endcup tracker, m  &lt;br /&gt;
| 1   &lt;br /&gt;
|- &lt;br /&gt;
| trackMinPt               &lt;br /&gt;
| Minimum momentum, GeV                    &lt;br /&gt;
|0.05 &lt;br /&gt;
|- &lt;br /&gt;
| trackPtProb              &lt;br /&gt;
| Registration probabilities for different momentum, {GeV, prob} &lt;br /&gt;
| {{0.1, 0.8}, {0.3, 0.9}, {1, 0.95), {10, 0.99}} &lt;br /&gt;
|-&lt;br /&gt;
| trackRadLen              &lt;br /&gt;
| Radiation length in the track system, m  &lt;br /&gt;
| 187 &lt;br /&gt;
|-&lt;br /&gt;
| trackResParPT            &lt;br /&gt;
| Parameterizaton parameters for xy projection &lt;br /&gt;
| 0.00212 &lt;br /&gt;
|-&lt;br /&gt;
| trackResParPZ            &lt;br /&gt;
| Parameterization parameters for z projection &lt;br /&gt;
| {0.001281, 0.00308} &lt;br /&gt;
|-&lt;br /&gt;
| trackLayerAx             &lt;br /&gt;
| The radius of layers anf the location radius of the anod layers, mm &lt;br /&gt;
| {{6.306, 217.306}, {6.644, 227.1}, {7.165, 246.906}, {6.564, 341.938}, {6.794, 352.06}, {7.14, 371.992}, {7.388, 382.95}, {6.651, 467.57}, {6.823, 477.718}, {6.968, 488.097}, {7.12, 498.701}, {7.274, 509.535}, {6.768, 636.322}, {6.898, 646.501}, {7.007, 656.957}, {7.121, 667.581}, {6.791, 750.730}, {6.902, 761.027}, {6.995, 771.472}, {7.091, 782.061}} &lt;br /&gt;
|-&lt;br /&gt;
| trackLayerSt            &lt;br /&gt;
| The radius of layers and the location radius of the stereo layers, mm &lt;br /&gt;
| {{6.473, 280.136}, {6.747, 290.136}, {7.182, 310.863}, {7.486, 321.938}, {6.603, 405.941}, {6.799, 416.04}, {7.104, 436.741}, {7.314, 447.606}, {6.741, 533.35}, {6.859, 543.615}, {7.026, 554.088, {7.161, 564.762}, {6.778, 584.801}, {6.919, 595.108}, {7.039, 605.606}, {7.163, 6169.289}, {6.746, 689.948}, {6.865, 700.185}, {7.041, 720.09}, {7.165, 730.775}} &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== FARICHSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| farichRhoMin             &lt;br /&gt;
| Inner radius of barrel FARICH system, m          &lt;br /&gt;
| 0.82    &lt;br /&gt;
|-&lt;br /&gt;
| farichRhoMax             &lt;br /&gt;
| Outer radius of barrel FARICH system, m          &lt;br /&gt;
| 0.9     &lt;br /&gt;
|-&lt;br /&gt;
| farichZMin               &lt;br /&gt;
| Inner z coordinate of endcup FARICH system, m    &lt;br /&gt;
| 1.02    &lt;br /&gt;
|-&lt;br /&gt;
| farichZMax               &lt;br /&gt;
| Outer z coordinate of encup FARICH system, m     &lt;br /&gt;
| 1.273   &lt;br /&gt;
|-&lt;br /&gt;
| farichHoleR              &lt;br /&gt;
| Hole radius of FARICH system                     &lt;br /&gt;
| 0.3     &lt;br /&gt;
|-&lt;br /&gt;
| parSimFarichFileName     &lt;br /&gt;
| The path to the file with response histograms of FARICH &lt;br /&gt;
| ./pi_ms_f1_mppc2_px3_d200_mla4_graph2d.root &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== CaloSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| caloRhoMin               &lt;br /&gt;
| Inner radius of barrel calorimeter, m            &lt;br /&gt;
| 1.09    &lt;br /&gt;
|-&lt;br /&gt;
| caloRhoMax               &lt;br /&gt;
| Outer radius of barrel calorimeter, m            &lt;br /&gt;
| 1.55    &lt;br /&gt;
|-&lt;br /&gt;
| caloZMin                 &lt;br /&gt;
| Inner z coordinate of endcup calorimeter, m      &lt;br /&gt;
| 1.293   &lt;br /&gt;
|-&lt;br /&gt;
| caloZMax                 &lt;br /&gt;
| Outer z coordinate of endcup calorimeter, m      &lt;br /&gt;
| 1.86   &lt;br /&gt;
|-&lt;br /&gt;
| caloCosthmax             &lt;br /&gt;
| Maximum cosine                                   &lt;br /&gt;
| 0.9     &lt;br /&gt;
|-&lt;br /&gt;
| caloClSize               &lt;br /&gt;
| Calorimeter cluster size, m                      &lt;br /&gt;
| 0.045   &lt;br /&gt;
|-&lt;br /&gt;
| caloClSizeEGamma         &lt;br /&gt;
| Calorimeter cluster size for gamma, m            &lt;br /&gt;
| 0.15   &lt;br /&gt;
|-&lt;br /&gt;
| caloEMinBarrel           &lt;br /&gt;
| Minimal energy, GeV                              &lt;br /&gt;
| 0.015   &lt;br /&gt;
|-&lt;br /&gt;
| caloEMinEndcup           &lt;br /&gt;
| Minimal energy, GeV                              &lt;br /&gt;
| 0.015   &lt;br /&gt;
|-&lt;br /&gt;
| caloResPar               &lt;br /&gt;
| Parameterization parameters                      &lt;br /&gt;
| {1.34e-2, 0.066e-2, 0.0, 0.82e-2}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MuonSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| muonRhoMin               &lt;br /&gt;
| Inner radius of barrel muon system, m            &lt;br /&gt;
| 1.87    &lt;br /&gt;
|-&lt;br /&gt;
| muonRhoMax               &lt;br /&gt;
| Outer radius of barrel muon system, m            &lt;br /&gt;
| 2.15    &lt;br /&gt;
|-&lt;br /&gt;
| muonZMin                 &lt;br /&gt;
| Inner z coordinate of endcup muon system, m      &lt;br /&gt;
| 1.88    &lt;br /&gt;
|-&lt;br /&gt;
| muonZMax                 &lt;br /&gt;
| Outer z coordinate of endcup muon system, m      &lt;br /&gt;
| 2.16    &lt;br /&gt;
|-&lt;br /&gt;
| parSimMuonFileNameMu     &lt;br /&gt;
| The path to the file with response histograms of muon system (muon) &lt;br /&gt;
| ./g4beamline_mu_plus_100k_parse.root &lt;br /&gt;
|-&lt;br /&gt;
| parSimMuonFileNamePi     &lt;br /&gt;
| The path to the file with response histograms of muon system (pion) &lt;br /&gt;
| ./g4beamline_pi_plus_100k_parse.root &lt;br /&gt;
|} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Parameterization ==&lt;br /&gt;
=== Drift chamber ===&lt;br /&gt;
&lt;br /&gt;
The track resolution is described [https://ctd.inp.nsk.su/wiki/index.php/Drift_chamber here].&lt;br /&gt;
&lt;br /&gt;
The parametric simulation has two options in the tracker to the particle identification: an ionisation clusters counting (dNcl/dx) and dE/dx. The model of calculation the specific number of ionization clusters is taken from a TraPID option by F. Gracagnolo ([https://indico.lal.in2p3.fr/event/4902/contributions/17030/attachments/13603/16389/SCTFDrift_Chamber.pdf The presentation on &amp;quot;Joint Workshop on Future tau-charm factory&amp;quot; in December 4--7, 2018]). An energy losing is calculated using the resolution model from BaBar experiment. The The &amp;lt;math&amp;gt;\sigma \left( \frac{dE}{dx} \right)&amp;lt;/math&amp;gt; is parameterized as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\sigma \left( \frac{dE}{dx} \right) = \alpha \left( \frac{dE}{dx} \right) ^\beta dx^\gamma&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where α, β, γ is tuned on BaBar data.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Tracker_res.png|Momentum resolution as a function of momentum depending on polar angle for π+&lt;br /&gt;
&lt;br /&gt;
File:DEdx.png|The dependence of the dE/dx on the momentum in the tracker system&lt;br /&gt;
&lt;br /&gt;
File:cl_count.png|The dependence of the specific number of ionization clusters on the momentum in the tracker system&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== FARICH PID system ===&lt;br /&gt;
&lt;br /&gt;
The FARICH PID system works using the results of the full GEANT4 simulation. The system output is the particle speed and number of photons.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Farich_res.png|The dependence of the particle β factor on the momentum in the FARICH PID system&lt;br /&gt;
&lt;br /&gt;
File:Farich_param.png|The dependence of the number of photoelectron on the βγ factor in the FARICH PID system for different angles (black - 10°, red - 30°, green - 45°)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Calorimeter ===&lt;br /&gt;
&lt;br /&gt;
The calorimeter resolution is &amp;lt;math&amp;gt; \sigma_E = e_0 \bigoplus \frac{e_1}{E} \bigoplus \frac{e_2}{\sqrt{E}} \bigoplus \frac{e_3}{E^{0.25}}&amp;lt;/math&amp;gt;, the coefficients (e0, e1 etc.) are taken from [https://indico.inp.nsk.su/event/13/session/10/contribution/17/material/slides/0.pdf the D. Epifanov presentation on Super C-Tau factory workshop in May 27, 2018].&lt;br /&gt;
&lt;br /&gt;
There are two cluster sizes to gammas / electrons and other particles.&lt;br /&gt;
&lt;br /&gt;
==== Reconstruction ====&lt;br /&gt;
The cross-linking data obtained by the track system and the calorimeter is implemented. This is implemented taking into account the geometric intersection of the calorimeter clusters.&lt;br /&gt;
 &lt;br /&gt;
The algorithm for the cross-linking data obtained by the track system and the calorimeter:&lt;br /&gt;
* union of geometrically intersecting calorimetric clusters&lt;br /&gt;
* finding a match between calorimetric clusters and tracks&lt;br /&gt;
* recalculating cluster characteristics (time, energy, cluster size, conversion point)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Res_eff.png‎|The reconstruction efficiency for different particle types&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Muon system ===&lt;br /&gt;
The muon system works using the results of a reconducted stand-alone simulation on G4BeamLine. The system is a cylinder of eight absorber and sensitive polystyrene layers. The absorber is iron.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:muon.png|The probability distribution for muons and pions to reach a certain layer in the muon system&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Output collection ==&lt;br /&gt;
&lt;br /&gt;
The output ROOT-file contains:&lt;br /&gt;
&lt;br /&gt;
* allGenParticles - MC particles&lt;br /&gt;
** pdgId&lt;br /&gt;
** charge&lt;br /&gt;
** vertex - x, y, and z coordinates&lt;br /&gt;
** p4 - momentum (px, py, pz) and mass&lt;br /&gt;
&lt;br /&gt;
* Particles - the particle characteristics after the parametric simulation &lt;br /&gt;
** pdgId&lt;br /&gt;
** charge&lt;br /&gt;
** vertex - x, y, z coordinates&lt;br /&gt;
** p4 - measured momentum (px, py, pz) and the most probability particle mass&lt;br /&gt;
** dedx&lt;br /&gt;
** dedx_err&lt;br /&gt;
** dncldx - cluster counting&lt;br /&gt;
** dedxPid&lt;br /&gt;
** dncldxPid&lt;br /&gt;
** farichPid&lt;br /&gt;
** muPid&lt;br /&gt;
&lt;br /&gt;
* TrackState - the helix characteristics (the track)&lt;br /&gt;
** phi&lt;br /&gt;
** theta&lt;br /&gt;
** qOverP&lt;br /&gt;
** d0&lt;br /&gt;
** z0&lt;br /&gt;
** referencePoint - x, y and z coordinates&lt;br /&gt;
&lt;br /&gt;
* CaloClusters&lt;br /&gt;
** energy&lt;br /&gt;
** time&lt;br /&gt;
** position - x, y and z coordinates of the calorimeter entry point&lt;br /&gt;
&lt;br /&gt;
* MuonHits&lt;br /&gt;
** layer - the last layer that registered a particle&lt;br /&gt;
&lt;br /&gt;
* FARICHHits&lt;br /&gt;
** cellId&lt;br /&gt;
** energy&lt;br /&gt;
** time&lt;br /&gt;
** beta&lt;br /&gt;
** beta_err&lt;br /&gt;
** nphe0&lt;br /&gt;
** nphe&lt;br /&gt;
&lt;br /&gt;
The more characteristics have intuitive names.&lt;br /&gt;
&lt;br /&gt;
= SctParSim (Python) =&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 SCTauSim,master,latest&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;br /&gt;
&lt;br /&gt;
= PAPAS (Old) =&lt;br /&gt;
&lt;br /&gt;
== About papas, heppy et cetra ==&lt;br /&gt;
&lt;br /&gt;
Particle propagation is done by geometry calculation.&lt;br /&gt;
To valid the calculation several different cases were plotted.&lt;br /&gt;
&lt;br /&gt;
[[File:Tof_test_9k.png|thumb|center|alt=Helix.|Helix.]]&lt;br /&gt;
&lt;br /&gt;
== Configure detector parameters ==&lt;br /&gt;
&lt;br /&gt;
The detector parameters can be changed via a configuration file ''CTauPapas.cfg'' placed in the main papas 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(s) should be separated by spaces.&lt;br /&gt;
Empty lines and lines beginning with # are ignored.&lt;br /&gt;
&lt;br /&gt;
In the example below the parameter at the first line is one number,&lt;br /&gt;
while the parameter at the second line is an array.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ecal_emin_barrel 0.05&lt;br /&gt;
&lt;br /&gt;
ecal_eres 1.34e-2 0.066e-2 0 0.82e-2&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The parameters can be given in any order.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configure detector parameters ==&lt;br /&gt;
&lt;br /&gt;
The file ''ctau_input_sim.txt'' contains two lines.&lt;br /&gt;
The first line is the path to a primary simulation file (see [[MC_Data_Sets|MC Data Sets]] page).&lt;br /&gt;
The second line is an integer number of events to be processed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== How to run papas ==&lt;br /&gt;
&lt;br /&gt;
Copy a directory with papas on stark the machine and go to this directory.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd&lt;br /&gt;
&lt;br /&gt;
cp -rf ~razuvaev/myheppy .&lt;br /&gt;
&lt;br /&gt;
cd myheppy&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There are a directory ''output'' for output files,&lt;br /&gt;
detector configuration file ''CTauPapas.cfg'',&lt;br /&gt;
file ''ctau_input_sim.txt'' with a path to the file with primary generator events,&lt;br /&gt;
and the folder ''heppy'' with heppy code itself.&lt;br /&gt;
Let's go into it and tune environment.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd heppy&lt;br /&gt;
&lt;br /&gt;
source init.sh&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now it is time to run papas.&lt;br /&gt;
You may be asked a question because the output directory is not empty.&lt;br /&gt;
So just input &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt; or clean the folder.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd test&lt;br /&gt;
&lt;br /&gt;
./heppy_loop.py ../../output/ ctau_cfg1.py&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If it don't want to run try &amp;lt;code&amp;gt;source ~razuvaev/.bashrc&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;source ../init.sh&amp;lt;/code&amp;gt; because it can be caused by the problem with environment variables.&lt;br /&gt;
&lt;br /&gt;
When papas simulation has been done one need to present papas output to a suitable form and also add initial generator information.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd ../../&lt;br /&gt;
&lt;br /&gt;
./txt2tree.py&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The output root tree is available in the file ''myheppy/output/txt2tree.root''.&lt;br /&gt;
&lt;br /&gt;
== Output tree ==&lt;br /&gt;
&lt;br /&gt;
The output tree contains branches which can be divided in several groups:&lt;br /&gt;
* reconstructed particle parameters;&lt;br /&gt;
* generated particle parameters;&lt;br /&gt;
* generated vertices;&lt;br /&gt;
* connection between reconstructed particles, generated particles and generated vertices.&lt;br /&gt;
&lt;br /&gt;
The table below presents branches and description of their content.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name&lt;br /&gt;
! Type&lt;br /&gt;
! Length&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Reconstructed particles&lt;br /&gt;
|-&lt;br /&gt;
| n&lt;br /&gt;
| int&lt;br /&gt;
| 1&lt;br /&gt;
| The number of reconstructed particles.&lt;br /&gt;
|-&lt;br /&gt;
| px&lt;br /&gt;
| float []&lt;br /&gt;
| n&lt;br /&gt;
| The reconstructed particle momentum: x coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| py&lt;br /&gt;
| float []&lt;br /&gt;
| n&lt;br /&gt;
| The reconstructed particle momentum: y coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| pz&lt;br /&gt;
| float []&lt;br /&gt;
| n&lt;br /&gt;
| The reconstructed particle momentum: z coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Generated particles&lt;br /&gt;
|-&lt;br /&gt;
| n0&lt;br /&gt;
| int&lt;br /&gt;
| 1&lt;br /&gt;
| The number of generated particles.&lt;br /&gt;
|-&lt;br /&gt;
| px0&lt;br /&gt;
| float []&lt;br /&gt;
| n0&lt;br /&gt;
| The generated particle momentum: x coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| py0&lt;br /&gt;
| float []&lt;br /&gt;
| n0&lt;br /&gt;
| The generated particle momentum: y coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| pz0&lt;br /&gt;
| float []&lt;br /&gt;
| n0&lt;br /&gt;
| The generated particle momentum: z coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Generated vertices&lt;br /&gt;
|-&lt;br /&gt;
| nv0&lt;br /&gt;
| int&lt;br /&gt;
| 1&lt;br /&gt;
| The number of generated vertices.&lt;br /&gt;
|-&lt;br /&gt;
| vx0&lt;br /&gt;
| float []&lt;br /&gt;
| nv0&lt;br /&gt;
| The generated vertex: x coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| vy0&lt;br /&gt;
| float []&lt;br /&gt;
| nv0&lt;br /&gt;
| The generated vertex: y coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| vz0&lt;br /&gt;
| float []&lt;br /&gt;
| nv0&lt;br /&gt;
| The generated vertex: z coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Links&lt;br /&gt;
|-&lt;br /&gt;
| recgen&lt;br /&gt;
| int []&lt;br /&gt;
| n&lt;br /&gt;
| Transform a reconstructed particle index to the generated particle index.&lt;br /&gt;
|-&lt;br /&gt;
| genver&lt;br /&gt;
| int []&lt;br /&gt;
| n0&lt;br /&gt;
| Transform a generated particle index to the generated vertex index.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Analysis example ==&lt;br /&gt;
&lt;br /&gt;
Here a short analysis example of&lt;br /&gt;
&amp;lt;math&amp;gt;D^0 \to K_S^0 \pi^+ \pi^-&amp;lt;/math&amp;gt;&lt;br /&gt;
is presented.&lt;br /&gt;
The things are performed with PyROOT.&lt;br /&gt;
&lt;br /&gt;
The data a taken from the available&lt;br /&gt;
[[MC_Data_Sets#Exclusive_samples|exclusive sample]].&lt;br /&gt;
&lt;br /&gt;
The code can be taken from github&lt;br /&gt;
[https://github.com/lbrl/sctau_py/blob/master/search_dkspipi.py]&lt;br /&gt;
or find at the stark cluster: &lt;br /&gt;
''/home/razuvaev/myheppy/search_dkspipi.py''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Dkspipi_mksmd0.png|alt=mksmd0.|&amp;lt;math&amp;gt;K_S^0&amp;lt;/math&amp;gt; mass vs &amp;lt;math&amp;gt;D^0&amp;lt;/math&amp;gt; mass.&lt;br /&gt;
File:Dkspipi_md0pd0.png|alt=md0pd0.|&amp;lt;math&amp;gt;D^0&amp;lt;/math&amp;gt; mass vs its momentum.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation</id>
		<title>Parametric simulation</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation"/>
				<updated>2021-11-23T14:37:25Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: /* Calorimeter */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Talks==&lt;br /&gt;
&lt;br /&gt;
* Software meeting 2018-06-29, Friday, [[File:sctau_papas_v2_20180629.pdf]]&lt;br /&gt;
* Workshop on future Super c-tau factories 2021-11-16 [https://indico.inp.nsk.su/event/62/contributions/2315/ Parametric simulation of the SCT detector]&lt;br /&gt;
&lt;br /&gt;
= SctParSim =&lt;br /&gt;
A parametric simulation is a tool to receive a detector response without detailed description of interaction of particles with matter.&lt;br /&gt;
&lt;br /&gt;
Implemented detector subsystems:&lt;br /&gt;
* drift chamber&lt;br /&gt;
* FARICH PID system&lt;br /&gt;
* calorimeter&lt;br /&gt;
* muon system&lt;br /&gt;
&lt;br /&gt;
The parametric simulation yields the detector response in the SCT EDM format thus allowing to analyze its result in the same manner as the result of the full simulation.&lt;br /&gt;
&lt;br /&gt;
How-to use the parametric simulation is demonstrated [https://ctd.inp.nsk.su/wiki/index.php/SCT_parametric_simulation here]&lt;br /&gt;
&lt;br /&gt;
== Detector configuration ==&lt;br /&gt;
&lt;br /&gt;
The detector parameters can be changed in the run script (see Configuration section).&lt;br /&gt;
The detector parameters and their default values can be viewed here.&lt;br /&gt;
&lt;br /&gt;
=== SctParSimAlg ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change parameter&lt;br /&gt;
! Description&lt;br /&gt;
! Default value &lt;br /&gt;
|-&lt;br /&gt;
| B&lt;br /&gt;
| Detector magnetic field&lt;br /&gt;
| 1.5&lt;br /&gt;
|-&lt;br /&gt;
| mostProbMass&lt;br /&gt;
| The mass of most probable particle&lt;br /&gt;
| 0.13957&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== TrackSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater&lt;br /&gt;
! Description&lt;br /&gt;
! Default value&lt;br /&gt;
|-&lt;br /&gt;
| trackRhoMin&lt;br /&gt;
| Inner radius of barrel tracker, m        &lt;br /&gt;
| 0.1 &lt;br /&gt;
|-&lt;br /&gt;
| trackRhoMax              &lt;br /&gt;
| Outer radius of barrel tracker, m        &lt;br /&gt;
| 0.8 &lt;br /&gt;
|-&lt;br /&gt;
| trackZMin                &lt;br /&gt;
| Inner z coordinate of endcup tracker, m  &lt;br /&gt;
| 0   &lt;br /&gt;
|-&lt;br /&gt;
| trackZMax                &lt;br /&gt;
| Outer z coordinate of endcup tracker, m  &lt;br /&gt;
| 1   &lt;br /&gt;
|- &lt;br /&gt;
| trackMinPt               &lt;br /&gt;
| Minimum momentum, GeV                    &lt;br /&gt;
|0.05 &lt;br /&gt;
|- &lt;br /&gt;
| trackPtProb              &lt;br /&gt;
| Registration probabilities for different momentum, {GeV, prob} &lt;br /&gt;
| {{0.1, 0.8}, {0.3, 0.9}, {1, 0.95), {10, 0.99}} &lt;br /&gt;
|-&lt;br /&gt;
| trackRadLen              &lt;br /&gt;
| Radiation length in the track system, m  &lt;br /&gt;
| 187 &lt;br /&gt;
|-&lt;br /&gt;
| trackResParPT            &lt;br /&gt;
| Parameterizaton parameters for xy projection &lt;br /&gt;
| 0.00212 &lt;br /&gt;
|-&lt;br /&gt;
| trackResParPZ            &lt;br /&gt;
| Parameterization parameters for z projection &lt;br /&gt;
| {0.001281, 0.00308} &lt;br /&gt;
|-&lt;br /&gt;
| trackLayerAx             &lt;br /&gt;
| The radius of layers anf the location radius of the anod layers, mm &lt;br /&gt;
| {{6.306, 217.306}, {6.644, 227.1}, {7.165, 246.906}, {6.564, 341.938}, {6.794, 352.06}, {7.14, 371.992}, {7.388, 382.95}, {6.651, 467.57}, {6.823, 477.718}, {6.968, 488.097}, {7.12, 498.701}, {7.274, 509.535}, {6.768, 636.322}, {6.898, 646.501}, {7.007, 656.957}, {7.121, 667.581}, {6.791, 750.730}, {6.902, 761.027}, {6.995, 771.472}, {7.091, 782.061}} &lt;br /&gt;
|-&lt;br /&gt;
| trackLayerSt            &lt;br /&gt;
| The radius of layers and the location radius of the stereo layers, mm &lt;br /&gt;
| {{6.473, 280.136}, {6.747, 290.136}, {7.182, 310.863}, {7.486, 321.938}, {6.603, 405.941}, {6.799, 416.04}, {7.104, 436.741}, {7.314, 447.606}, {6.741, 533.35}, {6.859, 543.615}, {7.026, 554.088, {7.161, 564.762}, {6.778, 584.801}, {6.919, 595.108}, {7.039, 605.606}, {7.163, 6169.289}, {6.746, 689.948}, {6.865, 700.185}, {7.041, 720.09}, {7.165, 730.775}} &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== FARICHSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| farichRhoMin             &lt;br /&gt;
| Inner radius of barrel FARICH system, m          &lt;br /&gt;
| 0.82    &lt;br /&gt;
|-&lt;br /&gt;
| farichRhoMax             &lt;br /&gt;
| Outer radius of barrel FARICH system, m          &lt;br /&gt;
| 0.9     &lt;br /&gt;
|-&lt;br /&gt;
| farichZMin               &lt;br /&gt;
| Inner z coordinate of endcup FARICH system, m    &lt;br /&gt;
| 1.02    &lt;br /&gt;
|-&lt;br /&gt;
| farichZMax               &lt;br /&gt;
| Outer z coordinate of encup FARICH system, m     &lt;br /&gt;
| 1.273   &lt;br /&gt;
|-&lt;br /&gt;
| farichHoleR              &lt;br /&gt;
| Hole radius of FARICH system                     &lt;br /&gt;
| 0.3     &lt;br /&gt;
|-&lt;br /&gt;
| parSimFarichFileName     &lt;br /&gt;
| The path to the file with response histograms of FARICH &lt;br /&gt;
| ./pi_ms_f1_mppc2_px3_d200_mla4_graph2d.root &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== CaloSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| caloRhoMin               &lt;br /&gt;
| Inner radius of barrel calorimeter, m            &lt;br /&gt;
| 1.09    &lt;br /&gt;
|-&lt;br /&gt;
| caloRhoMax               &lt;br /&gt;
| Outer radius of barrel calorimeter, m            &lt;br /&gt;
| 1.55    &lt;br /&gt;
|-&lt;br /&gt;
| caloZMin                 &lt;br /&gt;
| Inner z coordinate of endcup calorimeter, m      &lt;br /&gt;
| 1.293   &lt;br /&gt;
|-&lt;br /&gt;
| caloZMax                 &lt;br /&gt;
| Outer z coordinate of endcup calorimeter, m      &lt;br /&gt;
| 1.86   &lt;br /&gt;
|-&lt;br /&gt;
| caloCosthmax             &lt;br /&gt;
| Maximum cosine                                   &lt;br /&gt;
| 0.9     &lt;br /&gt;
|-&lt;br /&gt;
| caloClSize               &lt;br /&gt;
| Calorimeter cluster size, m                      &lt;br /&gt;
| 0.045   &lt;br /&gt;
|-&lt;br /&gt;
| caloClSizeEGamma         &lt;br /&gt;
| Calorimeter cluster size for gamma, m            &lt;br /&gt;
| 0.15   &lt;br /&gt;
|-&lt;br /&gt;
| caloEMinBarrel           &lt;br /&gt;
| Minimal energy, GeV                              &lt;br /&gt;
| 0.015   &lt;br /&gt;
|-&lt;br /&gt;
| caloEMinEndcup           &lt;br /&gt;
| Minimal energy, GeV                              &lt;br /&gt;
| 0.015   &lt;br /&gt;
|-&lt;br /&gt;
| caloResPar               &lt;br /&gt;
| Parameterization parameters                      &lt;br /&gt;
| {1.34e-2, 0.066e-2, 0.0, 0.82e-2}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MuonSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| muonRhoMin               &lt;br /&gt;
| Inner radius of barrel muon system, m            &lt;br /&gt;
| 1.87    &lt;br /&gt;
|-&lt;br /&gt;
| muonRhoMax               &lt;br /&gt;
| Outer radius of barrel muon system, m            &lt;br /&gt;
| 2.15    &lt;br /&gt;
|-&lt;br /&gt;
| muonZMin                 &lt;br /&gt;
| Inner z coordinate of endcup muon system, m      &lt;br /&gt;
| 1.88    &lt;br /&gt;
|-&lt;br /&gt;
| muonZMax                 &lt;br /&gt;
| Outer z coordinate of endcup muon system, m      &lt;br /&gt;
| 2.16    &lt;br /&gt;
|-&lt;br /&gt;
| parSimMuonFileNameMu     &lt;br /&gt;
| The path to the file with response histograms of muon system (muon) &lt;br /&gt;
| ./g4beamline_mu_plus_100k_parse.root &lt;br /&gt;
|-&lt;br /&gt;
| parSimMuonFileNamePi     &lt;br /&gt;
| The path to the file with response histograms of muon system (pion) &lt;br /&gt;
| ./g4beamline_pi_plus_100k_parse.root &lt;br /&gt;
|} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Parameterization ==&lt;br /&gt;
=== Drift chamber ===&lt;br /&gt;
&lt;br /&gt;
The track resolution is described [https://ctd.inp.nsk.su/wiki/index.php/Drift_chamber here].&lt;br /&gt;
&lt;br /&gt;
The parametric simulation has two options in the tracker to the particle identification: an ionisation clusters counting (dNcl/dx) and dE/dx. The model of calculation the specific number of ionization clusters is taken from a TraPID option by F. Gracagnolo ([https://indico.lal.in2p3.fr/event/4902/contributions/17030/attachments/13603/16389/SCTFDrift_Chamber.pdf The presentation on &amp;quot;Joint Workshop on Future tau-charm factory&amp;quot; in December 4--7, 2018]). An energy losing is calculated using the resolution model from BaBar experiment. The The &amp;lt;math&amp;gt;\sigma \left( \frac{dE}{dx} \right)&amp;lt;/math&amp;gt; is parameterized as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\sigma \left( \frac{dE}{dx} \right) = \alpha \left( \frac{dE}{dx} \right) ^\beta dx^\gamma&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where α, β, γ is tuned on BaBar data.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Tracker_res.png|Momentum resolution as a function of momentum depending on polar angle for π+&lt;br /&gt;
&lt;br /&gt;
File:DEdx.png|The dependence of the dE/dx on the momentum in the tracker system&lt;br /&gt;
&lt;br /&gt;
File:cl_count.png|The dependence of the specific number of ionization clusters on the momentum in the tracker system&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== FARICH PID system ===&lt;br /&gt;
&lt;br /&gt;
The FARICH PID system works using the results of the full GEANT4 simulation. The system output is the particle speed and number of photons.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Farich_res.png|The dependence of the particle β factor on the momentum in the FARICH PID system&lt;br /&gt;
&lt;br /&gt;
File:Farich_param.png|The dependence of the number of photoelectron on the βγ factor in the FARICH PID system for different angles (black - 10°, red - 30°, green - 45°)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Calorimeter ===&lt;br /&gt;
&lt;br /&gt;
The calorimeter resolution is &amp;lt;math&amp;gt; \sigma_E = e_0 \bigoplus \frac{e_1}{E} \bigoplus \frac{e_2}{\sqrt{E}} \bigoplus \frac{e_3}{E^{0.25}}&amp;lt;/math&amp;gt;, the coefficients (e0, e1 etc.) are taken from [https://indico.inp.nsk.su/event/13/session/10/contribution/17/material/slides/0.pdf the D. Epifanov presentation on Super C-Tau factory workshop in May 27, 2018].&lt;br /&gt;
&lt;br /&gt;
There are two cluster sizes to gammas / electrons and other particles.&lt;br /&gt;
&lt;br /&gt;
==== Reconstruction ====&lt;br /&gt;
The cross-linking data obtained by the track system and the calorimeter is implemented. This is implemented taking into account the geometric intersection of the calorimeter clusters.&lt;br /&gt;
 &lt;br /&gt;
The algorithm for the cross-linking data obtained by the track system and the calorimeter:&lt;br /&gt;
* union of geometrically intersecting calorimetric clusters&lt;br /&gt;
* finding a match between calorimetric clusters and tracks&lt;br /&gt;
* recalculating cluster characteristics (time, energy, cluster size, conversion point)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Res_eff.png‎|The reconstruction efficiency for different particle types&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Muon system ===&lt;br /&gt;
The muon system works using the results of a reconducted stand-alone simulation on G4BeamLine. The system is a cylinder of eight absorber and sensitive polystyrene layers. The absorber is iron.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:muon.png|The probability distribution for muons and pions to reach a certain layer in the muon system&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Output collection ==&lt;br /&gt;
&lt;br /&gt;
The output ROOT-file contains:&lt;br /&gt;
&lt;br /&gt;
* allGenParticles - MC particles&lt;br /&gt;
** pdgId&lt;br /&gt;
** charge&lt;br /&gt;
** vertex - x, y, and z coordinates&lt;br /&gt;
** p4 - momentum (px, py, pz) and mass&lt;br /&gt;
&lt;br /&gt;
* Particles - the particle characteristics after the parametric simulation &lt;br /&gt;
** pdgId&lt;br /&gt;
** charge&lt;br /&gt;
** vertex - x, y, z coordinates&lt;br /&gt;
** p4 - measured momentum (px, py, pz) and the most probability particle mass&lt;br /&gt;
** dedx&lt;br /&gt;
** dedx_err&lt;br /&gt;
** dncldx - cluster counting&lt;br /&gt;
** dedxPid&lt;br /&gt;
** dncldxPid&lt;br /&gt;
** farichPid&lt;br /&gt;
** muPid&lt;br /&gt;
&lt;br /&gt;
* TrackState - the helix characteristics (the track)&lt;br /&gt;
** phi&lt;br /&gt;
** theta&lt;br /&gt;
** qOverP&lt;br /&gt;
** d0&lt;br /&gt;
** z0&lt;br /&gt;
** referencePoint - x, y and z coordinates&lt;br /&gt;
&lt;br /&gt;
* CaloClusters&lt;br /&gt;
** energy&lt;br /&gt;
** time&lt;br /&gt;
** position - x, y and z coordinates of the calorimeter entry point&lt;br /&gt;
&lt;br /&gt;
* MuonHits&lt;br /&gt;
** layer - the last layer that registered a particle&lt;br /&gt;
&lt;br /&gt;
* FARICHHits&lt;br /&gt;
** cellId&lt;br /&gt;
** energy&lt;br /&gt;
** time&lt;br /&gt;
** beta&lt;br /&gt;
** beta_err&lt;br /&gt;
** nphe0&lt;br /&gt;
** nphe&lt;br /&gt;
&lt;br /&gt;
The more characteristics have intuitive names.&lt;br /&gt;
&lt;br /&gt;
= SctParSim (Python) =&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 SCTauSim,master,latest&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;br /&gt;
&lt;br /&gt;
= PAPAS (Old) =&lt;br /&gt;
&lt;br /&gt;
== About papas, heppy et cetra ==&lt;br /&gt;
&lt;br /&gt;
Particle propagation is done by geometry calculation.&lt;br /&gt;
To valid the calculation several different cases were plotted.&lt;br /&gt;
&lt;br /&gt;
[[File:Tof_test_9k.png|thumb|center|alt=Helix.|Helix.]]&lt;br /&gt;
&lt;br /&gt;
== Configure detector parameters ==&lt;br /&gt;
&lt;br /&gt;
The detector parameters can be changed via a configuration file ''CTauPapas.cfg'' placed in the main papas 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(s) should be separated by spaces.&lt;br /&gt;
Empty lines and lines beginning with # are ignored.&lt;br /&gt;
&lt;br /&gt;
In the example below the parameter at the first line is one number,&lt;br /&gt;
while the parameter at the second line is an array.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ecal_emin_barrel 0.05&lt;br /&gt;
&lt;br /&gt;
ecal_eres 1.34e-2 0.066e-2 0 0.82e-2&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The parameters can be given in any order.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configure detector parameters ==&lt;br /&gt;
&lt;br /&gt;
The file ''ctau_input_sim.txt'' contains two lines.&lt;br /&gt;
The first line is the path to a primary simulation file (see [[MC_Data_Sets|MC Data Sets]] page).&lt;br /&gt;
The second line is an integer number of events to be processed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== How to run papas ==&lt;br /&gt;
&lt;br /&gt;
Copy a directory with papas on stark the machine and go to this directory.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd&lt;br /&gt;
&lt;br /&gt;
cp -rf ~razuvaev/myheppy .&lt;br /&gt;
&lt;br /&gt;
cd myheppy&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There are a directory ''output'' for output files,&lt;br /&gt;
detector configuration file ''CTauPapas.cfg'',&lt;br /&gt;
file ''ctau_input_sim.txt'' with a path to the file with primary generator events,&lt;br /&gt;
and the folder ''heppy'' with heppy code itself.&lt;br /&gt;
Let's go into it and tune environment.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd heppy&lt;br /&gt;
&lt;br /&gt;
source init.sh&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now it is time to run papas.&lt;br /&gt;
You may be asked a question because the output directory is not empty.&lt;br /&gt;
So just input &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt; or clean the folder.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd test&lt;br /&gt;
&lt;br /&gt;
./heppy_loop.py ../../output/ ctau_cfg1.py&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If it don't want to run try &amp;lt;code&amp;gt;source ~razuvaev/.bashrc&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;source ../init.sh&amp;lt;/code&amp;gt; because it can be caused by the problem with environment variables.&lt;br /&gt;
&lt;br /&gt;
When papas simulation has been done one need to present papas output to a suitable form and also add initial generator information.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd ../../&lt;br /&gt;
&lt;br /&gt;
./txt2tree.py&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The output root tree is available in the file ''myheppy/output/txt2tree.root''.&lt;br /&gt;
&lt;br /&gt;
== Output tree ==&lt;br /&gt;
&lt;br /&gt;
The output tree contains branches which can be divided in several groups:&lt;br /&gt;
* reconstructed particle parameters;&lt;br /&gt;
* generated particle parameters;&lt;br /&gt;
* generated vertices;&lt;br /&gt;
* connection between reconstructed particles, generated particles and generated vertices.&lt;br /&gt;
&lt;br /&gt;
The table below presents branches and description of their content.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name&lt;br /&gt;
! Type&lt;br /&gt;
! Length&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Reconstructed particles&lt;br /&gt;
|-&lt;br /&gt;
| n&lt;br /&gt;
| int&lt;br /&gt;
| 1&lt;br /&gt;
| The number of reconstructed particles.&lt;br /&gt;
|-&lt;br /&gt;
| px&lt;br /&gt;
| float []&lt;br /&gt;
| n&lt;br /&gt;
| The reconstructed particle momentum: x coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| py&lt;br /&gt;
| float []&lt;br /&gt;
| n&lt;br /&gt;
| The reconstructed particle momentum: y coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| pz&lt;br /&gt;
| float []&lt;br /&gt;
| n&lt;br /&gt;
| The reconstructed particle momentum: z coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Generated particles&lt;br /&gt;
|-&lt;br /&gt;
| n0&lt;br /&gt;
| int&lt;br /&gt;
| 1&lt;br /&gt;
| The number of generated particles.&lt;br /&gt;
|-&lt;br /&gt;
| px0&lt;br /&gt;
| float []&lt;br /&gt;
| n0&lt;br /&gt;
| The generated particle momentum: x coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| py0&lt;br /&gt;
| float []&lt;br /&gt;
| n0&lt;br /&gt;
| The generated particle momentum: y coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| pz0&lt;br /&gt;
| float []&lt;br /&gt;
| n0&lt;br /&gt;
| The generated particle momentum: z coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Generated vertices&lt;br /&gt;
|-&lt;br /&gt;
| nv0&lt;br /&gt;
| int&lt;br /&gt;
| 1&lt;br /&gt;
| The number of generated vertices.&lt;br /&gt;
|-&lt;br /&gt;
| vx0&lt;br /&gt;
| float []&lt;br /&gt;
| nv0&lt;br /&gt;
| The generated vertex: x coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| vy0&lt;br /&gt;
| float []&lt;br /&gt;
| nv0&lt;br /&gt;
| The generated vertex: y coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| vz0&lt;br /&gt;
| float []&lt;br /&gt;
| nv0&lt;br /&gt;
| The generated vertex: z coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Links&lt;br /&gt;
|-&lt;br /&gt;
| recgen&lt;br /&gt;
| int []&lt;br /&gt;
| n&lt;br /&gt;
| Transform a reconstructed particle index to the generated particle index.&lt;br /&gt;
|-&lt;br /&gt;
| genver&lt;br /&gt;
| int []&lt;br /&gt;
| n0&lt;br /&gt;
| Transform a generated particle index to the generated vertex index.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Analysis example ==&lt;br /&gt;
&lt;br /&gt;
Here a short analysis example of&lt;br /&gt;
&amp;lt;math&amp;gt;D^0 \to K_S^0 \pi^+ \pi^-&amp;lt;/math&amp;gt;&lt;br /&gt;
is presented.&lt;br /&gt;
The things are performed with PyROOT.&lt;br /&gt;
&lt;br /&gt;
The data a taken from the available&lt;br /&gt;
[[MC_Data_Sets#Exclusive_samples|exclusive sample]].&lt;br /&gt;
&lt;br /&gt;
The code can be taken from github&lt;br /&gt;
[https://github.com/lbrl/sctau_py/blob/master/search_dkspipi.py]&lt;br /&gt;
or find at the stark cluster: &lt;br /&gt;
''/home/razuvaev/myheppy/search_dkspipi.py''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Dkspipi_mksmd0.png|alt=mksmd0.|&amp;lt;math&amp;gt;K_S^0&amp;lt;/math&amp;gt; mass vs &amp;lt;math&amp;gt;D^0&amp;lt;/math&amp;gt; mass.&lt;br /&gt;
File:Dkspipi_md0pd0.png|alt=md0pd0.|&amp;lt;math&amp;gt;D^0&amp;lt;/math&amp;gt; mass vs its momentum.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation</id>
		<title>Parametric simulation</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation"/>
				<updated>2021-11-23T14:34:50Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: /* Drift chamber */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Talks==&lt;br /&gt;
&lt;br /&gt;
* Software meeting 2018-06-29, Friday, [[File:sctau_papas_v2_20180629.pdf]]&lt;br /&gt;
* Workshop on future Super c-tau factories 2021-11-16 [https://indico.inp.nsk.su/event/62/contributions/2315/ Parametric simulation of the SCT detector]&lt;br /&gt;
&lt;br /&gt;
= SctParSim =&lt;br /&gt;
A parametric simulation is a tool to receive a detector response without detailed description of interaction of particles with matter.&lt;br /&gt;
&lt;br /&gt;
Implemented detector subsystems:&lt;br /&gt;
* drift chamber&lt;br /&gt;
* FARICH PID system&lt;br /&gt;
* calorimeter&lt;br /&gt;
* muon system&lt;br /&gt;
&lt;br /&gt;
The parametric simulation yields the detector response in the SCT EDM format thus allowing to analyze its result in the same manner as the result of the full simulation.&lt;br /&gt;
&lt;br /&gt;
How-to use the parametric simulation is demonstrated [https://ctd.inp.nsk.su/wiki/index.php/SCT_parametric_simulation here]&lt;br /&gt;
&lt;br /&gt;
== Detector configuration ==&lt;br /&gt;
&lt;br /&gt;
The detector parameters can be changed in the run script (see Configuration section).&lt;br /&gt;
The detector parameters and their default values can be viewed here.&lt;br /&gt;
&lt;br /&gt;
=== SctParSimAlg ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change parameter&lt;br /&gt;
! Description&lt;br /&gt;
! Default value &lt;br /&gt;
|-&lt;br /&gt;
| B&lt;br /&gt;
| Detector magnetic field&lt;br /&gt;
| 1.5&lt;br /&gt;
|-&lt;br /&gt;
| mostProbMass&lt;br /&gt;
| The mass of most probable particle&lt;br /&gt;
| 0.13957&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== TrackSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater&lt;br /&gt;
! Description&lt;br /&gt;
! Default value&lt;br /&gt;
|-&lt;br /&gt;
| trackRhoMin&lt;br /&gt;
| Inner radius of barrel tracker, m        &lt;br /&gt;
| 0.1 &lt;br /&gt;
|-&lt;br /&gt;
| trackRhoMax              &lt;br /&gt;
| Outer radius of barrel tracker, m        &lt;br /&gt;
| 0.8 &lt;br /&gt;
|-&lt;br /&gt;
| trackZMin                &lt;br /&gt;
| Inner z coordinate of endcup tracker, m  &lt;br /&gt;
| 0   &lt;br /&gt;
|-&lt;br /&gt;
| trackZMax                &lt;br /&gt;
| Outer z coordinate of endcup tracker, m  &lt;br /&gt;
| 1   &lt;br /&gt;
|- &lt;br /&gt;
| trackMinPt               &lt;br /&gt;
| Minimum momentum, GeV                    &lt;br /&gt;
|0.05 &lt;br /&gt;
|- &lt;br /&gt;
| trackPtProb              &lt;br /&gt;
| Registration probabilities for different momentum, {GeV, prob} &lt;br /&gt;
| {{0.1, 0.8}, {0.3, 0.9}, {1, 0.95), {10, 0.99}} &lt;br /&gt;
|-&lt;br /&gt;
| trackRadLen              &lt;br /&gt;
| Radiation length in the track system, m  &lt;br /&gt;
| 187 &lt;br /&gt;
|-&lt;br /&gt;
| trackResParPT            &lt;br /&gt;
| Parameterizaton parameters for xy projection &lt;br /&gt;
| 0.00212 &lt;br /&gt;
|-&lt;br /&gt;
| trackResParPZ            &lt;br /&gt;
| Parameterization parameters for z projection &lt;br /&gt;
| {0.001281, 0.00308} &lt;br /&gt;
|-&lt;br /&gt;
| trackLayerAx             &lt;br /&gt;
| The radius of layers anf the location radius of the anod layers, mm &lt;br /&gt;
| {{6.306, 217.306}, {6.644, 227.1}, {7.165, 246.906}, {6.564, 341.938}, {6.794, 352.06}, {7.14, 371.992}, {7.388, 382.95}, {6.651, 467.57}, {6.823, 477.718}, {6.968, 488.097}, {7.12, 498.701}, {7.274, 509.535}, {6.768, 636.322}, {6.898, 646.501}, {7.007, 656.957}, {7.121, 667.581}, {6.791, 750.730}, {6.902, 761.027}, {6.995, 771.472}, {7.091, 782.061}} &lt;br /&gt;
|-&lt;br /&gt;
| trackLayerSt            &lt;br /&gt;
| The radius of layers and the location radius of the stereo layers, mm &lt;br /&gt;
| {{6.473, 280.136}, {6.747, 290.136}, {7.182, 310.863}, {7.486, 321.938}, {6.603, 405.941}, {6.799, 416.04}, {7.104, 436.741}, {7.314, 447.606}, {6.741, 533.35}, {6.859, 543.615}, {7.026, 554.088, {7.161, 564.762}, {6.778, 584.801}, {6.919, 595.108}, {7.039, 605.606}, {7.163, 6169.289}, {6.746, 689.948}, {6.865, 700.185}, {7.041, 720.09}, {7.165, 730.775}} &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== FARICHSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| farichRhoMin             &lt;br /&gt;
| Inner radius of barrel FARICH system, m          &lt;br /&gt;
| 0.82    &lt;br /&gt;
|-&lt;br /&gt;
| farichRhoMax             &lt;br /&gt;
| Outer radius of barrel FARICH system, m          &lt;br /&gt;
| 0.9     &lt;br /&gt;
|-&lt;br /&gt;
| farichZMin               &lt;br /&gt;
| Inner z coordinate of endcup FARICH system, m    &lt;br /&gt;
| 1.02    &lt;br /&gt;
|-&lt;br /&gt;
| farichZMax               &lt;br /&gt;
| Outer z coordinate of encup FARICH system, m     &lt;br /&gt;
| 1.273   &lt;br /&gt;
|-&lt;br /&gt;
| farichHoleR              &lt;br /&gt;
| Hole radius of FARICH system                     &lt;br /&gt;
| 0.3     &lt;br /&gt;
|-&lt;br /&gt;
| parSimFarichFileName     &lt;br /&gt;
| The path to the file with response histograms of FARICH &lt;br /&gt;
| ./pi_ms_f1_mppc2_px3_d200_mla4_graph2d.root &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== CaloSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| caloRhoMin               &lt;br /&gt;
| Inner radius of barrel calorimeter, m            &lt;br /&gt;
| 1.09    &lt;br /&gt;
|-&lt;br /&gt;
| caloRhoMax               &lt;br /&gt;
| Outer radius of barrel calorimeter, m            &lt;br /&gt;
| 1.55    &lt;br /&gt;
|-&lt;br /&gt;
| caloZMin                 &lt;br /&gt;
| Inner z coordinate of endcup calorimeter, m      &lt;br /&gt;
| 1.293   &lt;br /&gt;
|-&lt;br /&gt;
| caloZMax                 &lt;br /&gt;
| Outer z coordinate of endcup calorimeter, m      &lt;br /&gt;
| 1.86   &lt;br /&gt;
|-&lt;br /&gt;
| caloCosthmax             &lt;br /&gt;
| Maximum cosine                                   &lt;br /&gt;
| 0.9     &lt;br /&gt;
|-&lt;br /&gt;
| caloClSize               &lt;br /&gt;
| Calorimeter cluster size, m                      &lt;br /&gt;
| 0.045   &lt;br /&gt;
|-&lt;br /&gt;
| caloClSizeEGamma         &lt;br /&gt;
| Calorimeter cluster size for gamma, m            &lt;br /&gt;
| 0.15   &lt;br /&gt;
|-&lt;br /&gt;
| caloEMinBarrel           &lt;br /&gt;
| Minimal energy, GeV                              &lt;br /&gt;
| 0.015   &lt;br /&gt;
|-&lt;br /&gt;
| caloEMinEndcup           &lt;br /&gt;
| Minimal energy, GeV                              &lt;br /&gt;
| 0.015   &lt;br /&gt;
|-&lt;br /&gt;
| caloResPar               &lt;br /&gt;
| Parameterization parameters                      &lt;br /&gt;
| {1.34e-2, 0.066e-2, 0.0, 0.82e-2}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MuonSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| muonRhoMin               &lt;br /&gt;
| Inner radius of barrel muon system, m            &lt;br /&gt;
| 1.87    &lt;br /&gt;
|-&lt;br /&gt;
| muonRhoMax               &lt;br /&gt;
| Outer radius of barrel muon system, m            &lt;br /&gt;
| 2.15    &lt;br /&gt;
|-&lt;br /&gt;
| muonZMin                 &lt;br /&gt;
| Inner z coordinate of endcup muon system, m      &lt;br /&gt;
| 1.88    &lt;br /&gt;
|-&lt;br /&gt;
| muonZMax                 &lt;br /&gt;
| Outer z coordinate of endcup muon system, m      &lt;br /&gt;
| 2.16    &lt;br /&gt;
|-&lt;br /&gt;
| parSimMuonFileNameMu     &lt;br /&gt;
| The path to the file with response histograms of muon system (muon) &lt;br /&gt;
| ./g4beamline_mu_plus_100k_parse.root &lt;br /&gt;
|-&lt;br /&gt;
| parSimMuonFileNamePi     &lt;br /&gt;
| The path to the file with response histograms of muon system (pion) &lt;br /&gt;
| ./g4beamline_pi_plus_100k_parse.root &lt;br /&gt;
|} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Parameterization ==&lt;br /&gt;
=== Drift chamber ===&lt;br /&gt;
&lt;br /&gt;
The track resolution is described [https://ctd.inp.nsk.su/wiki/index.php/Drift_chamber here].&lt;br /&gt;
&lt;br /&gt;
The parametric simulation has two options in the tracker to the particle identification: an ionisation clusters counting (dNcl/dx) and dE/dx. The model of calculation the specific number of ionization clusters is taken from a TraPID option by F. Gracagnolo ([https://indico.lal.in2p3.fr/event/4902/contributions/17030/attachments/13603/16389/SCTFDrift_Chamber.pdf The presentation on &amp;quot;Joint Workshop on Future tau-charm factory&amp;quot; in December 4--7, 2018]). An energy losing is calculated using the resolution model from BaBar experiment. The The &amp;lt;math&amp;gt;\sigma \left( \frac{dE}{dx} \right)&amp;lt;/math&amp;gt; is parameterized as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\sigma \left( \frac{dE}{dx} \right) = \alpha \left( \frac{dE}{dx} \right) ^\beta dx^\gamma&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where α, β, γ is tuned on BaBar data.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Tracker_res.png|Momentum resolution as a function of momentum depending on polar angle for π+&lt;br /&gt;
&lt;br /&gt;
File:DEdx.png|The dependence of the dE/dx on the momentum in the tracker system&lt;br /&gt;
&lt;br /&gt;
File:cl_count.png|The dependence of the specific number of ionization clusters on the momentum in the tracker system&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== FARICH PID system ===&lt;br /&gt;
&lt;br /&gt;
The FARICH PID system works using the results of the full GEANT4 simulation. The system output is the particle speed and number of photons.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Farich_res.png|The dependence of the particle β factor on the momentum in the FARICH PID system&lt;br /&gt;
&lt;br /&gt;
File:Farich_param.png|The dependence of the number of photoelectron on the βγ factor in the FARICH PID system for different angles (black - 10°, red - 30°, green - 45°)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Calorimeter ===&lt;br /&gt;
&lt;br /&gt;
The calorimeter resolution is sigma_E = e0  + e1 / E + e2 / sqrt(E) + e3 / E^0.25, the coefficients (e0, e1 etc.) are taken from [https://indico.inp.nsk.su/event/13/session/10/contribution/17/material/slides/0.pdf the D. Epifanov presentation on Super C-Tau factory workshop in May 27, 2018].&lt;br /&gt;
&lt;br /&gt;
There are two cluster sizes to gammas / electrons and other particles.&lt;br /&gt;
&lt;br /&gt;
==== Reconstruction ====&lt;br /&gt;
The cross-linking data obtained by the track system and the calorimeter is implemented. This is implemented taking into account the geometric intersection of the calorimeter clusters.&lt;br /&gt;
 &lt;br /&gt;
The algorithm for the cross-linking data obtained by the track system and the calorimeter:&lt;br /&gt;
* union of geometrically intersecting calorimetric clusters&lt;br /&gt;
* finding a match between calorimetric clusters and tracks&lt;br /&gt;
* recalculating cluster characteristics (time, energy, cluster size, conversion point)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Res_eff.png‎|The reconstruction efficiency for different particle types&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Muon system ===&lt;br /&gt;
The muon system works using the results of a reconducted stand-alone simulation on G4BeamLine. The system is a cylinder of eight absorber and sensitive polystyrene layers. The absorber is iron.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:muon.png|The probability distribution for muons and pions to reach a certain layer in the muon system&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Output collection ==&lt;br /&gt;
&lt;br /&gt;
The output ROOT-file contains:&lt;br /&gt;
&lt;br /&gt;
* allGenParticles - MC particles&lt;br /&gt;
** pdgId&lt;br /&gt;
** charge&lt;br /&gt;
** vertex - x, y, and z coordinates&lt;br /&gt;
** p4 - momentum (px, py, pz) and mass&lt;br /&gt;
&lt;br /&gt;
* Particles - the particle characteristics after the parametric simulation &lt;br /&gt;
** pdgId&lt;br /&gt;
** charge&lt;br /&gt;
** vertex - x, y, z coordinates&lt;br /&gt;
** p4 - measured momentum (px, py, pz) and the most probability particle mass&lt;br /&gt;
** dedx&lt;br /&gt;
** dedx_err&lt;br /&gt;
** dncldx - cluster counting&lt;br /&gt;
** dedxPid&lt;br /&gt;
** dncldxPid&lt;br /&gt;
** farichPid&lt;br /&gt;
** muPid&lt;br /&gt;
&lt;br /&gt;
* TrackState - the helix characteristics (the track)&lt;br /&gt;
** phi&lt;br /&gt;
** theta&lt;br /&gt;
** qOverP&lt;br /&gt;
** d0&lt;br /&gt;
** z0&lt;br /&gt;
** referencePoint - x, y and z coordinates&lt;br /&gt;
&lt;br /&gt;
* CaloClusters&lt;br /&gt;
** energy&lt;br /&gt;
** time&lt;br /&gt;
** position - x, y and z coordinates of the calorimeter entry point&lt;br /&gt;
&lt;br /&gt;
* MuonHits&lt;br /&gt;
** layer - the last layer that registered a particle&lt;br /&gt;
&lt;br /&gt;
* FARICHHits&lt;br /&gt;
** cellId&lt;br /&gt;
** energy&lt;br /&gt;
** time&lt;br /&gt;
** beta&lt;br /&gt;
** beta_err&lt;br /&gt;
** nphe0&lt;br /&gt;
** nphe&lt;br /&gt;
&lt;br /&gt;
The more characteristics have intuitive names.&lt;br /&gt;
&lt;br /&gt;
= SctParSim (Python) =&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 SCTauSim,master,latest&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;br /&gt;
&lt;br /&gt;
= PAPAS (Old) =&lt;br /&gt;
&lt;br /&gt;
== About papas, heppy et cetra ==&lt;br /&gt;
&lt;br /&gt;
Particle propagation is done by geometry calculation.&lt;br /&gt;
To valid the calculation several different cases were plotted.&lt;br /&gt;
&lt;br /&gt;
[[File:Tof_test_9k.png|thumb|center|alt=Helix.|Helix.]]&lt;br /&gt;
&lt;br /&gt;
== Configure detector parameters ==&lt;br /&gt;
&lt;br /&gt;
The detector parameters can be changed via a configuration file ''CTauPapas.cfg'' placed in the main papas 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(s) should be separated by spaces.&lt;br /&gt;
Empty lines and lines beginning with # are ignored.&lt;br /&gt;
&lt;br /&gt;
In the example below the parameter at the first line is one number,&lt;br /&gt;
while the parameter at the second line is an array.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ecal_emin_barrel 0.05&lt;br /&gt;
&lt;br /&gt;
ecal_eres 1.34e-2 0.066e-2 0 0.82e-2&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The parameters can be given in any order.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configure detector parameters ==&lt;br /&gt;
&lt;br /&gt;
The file ''ctau_input_sim.txt'' contains two lines.&lt;br /&gt;
The first line is the path to a primary simulation file (see [[MC_Data_Sets|MC Data Sets]] page).&lt;br /&gt;
The second line is an integer number of events to be processed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== How to run papas ==&lt;br /&gt;
&lt;br /&gt;
Copy a directory with papas on stark the machine and go to this directory.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd&lt;br /&gt;
&lt;br /&gt;
cp -rf ~razuvaev/myheppy .&lt;br /&gt;
&lt;br /&gt;
cd myheppy&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There are a directory ''output'' for output files,&lt;br /&gt;
detector configuration file ''CTauPapas.cfg'',&lt;br /&gt;
file ''ctau_input_sim.txt'' with a path to the file with primary generator events,&lt;br /&gt;
and the folder ''heppy'' with heppy code itself.&lt;br /&gt;
Let's go into it and tune environment.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd heppy&lt;br /&gt;
&lt;br /&gt;
source init.sh&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now it is time to run papas.&lt;br /&gt;
You may be asked a question because the output directory is not empty.&lt;br /&gt;
So just input &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt; or clean the folder.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd test&lt;br /&gt;
&lt;br /&gt;
./heppy_loop.py ../../output/ ctau_cfg1.py&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If it don't want to run try &amp;lt;code&amp;gt;source ~razuvaev/.bashrc&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;source ../init.sh&amp;lt;/code&amp;gt; because it can be caused by the problem with environment variables.&lt;br /&gt;
&lt;br /&gt;
When papas simulation has been done one need to present papas output to a suitable form and also add initial generator information.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd ../../&lt;br /&gt;
&lt;br /&gt;
./txt2tree.py&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The output root tree is available in the file ''myheppy/output/txt2tree.root''.&lt;br /&gt;
&lt;br /&gt;
== Output tree ==&lt;br /&gt;
&lt;br /&gt;
The output tree contains branches which can be divided in several groups:&lt;br /&gt;
* reconstructed particle parameters;&lt;br /&gt;
* generated particle parameters;&lt;br /&gt;
* generated vertices;&lt;br /&gt;
* connection between reconstructed particles, generated particles and generated vertices.&lt;br /&gt;
&lt;br /&gt;
The table below presents branches and description of their content.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name&lt;br /&gt;
! Type&lt;br /&gt;
! Length&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Reconstructed particles&lt;br /&gt;
|-&lt;br /&gt;
| n&lt;br /&gt;
| int&lt;br /&gt;
| 1&lt;br /&gt;
| The number of reconstructed particles.&lt;br /&gt;
|-&lt;br /&gt;
| px&lt;br /&gt;
| float []&lt;br /&gt;
| n&lt;br /&gt;
| The reconstructed particle momentum: x coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| py&lt;br /&gt;
| float []&lt;br /&gt;
| n&lt;br /&gt;
| The reconstructed particle momentum: y coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| pz&lt;br /&gt;
| float []&lt;br /&gt;
| n&lt;br /&gt;
| The reconstructed particle momentum: z coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Generated particles&lt;br /&gt;
|-&lt;br /&gt;
| n0&lt;br /&gt;
| int&lt;br /&gt;
| 1&lt;br /&gt;
| The number of generated particles.&lt;br /&gt;
|-&lt;br /&gt;
| px0&lt;br /&gt;
| float []&lt;br /&gt;
| n0&lt;br /&gt;
| The generated particle momentum: x coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| py0&lt;br /&gt;
| float []&lt;br /&gt;
| n0&lt;br /&gt;
| The generated particle momentum: y coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| pz0&lt;br /&gt;
| float []&lt;br /&gt;
| n0&lt;br /&gt;
| The generated particle momentum: z coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Generated vertices&lt;br /&gt;
|-&lt;br /&gt;
| nv0&lt;br /&gt;
| int&lt;br /&gt;
| 1&lt;br /&gt;
| The number of generated vertices.&lt;br /&gt;
|-&lt;br /&gt;
| vx0&lt;br /&gt;
| float []&lt;br /&gt;
| nv0&lt;br /&gt;
| The generated vertex: x coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| vy0&lt;br /&gt;
| float []&lt;br /&gt;
| nv0&lt;br /&gt;
| The generated vertex: y coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| vz0&lt;br /&gt;
| float []&lt;br /&gt;
| nv0&lt;br /&gt;
| The generated vertex: z coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Links&lt;br /&gt;
|-&lt;br /&gt;
| recgen&lt;br /&gt;
| int []&lt;br /&gt;
| n&lt;br /&gt;
| Transform a reconstructed particle index to the generated particle index.&lt;br /&gt;
|-&lt;br /&gt;
| genver&lt;br /&gt;
| int []&lt;br /&gt;
| n0&lt;br /&gt;
| Transform a generated particle index to the generated vertex index.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Analysis example ==&lt;br /&gt;
&lt;br /&gt;
Here a short analysis example of&lt;br /&gt;
&amp;lt;math&amp;gt;D^0 \to K_S^0 \pi^+ \pi^-&amp;lt;/math&amp;gt;&lt;br /&gt;
is presented.&lt;br /&gt;
The things are performed with PyROOT.&lt;br /&gt;
&lt;br /&gt;
The data a taken from the available&lt;br /&gt;
[[MC_Data_Sets#Exclusive_samples|exclusive sample]].&lt;br /&gt;
&lt;br /&gt;
The code can be taken from github&lt;br /&gt;
[https://github.com/lbrl/sctau_py/blob/master/search_dkspipi.py]&lt;br /&gt;
or find at the stark cluster: &lt;br /&gt;
''/home/razuvaev/myheppy/search_dkspipi.py''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Dkspipi_mksmd0.png|alt=mksmd0.|&amp;lt;math&amp;gt;K_S^0&amp;lt;/math&amp;gt; mass vs &amp;lt;math&amp;gt;D^0&amp;lt;/math&amp;gt; mass.&lt;br /&gt;
File:Dkspipi_md0pd0.png|alt=md0pd0.|&amp;lt;math&amp;gt;D^0&amp;lt;/math&amp;gt; mass vs its momentum.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/SCT_parametric_simulation</id>
		<title>SCT parametric simulation</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/SCT_parametric_simulation"/>
				<updated>2021-11-22T10:10:09Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&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 SCTauSim,master,latest&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;
ctaurun SctParSimAlg/sctparsim_test_particle_gun.py&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Configure example =&lt;br /&gt;
&lt;br /&gt;
There are some examples to run the parametric simulation&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Using tools&lt;br /&gt;
! Link&lt;br /&gt;
|-&lt;br /&gt;
| Read from a ROOT-file, write to a ROOT-file&lt;br /&gt;
| [https://git.inp.nsk.su/sctau/aurora/-/blob/master/Simulation/SctParSimAlg/jobOptions/sctparsim_test_read.py sctparsim_test_read.py]&lt;br /&gt;
|-&lt;br /&gt;
| Generate using the particle gun, write to a ROOT-file&lt;br /&gt;
| [https://git.inp.nsk.su/sctau/aurora/-/blob/master/Simulation/SctParSimAlg/jobOptions/sctparsim_test_particle_gun.py sctparsim_test_particle_gun.py]&lt;br /&gt;
|-&lt;br /&gt;
| Generate using &amp;lt;code&amp;gt;EvtGen&amp;lt;/code&amp;gt;, write to a ROOT-file&lt;br /&gt;
| [https://git.inp.nsk.su/sctau/aurora/-/blob/master/Simulation/SctParSimAlg/jobOptions/sctparsim_test_evtgen.py sctparsim_test_evtgen.py]&lt;br /&gt;
|-&lt;br /&gt;
| Generate using &amp;lt;code&amp;gt;EvtGen&amp;lt;/code&amp;gt;, use the analysis tool&lt;br /&gt;
| [https://git.inp.nsk.su/sctau/aurora/-/blob/master/Simulation/SctParSimAlg/jobOptions/sct_run_test_analisis.py sct_run_test_analisis.py]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Event generation ==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Event generation&amp;quot; block may contain other options: to read a ROOT file, to generate using the particle gun tool and to generate using EvtGen.&lt;br /&gt;
&lt;br /&gt;
=== Podio input ===&lt;br /&gt;
&lt;br /&gt;
It is possible to read the particle parameters from a ROOT file. &lt;br /&gt;
&lt;br /&gt;
You have to import the library &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
from Configurables import PodioInput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and to create the algorithm instance&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
podioevent = ScTauDataSvc(&amp;quot;EventDataSvc&amp;quot;, input=&amp;quot;fileName.root&amp;quot;)&lt;br /&gt;
podioinput = PodioInput(&amp;quot;PodioReader&amp;quot;, OutputLevel=INFO, collections=['allGenParticles'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The reading algorithm has the following parameters:&lt;br /&gt;
* input - an input file name&lt;br /&gt;
* collections - a name of a branch with MC particles&lt;br /&gt;
&lt;br /&gt;
=== Particle gun ===&lt;br /&gt;
&lt;br /&gt;
To use the particle gun algorithm, it is necessary to import the following libraries&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
from Configurables import ParticleGun&lt;br /&gt;
from Configurables import GenAlg&lt;br /&gt;
from Configurables import HepMCToEDMConverter&lt;br /&gt;
from Configurables import HepMCFileWriter&lt;br /&gt;
&lt;br /&gt;
from Configurables import Gaudi__ParticlePropertySvc&lt;br /&gt;
from PathResolver import PathResolver&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and to write the following strings&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
particlePropertySvc = Gaudi__ParticlePropertySvc(&lt;br /&gt;
    &amp;quot;ParticlePropertySvc&amp;quot;,&lt;br /&gt;
    ParticlePropertiesFile=PathResolver.FindDataFile('GenParticleData/ParticleTable.txt')&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
from math import pi&lt;br /&gt;
guntool = ParticleGun(&amp;quot;PdgCodes&amp;quot;, PdgCodes=[211])&lt;br /&gt;
guntool.OutputLevel=DEBUG&lt;br /&gt;
&lt;br /&gt;
guntool.MomentumMin = 0 * units.MeV &lt;br /&gt;
guntool.MomentumMax = 4 * units.GeV&lt;br /&gt;
&lt;br /&gt;
guntool.ThetaMin = 0 * units.rad &lt;br /&gt;
guntool.ThetaMax = pi * units.rad &lt;br /&gt;
&lt;br /&gt;
guntool.PhiMin = 0 * units.rad&lt;br /&gt;
guntool.PhiMax = 2 * pi * units.rad &lt;br /&gt;
&lt;br /&gt;
gun = GenAlg(&amp;quot;ParticleGun&amp;quot;, SignalProvider=guntool)&lt;br /&gt;
gun.hepmc.Path = &amp;quot;hepmc&amp;quot;&lt;br /&gt;
&lt;br /&gt;
writer = HepMCFileWriter(&amp;quot;HepMCFileWriter&amp;quot;)&lt;br /&gt;
writer.hepmc.Path=&amp;quot;hepmc&amp;quot;&lt;br /&gt;
&lt;br /&gt;
hepmc_converter = HepMCToEDMConverter(&amp;quot;Converter&amp;quot;)&lt;br /&gt;
hepmc_converter.hepmc.Path=&amp;quot;hepmc&amp;quot;&lt;br /&gt;
hepmc_converter.genparticles.Path=&amp;quot;allGenParticles&amp;quot;&lt;br /&gt;
hepmc_converter.genvertices.Path=&amp;quot;allGenVertices&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some parameters can be changed:&lt;br /&gt;
* PdgCodes - a list containing particles PDG codes to generate&lt;br /&gt;
* MomentumMin - a minimum particle momentum&lt;br /&gt;
* MomentumMax - a maximum particle momentum&lt;br /&gt;
* ThetaMin - a minimum theta angle&lt;br /&gt;
* ThetaMax - a maximum theta angle&lt;br /&gt;
* PhiMin - a minimum phi angle&lt;br /&gt;
* PhiMax - a maximum phi angle&lt;br /&gt;
&lt;br /&gt;
=== EvtGen ===&lt;br /&gt;
&lt;br /&gt;
More information about EvtGen is [https://ctd.inp.nsk.su/wiki/index.php/Event_generators here].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;EvtGen&amp;lt;/code&amp;gt; interface has the following parameters:&lt;br /&gt;
* &amp;lt;code&amp;gt;dec&amp;lt;/code&amp;gt; - EvtGen users decay file. It can be one of the included in Aurora files or absolute path to your own decay file. Inclusive MC generation does not require user decay file&lt;br /&gt;
* &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt; - root particle for EvtGen. &amp;lt;code&amp;gt;vpho&amp;lt;/code&amp;gt; (virtual photon) should be used for non-resonant processes&lt;br /&gt;
** Acceptable root particles: &amp;lt;code&amp;gt;vpho&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;J/psi&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;psi(2S)&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;psi(3770)&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;psi(4040)&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;psi(4160)&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;psi(4415)&amp;lt;/code&amp;gt;. For more details see Generation/GenTools/GenWrappers/python/EvtGenTools.py in Aurora.&lt;br /&gt;
* &amp;lt;code&amp;gt;ecms&amp;lt;/code&amp;gt; - center-of-mass energy (mass of the root particle). The parameter &amp;lt;code&amp;gt;ecms&amp;lt;/code&amp;gt; must be set for virtual photon while for other root particles (&amp;lt;math&amp;gt;J/\psi&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\psi(2S)&amp;lt;/math&amp;gt;, ...) this parameter is optional. Mean mass of the root particle is adopted if &amp;lt;code&amp;gt;ecms&amp;lt;/code&amp;gt; is omitted.&lt;br /&gt;
* &amp;lt;code&amp;gt;nevt&amp;lt;/code&amp;gt; - number if events to be gnerated&lt;br /&gt;
* &amp;lt;code&amp;gt;ip&amp;lt;/code&amp;gt; - uniform 3D smearing (in mm) for the primary vertex&lt;br /&gt;
* &amp;lt;code&amp;gt;ofile&amp;lt;/code&amp;gt; - output file name&lt;br /&gt;
One can change these parameters to change behaviour of EvtGen and to produce arbitrary MC sample.&lt;br /&gt;
&lt;br /&gt;
== SctParSim ==&lt;br /&gt;
&lt;br /&gt;
To run the parametric simulation, the script has to have two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
from Configurables import SctParSimAlg&lt;br /&gt;
sct_alg = SctParSimAlg('SctAlg')&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To change some detector parameters, write strings of the following structure&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sct_alg.detectorSubsystemName.parameter = mean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The full parameters list is [https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation here].&lt;br /&gt;
&lt;br /&gt;
== Analysis ==&lt;br /&gt;
&lt;br /&gt;
The analysis tool has the following parameters:&lt;br /&gt;
* EventLoader&lt;br /&gt;
** pcl.Path - a branch (in the input ROOT-file) for reading&lt;br /&gt;
** plists - a partilce list for further analisis. if it is necessary to consider not only positive, but also negative particles, the label &amp;quot;сс&amp;quot; is used. For example &amp;lt;code&amp;gt;[['K+ cc'], ['pi+ cc']]&amp;lt;/code&amp;gt;. Also it is possible to write a kinematic constraint; for example &amp;lt;code&amp;gt;[['K+ cc', 'p &amp;gt; 0.5'], ['pi+ cc']]&amp;lt;/code&amp;gt;  (kaons don't have the momentum less then 0.5 GeV)&lt;br /&gt;
&lt;br /&gt;
* ParticleCombinerAlg&lt;br /&gt;
** decStr - an investigated decay&lt;br /&gt;
** cutStr - a selection criteria&lt;br /&gt;
** selfConj - if neutral particle &amp;lt;code&amp;gt;True&amp;lt;/code&amp;gt;, else &amp;lt;code&amp;gt;False&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* NtupleAlg&lt;br /&gt;
** vars - a list contains the particle parameters to write an output file. A particle in the decay string can be selected using the &amp;quot;^&amp;quot; symbol. If a decay isn't written (&amp;lt;code&amp;gt;''&amp;lt;/code&amp;gt;), the information about parameters will be about a parent particle.&lt;br /&gt;
&lt;br /&gt;
More information about the analysis tool is [https://ctd.inp.nsk.su/wiki/index.php/Use_Analysis_package here].&lt;br /&gt;
&lt;br /&gt;
== Podio output ==&lt;br /&gt;
&lt;br /&gt;
It is possible to write the particle parameters to a ROOT file.&lt;br /&gt;
&lt;br /&gt;
You have to import the library &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
from Configurables import PodioOutput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and to create the algorithm instance&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out = PodioOutput('out', filename=ofile)&lt;br /&gt;
out.outputCommands = [&amp;quot;keep *&amp;quot;]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The reading algorithm has the parameter: filename - an output file name.&lt;br /&gt;
&lt;br /&gt;
== Running algorithm ==&lt;br /&gt;
&lt;br /&gt;
Some necessary parametrs to run the algorithms:&lt;br /&gt;
* TopAlg - a list of the using algorithms&lt;br /&gt;
* EvtMax - a number of events&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/SCT_parametric_simulation</id>
		<title>SCT parametric simulation</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/SCT_parametric_simulation"/>
				<updated>2021-11-22T10:08:33Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: /* Configure example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Configure example =&lt;br /&gt;
&lt;br /&gt;
There are some examples to run the parametric simulation&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Using tools&lt;br /&gt;
! Link&lt;br /&gt;
|-&lt;br /&gt;
| Read from a ROOT-file, write to a ROOT-file&lt;br /&gt;
| [https://git.inp.nsk.su/sctau/aurora/-/blob/master/Simulation/SctParSimAlg/jobOptions/sctparsim_test_read.py sctparsim_test_read.py]&lt;br /&gt;
|-&lt;br /&gt;
| Generate using the particle gun, write to a ROOT-file&lt;br /&gt;
| [https://git.inp.nsk.su/sctau/aurora/-/blob/master/Simulation/SctParSimAlg/jobOptions/sctparsim_test_particle_gun.py sctparsim_test_particle_gun.py]&lt;br /&gt;
|-&lt;br /&gt;
| Generate using &amp;lt;code&amp;gt;EvtGen&amp;lt;/code&amp;gt;, write to a ROOT-file&lt;br /&gt;
| [https://git.inp.nsk.su/sctau/aurora/-/blob/master/Simulation/SctParSimAlg/jobOptions/sctparsim_test_evtgen.py sctparsim_test_evtgen.py]&lt;br /&gt;
|-&lt;br /&gt;
| Generate using &amp;lt;code&amp;gt;EvtGen&amp;lt;/code&amp;gt;, use the analysis tool&lt;br /&gt;
| [https://git.inp.nsk.su/sctau/aurora/-/blob/master/Simulation/SctParSimAlg/jobOptions/sct_run_test_analisis.py sct_run_test_analisis.py]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Event generation ==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Event generation&amp;quot; block may contain other options: to read a ROOT file, to generate using the particle gun tool and to generate using EvtGen.&lt;br /&gt;
&lt;br /&gt;
=== Podio input ===&lt;br /&gt;
&lt;br /&gt;
It is possible to read the particle parameters from a ROOT file. &lt;br /&gt;
&lt;br /&gt;
You have to import the library &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
from Configurables import PodioInput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and to create the algorithm instance&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
podioevent = ScTauDataSvc(&amp;quot;EventDataSvc&amp;quot;, input=&amp;quot;fileName.root&amp;quot;)&lt;br /&gt;
podioinput = PodioInput(&amp;quot;PodioReader&amp;quot;, OutputLevel=INFO, collections=['allGenParticles'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The reading algorithm has the following parameters:&lt;br /&gt;
* input - an input file name&lt;br /&gt;
* collections - a name of a branch with MC particles&lt;br /&gt;
&lt;br /&gt;
=== Particle gun ===&lt;br /&gt;
&lt;br /&gt;
To use the particle gun algorithm, it is necessary to import the following libraries&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
from Configurables import ParticleGun&lt;br /&gt;
from Configurables import GenAlg&lt;br /&gt;
from Configurables import HepMCToEDMConverter&lt;br /&gt;
from Configurables import HepMCFileWriter&lt;br /&gt;
&lt;br /&gt;
from Configurables import Gaudi__ParticlePropertySvc&lt;br /&gt;
from PathResolver import PathResolver&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and to write the following strings&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
particlePropertySvc = Gaudi__ParticlePropertySvc(&lt;br /&gt;
    &amp;quot;ParticlePropertySvc&amp;quot;,&lt;br /&gt;
    ParticlePropertiesFile=PathResolver.FindDataFile('GenParticleData/ParticleTable.txt')&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
from math import pi&lt;br /&gt;
guntool = ParticleGun(&amp;quot;PdgCodes&amp;quot;, PdgCodes=[211])&lt;br /&gt;
guntool.OutputLevel=DEBUG&lt;br /&gt;
&lt;br /&gt;
guntool.MomentumMin = 0 * units.MeV &lt;br /&gt;
guntool.MomentumMax = 4 * units.GeV&lt;br /&gt;
&lt;br /&gt;
guntool.ThetaMin = 0 * units.rad &lt;br /&gt;
guntool.ThetaMax = pi * units.rad &lt;br /&gt;
&lt;br /&gt;
guntool.PhiMin = 0 * units.rad&lt;br /&gt;
guntool.PhiMax = 2 * pi * units.rad &lt;br /&gt;
&lt;br /&gt;
gun = GenAlg(&amp;quot;ParticleGun&amp;quot;, SignalProvider=guntool)&lt;br /&gt;
gun.hepmc.Path = &amp;quot;hepmc&amp;quot;&lt;br /&gt;
&lt;br /&gt;
writer = HepMCFileWriter(&amp;quot;HepMCFileWriter&amp;quot;)&lt;br /&gt;
writer.hepmc.Path=&amp;quot;hepmc&amp;quot;&lt;br /&gt;
&lt;br /&gt;
hepmc_converter = HepMCToEDMConverter(&amp;quot;Converter&amp;quot;)&lt;br /&gt;
hepmc_converter.hepmc.Path=&amp;quot;hepmc&amp;quot;&lt;br /&gt;
hepmc_converter.genparticles.Path=&amp;quot;allGenParticles&amp;quot;&lt;br /&gt;
hepmc_converter.genvertices.Path=&amp;quot;allGenVertices&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some parameters can be changed:&lt;br /&gt;
* PdgCodes - a list containing particles PDG codes to generate&lt;br /&gt;
* MomentumMin - a minimum particle momentum&lt;br /&gt;
* MomentumMax - a maximum particle momentum&lt;br /&gt;
* ThetaMin - a minimum theta angle&lt;br /&gt;
* ThetaMax - a maximum theta angle&lt;br /&gt;
* PhiMin - a minimum phi angle&lt;br /&gt;
* PhiMax - a maximum phi angle&lt;br /&gt;
&lt;br /&gt;
=== EvtGen ===&lt;br /&gt;
&lt;br /&gt;
More information about EvtGen is [https://ctd.inp.nsk.su/wiki/index.php/Event_generators here].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;EvtGen&amp;lt;/code&amp;gt; interface has the following parameters:&lt;br /&gt;
* &amp;lt;code&amp;gt;dec&amp;lt;/code&amp;gt; - EvtGen users decay file. It can be one of the included in Aurora files or absolute path to your own decay file. Inclusive MC generation does not require user decay file&lt;br /&gt;
* &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt; - root particle for EvtGen. &amp;lt;code&amp;gt;vpho&amp;lt;/code&amp;gt; (virtual photon) should be used for non-resonant processes&lt;br /&gt;
** Acceptable root particles: &amp;lt;code&amp;gt;vpho&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;J/psi&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;psi(2S)&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;psi(3770)&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;psi(4040)&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;psi(4160)&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;psi(4415)&amp;lt;/code&amp;gt;. For more details see Generation/GenTools/GenWrappers/python/EvtGenTools.py in Aurora.&lt;br /&gt;
* &amp;lt;code&amp;gt;ecms&amp;lt;/code&amp;gt; - center-of-mass energy (mass of the root particle). The parameter &amp;lt;code&amp;gt;ecms&amp;lt;/code&amp;gt; must be set for virtual photon while for other root particles (&amp;lt;math&amp;gt;J/\psi&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\psi(2S)&amp;lt;/math&amp;gt;, ...) this parameter is optional. Mean mass of the root particle is adopted if &amp;lt;code&amp;gt;ecms&amp;lt;/code&amp;gt; is omitted.&lt;br /&gt;
* &amp;lt;code&amp;gt;nevt&amp;lt;/code&amp;gt; - number if events to be gnerated&lt;br /&gt;
* &amp;lt;code&amp;gt;ip&amp;lt;/code&amp;gt; - uniform 3D smearing (in mm) for the primary vertex&lt;br /&gt;
* &amp;lt;code&amp;gt;ofile&amp;lt;/code&amp;gt; - output file name&lt;br /&gt;
One can change these parameters to change behaviour of EvtGen and to produce arbitrary MC sample.&lt;br /&gt;
&lt;br /&gt;
== SctParSim ==&lt;br /&gt;
&lt;br /&gt;
To run the parametric simulation, the script has to have two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
from Configurables import SctParSimAlg&lt;br /&gt;
sct_alg = SctParSimAlg('SctAlg')&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To change some detector parameters, write strings of the following structure&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sct_alg.detectorSubsystemName.parameter = mean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The full parameters list is [https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation here].&lt;br /&gt;
&lt;br /&gt;
== Analysis ==&lt;br /&gt;
&lt;br /&gt;
The analysis tool has the following parameters:&lt;br /&gt;
* EventLoader&lt;br /&gt;
** pcl.Path - a branch (in the input ROOT-file) for reading&lt;br /&gt;
** plists - a partilce list for further analisis. if it is necessary to consider not only positive, but also negative particles, the label &amp;quot;сс&amp;quot; is used. For example &amp;lt;code&amp;gt;[['K+ cc'], ['pi+ cc']]&amp;lt;/code&amp;gt;. Also it is possible to write a kinematic constraint; for example &amp;lt;code&amp;gt;[['K+ cc', 'p &amp;gt; 0.5'], ['pi+ cc']]&amp;lt;/code&amp;gt;  (kaons don't have the momentum less then 0.5 GeV)&lt;br /&gt;
&lt;br /&gt;
* ParticleCombinerAlg&lt;br /&gt;
** decStr - an investigated decay&lt;br /&gt;
** cutStr - a selection criteria&lt;br /&gt;
** selfConj - if neutral particle &amp;lt;code&amp;gt;True&amp;lt;/code&amp;gt;, else &amp;lt;code&amp;gt;False&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* NtupleAlg&lt;br /&gt;
** vars - a list contains the particle parameters to write an output file. A particle in the decay string can be selected using the &amp;quot;^&amp;quot; symbol. If a decay isn't written (&amp;lt;code&amp;gt;''&amp;lt;/code&amp;gt;), the information about parameters will be about a parent particle.&lt;br /&gt;
&lt;br /&gt;
More information about the analysis tool is [https://ctd.inp.nsk.su/wiki/index.php/Use_Analysis_package here].&lt;br /&gt;
&lt;br /&gt;
== Podio output ==&lt;br /&gt;
&lt;br /&gt;
It is possible to write the particle parameters to a ROOT file.&lt;br /&gt;
&lt;br /&gt;
You have to import the library &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
from Configurables import PodioOutput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and to create the algorithm instance&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out = PodioOutput('out', filename=ofile)&lt;br /&gt;
out.outputCommands = [&amp;quot;keep *&amp;quot;]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The reading algorithm has the parameter: filename - an output file name.&lt;br /&gt;
&lt;br /&gt;
== Running algorithm ==&lt;br /&gt;
&lt;br /&gt;
Some necessary parametrs to run the algorithms:&lt;br /&gt;
* TopAlg - a list of the using algorithms&lt;br /&gt;
* EvtMax - a number of events&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation</id>
		<title>Parametric simulation</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation"/>
				<updated>2021-11-22T09:10:47Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Talks==&lt;br /&gt;
&lt;br /&gt;
* Software meeting 2018-06-29, Friday, [[File:sctau_papas_v2_20180629.pdf]]&lt;br /&gt;
* Workshop on future Super c-tau factories 2021-11-16 [https://indico.inp.nsk.su/event/62/contributions/2315/ Parametric simulation of the SCT detector]&lt;br /&gt;
&lt;br /&gt;
= SctParSim =&lt;br /&gt;
A parametric simulation is a tool to receive a detector response without detailed description of interaction of particles with matter.&lt;br /&gt;
&lt;br /&gt;
Implemented detector subsystems:&lt;br /&gt;
* drift chamber&lt;br /&gt;
* FARICH PID system&lt;br /&gt;
* calorimeter&lt;br /&gt;
* muon system&lt;br /&gt;
&lt;br /&gt;
The parametric simulation yields the detector response in the SCT EDM format thus allowing to analyze its result in the same manner as the result of the full simulation.&lt;br /&gt;
&lt;br /&gt;
How-to use the parametric simulation is demonstrated [https://ctd.inp.nsk.su/wiki/index.php/SCT_parametric_simulation here]&lt;br /&gt;
&lt;br /&gt;
== Detector configuration ==&lt;br /&gt;
&lt;br /&gt;
The detector parameters can be changed in the run script (see Configuration section).&lt;br /&gt;
The detector parameters and their default values can be viewed here.&lt;br /&gt;
&lt;br /&gt;
=== SctParSimAlg ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change parameter&lt;br /&gt;
! Description&lt;br /&gt;
! Default value &lt;br /&gt;
|-&lt;br /&gt;
| B&lt;br /&gt;
| Detector magnetic field&lt;br /&gt;
| 1.5&lt;br /&gt;
|-&lt;br /&gt;
| mostProbMass&lt;br /&gt;
| The mass of most probable particle&lt;br /&gt;
| 0.13957&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== TrackSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater&lt;br /&gt;
! Description&lt;br /&gt;
! Default value&lt;br /&gt;
|-&lt;br /&gt;
| trackRhoMin&lt;br /&gt;
| Inner radius of barrel tracker, m        &lt;br /&gt;
| 0.1 &lt;br /&gt;
|-&lt;br /&gt;
| trackRhoMax              &lt;br /&gt;
| Outer radius of barrel tracker, m        &lt;br /&gt;
| 0.8 &lt;br /&gt;
|-&lt;br /&gt;
| trackZMin                &lt;br /&gt;
| Inner z coordinate of endcup tracker, m  &lt;br /&gt;
| 0   &lt;br /&gt;
|-&lt;br /&gt;
| trackZMax                &lt;br /&gt;
| Outer z coordinate of endcup tracker, m  &lt;br /&gt;
| 1   &lt;br /&gt;
|- &lt;br /&gt;
| trackMinPt               &lt;br /&gt;
| Minimum momentum, GeV                    &lt;br /&gt;
|0.05 &lt;br /&gt;
|- &lt;br /&gt;
| trackPtProb              &lt;br /&gt;
| Registration probabilities for different momentum, {GeV, prob} &lt;br /&gt;
| {{0.1, 0.8}, {0.3, 0.9}, {1, 0.95), {10, 0.99}} &lt;br /&gt;
|-&lt;br /&gt;
| trackRadLen              &lt;br /&gt;
| Radiation length in the track system, m  &lt;br /&gt;
| 187 &lt;br /&gt;
|-&lt;br /&gt;
| trackResParPT            &lt;br /&gt;
| Parameterizaton parameters for xy projection &lt;br /&gt;
| 0.00212 &lt;br /&gt;
|-&lt;br /&gt;
| trackResParPZ            &lt;br /&gt;
| Parameterization parameters for z projection &lt;br /&gt;
| {0.001281, 0.00308} &lt;br /&gt;
|-&lt;br /&gt;
| trackLayerAx             &lt;br /&gt;
| The radius of layers anf the location radius of the anod layers, mm &lt;br /&gt;
| {{6.306, 217.306}, {6.644, 227.1}, {7.165, 246.906}, {6.564, 341.938}, {6.794, 352.06}, {7.14, 371.992}, {7.388, 382.95}, {6.651, 467.57}, {6.823, 477.718}, {6.968, 488.097}, {7.12, 498.701}, {7.274, 509.535}, {6.768, 636.322}, {6.898, 646.501}, {7.007, 656.957}, {7.121, 667.581}, {6.791, 750.730}, {6.902, 761.027}, {6.995, 771.472}, {7.091, 782.061}} &lt;br /&gt;
|-&lt;br /&gt;
| trackLayerSt            &lt;br /&gt;
| The radius of layers and the location radius of the stereo layers, mm &lt;br /&gt;
| {{6.473, 280.136}, {6.747, 290.136}, {7.182, 310.863}, {7.486, 321.938}, {6.603, 405.941}, {6.799, 416.04}, {7.104, 436.741}, {7.314, 447.606}, {6.741, 533.35}, {6.859, 543.615}, {7.026, 554.088, {7.161, 564.762}, {6.778, 584.801}, {6.919, 595.108}, {7.039, 605.606}, {7.163, 6169.289}, {6.746, 689.948}, {6.865, 700.185}, {7.041, 720.09}, {7.165, 730.775}} &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== FARICHSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| farichRhoMin             &lt;br /&gt;
| Inner radius of barrel FARICH system, m          &lt;br /&gt;
| 0.82    &lt;br /&gt;
|-&lt;br /&gt;
| farichRhoMax             &lt;br /&gt;
| Outer radius of barrel FARICH system, m          &lt;br /&gt;
| 0.9     &lt;br /&gt;
|-&lt;br /&gt;
| farichZMin               &lt;br /&gt;
| Inner z coordinate of endcup FARICH system, m    &lt;br /&gt;
| 1.02    &lt;br /&gt;
|-&lt;br /&gt;
| farichZMax               &lt;br /&gt;
| Outer z coordinate of encup FARICH system, m     &lt;br /&gt;
| 1.273   &lt;br /&gt;
|-&lt;br /&gt;
| farichHoleR              &lt;br /&gt;
| Hole radius of FARICH system                     &lt;br /&gt;
| 0.3     &lt;br /&gt;
|-&lt;br /&gt;
| parSimFarichFileName     &lt;br /&gt;
| The path to the file with response histograms of FARICH &lt;br /&gt;
| ./pi_ms_f1_mppc2_px3_d200_mla4_graph2d.root &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== CaloSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| caloRhoMin               &lt;br /&gt;
| Inner radius of barrel calorimeter, m            &lt;br /&gt;
| 1.09    &lt;br /&gt;
|-&lt;br /&gt;
| caloRhoMax               &lt;br /&gt;
| Outer radius of barrel calorimeter, m            &lt;br /&gt;
| 1.55    &lt;br /&gt;
|-&lt;br /&gt;
| caloZMin                 &lt;br /&gt;
| Inner z coordinate of endcup calorimeter, m      &lt;br /&gt;
| 1.293   &lt;br /&gt;
|-&lt;br /&gt;
| caloZMax                 &lt;br /&gt;
| Outer z coordinate of endcup calorimeter, m      &lt;br /&gt;
| 1.86   &lt;br /&gt;
|-&lt;br /&gt;
| caloCosthmax             &lt;br /&gt;
| Maximum cosine                                   &lt;br /&gt;
| 0.9     &lt;br /&gt;
|-&lt;br /&gt;
| caloClSize               &lt;br /&gt;
| Calorimeter cluster size, m                      &lt;br /&gt;
| 0.045   &lt;br /&gt;
|-&lt;br /&gt;
| caloClSizeEGamma         &lt;br /&gt;
| Calorimeter cluster size for gamma, m            &lt;br /&gt;
| 0.15   &lt;br /&gt;
|-&lt;br /&gt;
| caloEMinBarrel           &lt;br /&gt;
| Minimal energy, GeV                              &lt;br /&gt;
| 0.015   &lt;br /&gt;
|-&lt;br /&gt;
| caloEMinEndcup           &lt;br /&gt;
| Minimal energy, GeV                              &lt;br /&gt;
| 0.015   &lt;br /&gt;
|-&lt;br /&gt;
| caloResPar               &lt;br /&gt;
| Parameterization parameters                      &lt;br /&gt;
| {1.34e-2, 0.066e-2, 0.0, 0.82e-2}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MuonSystemTool ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|- &lt;br /&gt;
! Name to change paramater &lt;br /&gt;
! Description                          &lt;br /&gt;
! Default value       &lt;br /&gt;
|-&lt;br /&gt;
| muonRhoMin               &lt;br /&gt;
| Inner radius of barrel muon system, m            &lt;br /&gt;
| 1.87    &lt;br /&gt;
|-&lt;br /&gt;
| muonRhoMax               &lt;br /&gt;
| Outer radius of barrel muon system, m            &lt;br /&gt;
| 2.15    &lt;br /&gt;
|-&lt;br /&gt;
| muonZMin                 &lt;br /&gt;
| Inner z coordinate of endcup muon system, m      &lt;br /&gt;
| 1.88    &lt;br /&gt;
|-&lt;br /&gt;
| muonZMax                 &lt;br /&gt;
| Outer z coordinate of endcup muon system, m      &lt;br /&gt;
| 2.16    &lt;br /&gt;
|-&lt;br /&gt;
| parSimMuonFileNameMu     &lt;br /&gt;
| The path to the file with response histograms of muon system (muon) &lt;br /&gt;
| ./g4beamline_mu_plus_100k_parse.root &lt;br /&gt;
|-&lt;br /&gt;
| parSimMuonFileNamePi     &lt;br /&gt;
| The path to the file with response histograms of muon system (pion) &lt;br /&gt;
| ./g4beamline_pi_plus_100k_parse.root &lt;br /&gt;
|} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Parameterization ==&lt;br /&gt;
=== Drift chamber ===&lt;br /&gt;
&lt;br /&gt;
The track resolution is described [https://ctd.inp.nsk.su/wiki/index.php/Drift_chamber here].&lt;br /&gt;
&lt;br /&gt;
The parametric simulation has two options in the tracker to the particle identification: an ionisation clusters counting (dNcl/dx) and dE/dx. The model of calculation the specific number of ionization clusters is taken from a TraPID option by F. Gracagnolo ([https://indico.lal.in2p3.fr/event/4902/contributions/17030/attachments/13603/16389/SCTFDrift_Chamber.pdf The presentation on &amp;quot;Joint Workshop on Future tau-charm factory&amp;quot; in December 4--7, 2018]). An energy losing is calculated using the resolution model from BaBar experiment. The The σ(dE/dx) is parameterized as&lt;br /&gt;
&lt;br /&gt;
[[File:BabardEdx.png]]&lt;br /&gt;
&lt;br /&gt;
where α, β, γ is tuned on BaBar data.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Tracker_res.png|Momentum resolution as a function of momentum depending on polar angle for π+&lt;br /&gt;
&lt;br /&gt;
File:DEdx.png|The dependence of the dE/dx on the momentum in the tracker system&lt;br /&gt;
&lt;br /&gt;
File:cl_count.png|The dependence of the specific number of ionization clusters on the momentum in the tracker system&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== FARICH PID system ===&lt;br /&gt;
&lt;br /&gt;
The FARICH PID system works using the results of the full GEANT4 simulation. The system output is the particle speed and number of photons.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Farich_res.png|The dependence of the particle β factor on the momentum in the FARICH PID system&lt;br /&gt;
&lt;br /&gt;
File:Farich_param.png|The dependence of the number of photoelectron on the βγ factor in the FARICH PID system for different angles (black - 10°, red - 30°, green - 45°)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Calorimeter ===&lt;br /&gt;
&lt;br /&gt;
The calorimeter resolution is sigma_E = e0  + e1 / E + e2 / sqrt(E) + e3 / E^0.25, the coefficients (e0, e1 etc.) are taken from [https://indico.inp.nsk.su/event/13/session/10/contribution/17/material/slides/0.pdf the D. Epifanov presentation on Super C-Tau factory workshop in May 27, 2018].&lt;br /&gt;
&lt;br /&gt;
There are two cluster sizes to gammas / electrons and other particles.&lt;br /&gt;
&lt;br /&gt;
==== Reconstruction ====&lt;br /&gt;
The cross-linking data obtained by the track system and the calorimeter is implemented. This is implemented taking into account the geometric intersection of the calorimeter clusters.&lt;br /&gt;
 &lt;br /&gt;
The algorithm for the cross-linking data obtained by the track system and the calorimeter:&lt;br /&gt;
* union of geometrically intersecting calorimetric clusters&lt;br /&gt;
* finding a match between calorimetric clusters and tracks&lt;br /&gt;
* recalculating cluster characteristics (time, energy, cluster size, conversion point)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Res_eff.png‎|The reconstruction efficiency for different particle types&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Muon system ===&lt;br /&gt;
The muon system works using the results of a reconducted stand-alone simulation on G4BeamLine. The system is a cylinder of eight absorber and sensitive polystyrene layers. The absorber is iron.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:muon.png|The probability distribution for muons and pions to reach a certain layer in the muon system&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Output collection ==&lt;br /&gt;
&lt;br /&gt;
The output ROOT-file contains:&lt;br /&gt;
&lt;br /&gt;
* allGenParticles - MC particles&lt;br /&gt;
** pdgId&lt;br /&gt;
** charge&lt;br /&gt;
** vertex - x, y, and z coordinates&lt;br /&gt;
** p4 - momentum (px, py, pz) and mass&lt;br /&gt;
&lt;br /&gt;
* Particles - the particle characteristics after the parametric simulation &lt;br /&gt;
** pdgId&lt;br /&gt;
** charge&lt;br /&gt;
** vertex - x, y, z coordinates&lt;br /&gt;
** p4 - measured momentum (px, py, pz) and the most probability particle mass&lt;br /&gt;
** dedx&lt;br /&gt;
** dedx_err&lt;br /&gt;
** dncldx - cluster counting&lt;br /&gt;
** dedxPid&lt;br /&gt;
** dncldxPid&lt;br /&gt;
** farichPid&lt;br /&gt;
** muPid&lt;br /&gt;
&lt;br /&gt;
* TrackState - the helix characteristics (the track)&lt;br /&gt;
** phi&lt;br /&gt;
** theta&lt;br /&gt;
** qOverP&lt;br /&gt;
** d0&lt;br /&gt;
** z0&lt;br /&gt;
** referencePoint - x, y and z coordinates&lt;br /&gt;
&lt;br /&gt;
* CaloClusters&lt;br /&gt;
** energy&lt;br /&gt;
** time&lt;br /&gt;
** position - x, y and z coordinates of the calorimeter entry point&lt;br /&gt;
&lt;br /&gt;
* MuonHits&lt;br /&gt;
** layer - the last layer that registered a particle&lt;br /&gt;
&lt;br /&gt;
* FARICHHits&lt;br /&gt;
** cellId&lt;br /&gt;
** energy&lt;br /&gt;
** time&lt;br /&gt;
** beta&lt;br /&gt;
** beta_err&lt;br /&gt;
** nphe0&lt;br /&gt;
** nphe&lt;br /&gt;
&lt;br /&gt;
The more characteristics have intuitive names.&lt;br /&gt;
&lt;br /&gt;
= SctParSim (Python) =&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 SCTauSim,master,latest&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;br /&gt;
&lt;br /&gt;
= PAPAS (Old) =&lt;br /&gt;
&lt;br /&gt;
== About papas, heppy et cetra ==&lt;br /&gt;
&lt;br /&gt;
Particle propagation is done by geometry calculation.&lt;br /&gt;
To valid the calculation several different cases were plotted.&lt;br /&gt;
&lt;br /&gt;
[[File:Tof_test_9k.png|thumb|center|alt=Helix.|Helix.]]&lt;br /&gt;
&lt;br /&gt;
== Configure detector parameters ==&lt;br /&gt;
&lt;br /&gt;
The detector parameters can be changed via a configuration file ''CTauPapas.cfg'' placed in the main papas 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(s) should be separated by spaces.&lt;br /&gt;
Empty lines and lines beginning with # are ignored.&lt;br /&gt;
&lt;br /&gt;
In the example below the parameter at the first line is one number,&lt;br /&gt;
while the parameter at the second line is an array.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ecal_emin_barrel 0.05&lt;br /&gt;
&lt;br /&gt;
ecal_eres 1.34e-2 0.066e-2 0 0.82e-2&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The parameters can be given in any order.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configure detector parameters ==&lt;br /&gt;
&lt;br /&gt;
The file ''ctau_input_sim.txt'' contains two lines.&lt;br /&gt;
The first line is the path to a primary simulation file (see [[MC_Data_Sets|MC Data Sets]] page).&lt;br /&gt;
The second line is an integer number of events to be processed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== How to run papas ==&lt;br /&gt;
&lt;br /&gt;
Copy a directory with papas on stark the machine and go to this directory.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd&lt;br /&gt;
&lt;br /&gt;
cp -rf ~razuvaev/myheppy .&lt;br /&gt;
&lt;br /&gt;
cd myheppy&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There are a directory ''output'' for output files,&lt;br /&gt;
detector configuration file ''CTauPapas.cfg'',&lt;br /&gt;
file ''ctau_input_sim.txt'' with a path to the file with primary generator events,&lt;br /&gt;
and the folder ''heppy'' with heppy code itself.&lt;br /&gt;
Let's go into it and tune environment.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd heppy&lt;br /&gt;
&lt;br /&gt;
source init.sh&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now it is time to run papas.&lt;br /&gt;
You may be asked a question because the output directory is not empty.&lt;br /&gt;
So just input &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt; or clean the folder.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd test&lt;br /&gt;
&lt;br /&gt;
./heppy_loop.py ../../output/ ctau_cfg1.py&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If it don't want to run try &amp;lt;code&amp;gt;source ~razuvaev/.bashrc&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;source ../init.sh&amp;lt;/code&amp;gt; because it can be caused by the problem with environment variables.&lt;br /&gt;
&lt;br /&gt;
When papas simulation has been done one need to present papas output to a suitable form and also add initial generator information.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd ../../&lt;br /&gt;
&lt;br /&gt;
./txt2tree.py&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The output root tree is available in the file ''myheppy/output/txt2tree.root''.&lt;br /&gt;
&lt;br /&gt;
== Output tree ==&lt;br /&gt;
&lt;br /&gt;
The output tree contains branches which can be divided in several groups:&lt;br /&gt;
* reconstructed particle parameters;&lt;br /&gt;
* generated particle parameters;&lt;br /&gt;
* generated vertices;&lt;br /&gt;
* connection between reconstructed particles, generated particles and generated vertices.&lt;br /&gt;
&lt;br /&gt;
The table below presents branches and description of their content.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name&lt;br /&gt;
! Type&lt;br /&gt;
! Length&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Reconstructed particles&lt;br /&gt;
|-&lt;br /&gt;
| n&lt;br /&gt;
| int&lt;br /&gt;
| 1&lt;br /&gt;
| The number of reconstructed particles.&lt;br /&gt;
|-&lt;br /&gt;
| px&lt;br /&gt;
| float []&lt;br /&gt;
| n&lt;br /&gt;
| The reconstructed particle momentum: x coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| py&lt;br /&gt;
| float []&lt;br /&gt;
| n&lt;br /&gt;
| The reconstructed particle momentum: y coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| pz&lt;br /&gt;
| float []&lt;br /&gt;
| n&lt;br /&gt;
| The reconstructed particle momentum: z coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Generated particles&lt;br /&gt;
|-&lt;br /&gt;
| n0&lt;br /&gt;
| int&lt;br /&gt;
| 1&lt;br /&gt;
| The number of generated particles.&lt;br /&gt;
|-&lt;br /&gt;
| px0&lt;br /&gt;
| float []&lt;br /&gt;
| n0&lt;br /&gt;
| The generated particle momentum: x coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| py0&lt;br /&gt;
| float []&lt;br /&gt;
| n0&lt;br /&gt;
| The generated particle momentum: y coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| pz0&lt;br /&gt;
| float []&lt;br /&gt;
| n0&lt;br /&gt;
| The generated particle momentum: z coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Generated vertices&lt;br /&gt;
|-&lt;br /&gt;
| nv0&lt;br /&gt;
| int&lt;br /&gt;
| 1&lt;br /&gt;
| The number of generated vertices.&lt;br /&gt;
|-&lt;br /&gt;
| vx0&lt;br /&gt;
| float []&lt;br /&gt;
| nv0&lt;br /&gt;
| The generated vertex: x coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| vy0&lt;br /&gt;
| float []&lt;br /&gt;
| nv0&lt;br /&gt;
| The generated vertex: y coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| vz0&lt;br /&gt;
| float []&lt;br /&gt;
| nv0&lt;br /&gt;
| The generated vertex: z coordinate.&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;text-align: center;&amp;quot; | Links&lt;br /&gt;
|-&lt;br /&gt;
| recgen&lt;br /&gt;
| int []&lt;br /&gt;
| n&lt;br /&gt;
| Transform a reconstructed particle index to the generated particle index.&lt;br /&gt;
|-&lt;br /&gt;
| genver&lt;br /&gt;
| int []&lt;br /&gt;
| n0&lt;br /&gt;
| Transform a generated particle index to the generated vertex index.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Analysis example ==&lt;br /&gt;
&lt;br /&gt;
Here a short analysis example of&lt;br /&gt;
&amp;lt;math&amp;gt;D^0 \to K_S^0 \pi^+ \pi^-&amp;lt;/math&amp;gt;&lt;br /&gt;
is presented.&lt;br /&gt;
The things are performed with PyROOT.&lt;br /&gt;
&lt;br /&gt;
The data a taken from the available&lt;br /&gt;
[[MC_Data_Sets#Exclusive_samples|exclusive sample]].&lt;br /&gt;
&lt;br /&gt;
The code can be taken from github&lt;br /&gt;
[https://github.com/lbrl/sctau_py/blob/master/search_dkspipi.py]&lt;br /&gt;
or find at the stark cluster: &lt;br /&gt;
''/home/razuvaev/myheppy/search_dkspipi.py''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Dkspipi_mksmd0.png|alt=mksmd0.|&amp;lt;math&amp;gt;K_S^0&amp;lt;/math&amp;gt; mass vs &amp;lt;math&amp;gt;D^0&amp;lt;/math&amp;gt; mass.&lt;br /&gt;
File:Dkspipi_md0pd0.png|alt=md0pd0.|&amp;lt;math&amp;gt;D^0&amp;lt;/math&amp;gt; mass vs its momentum.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	<entry>
		<id>https://ctd.inp.nsk.su/wiki/index.php/SCT_parametric_simulation</id>
		<title>SCT parametric simulation</title>
		<link rel="alternate" type="text/html" href="https://ctd.inp.nsk.su/wiki/index.php/SCT_parametric_simulation"/>
				<updated>2021-11-22T09:04:49Z</updated>
		
		<summary type="html">&lt;p&gt;Razuvaev: /* Configure example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Configure example =&lt;br /&gt;
&lt;br /&gt;
There is an example of running the entire chain from generating particles to running an analysis tool. A more detailed description of the algorithms and their parameters is presented below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
from Configurables import ApplicationMgr&lt;br /&gt;
&lt;br /&gt;
from Gaudi.Configuration import *&lt;br /&gt;
from Configurables import GenAlg, EvtGenInterface&lt;br /&gt;
from Configurables import HepMCToEDMConverter&lt;br /&gt;
from Configurables import ScTauDataSvc&lt;br /&gt;
&lt;br /&gt;
from Configurables import Gaudi__ParticlePropertySvc&lt;br /&gt;
from PathResolver import PathResolver&lt;br /&gt;
&lt;br /&gt;
############################&lt;br /&gt;
####  Event generation  ####&lt;br /&gt;
############################&lt;br /&gt;
podioevent = ScTauDataSvc(&amp;quot;EventDataSvc&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
# Particle service&lt;br /&gt;
particlePropertySvc = Gaudi__ParticlePropertySvc(&lt;br /&gt;
    &amp;quot;ParticlePropertySvc&amp;quot;,&lt;br /&gt;
    ParticlePropertiesFile=PathResolver.FindDataFile('GenParticleData/ParticleTable.txt')&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
# EvtGen&lt;br /&gt;
evtgen = EvtGenInterface('SignalProvider')&lt;br /&gt;
#evtgen.userdec = &amp;quot;./mydec.dec&amp;quot;&lt;br /&gt;
#evtgen.rootParticle = &amp;quot;J/psi&amp;quot;&lt;br /&gt;
&lt;br /&gt;
gen = GenAlg('EvtGenAlg', SignalProvider=evtgen)&lt;br /&gt;
gen.hepmc.Path = 'hepmc'&lt;br /&gt;
&lt;br /&gt;
# HepMC3 to PODIO&lt;br /&gt;
edm = HepMCToEDMConverter(&amp;quot;Converter&amp;quot;)&lt;br /&gt;
edm.hepmc.Path=gen.hepmc.Path&lt;br /&gt;
edm.genparticles.Path=&amp;quot;allGenParticles&amp;quot;&lt;br /&gt;
edm.genvertices.Path=&amp;quot;allGenVertices&amp;quot;&lt;br /&gt;
&lt;br /&gt;
############################&lt;br /&gt;
# SctParSim&lt;br /&gt;
############################&lt;br /&gt;
from Configurables import SctParSimAlg&lt;br /&gt;
&lt;br /&gt;
sct_alg = SctParSimAlg('SctAlg')&lt;br /&gt;
#sct_alg.CaloSystemTool.caloClSizeEGamma = 0.2 # Example how to change a subsystem parameter&lt;br /&gt;
&lt;br /&gt;
############################&lt;br /&gt;
# Podio output&lt;br /&gt;
############################&lt;br /&gt;
out = PodioOutput('out', filename=ofile)&lt;br /&gt;
out.outputCommands = [&amp;quot;keep *&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
############################         &lt;br /&gt;
# Analisis                           &lt;br /&gt;
############################ &lt;br /&gt;
from Configurables import EventLoader&lt;br /&gt;
from Configurables import NtupleAlg, NTupleSvc&lt;br /&gt;
from Configurables import ParticleCombinerAlg&lt;br /&gt;
&lt;br /&gt;
evlo = EventLoader('EvtLoader')&lt;br /&gt;
evlo.pcl.Path = 'Particles' # Branch (in the input ROOT-file) for reading&lt;br /&gt;
evlo.pListMap.Path = 'Lists1'&lt;br /&gt;
evlo.plists = [['gamma']] # Partilce list for further analisis&lt;br /&gt;
&lt;br /&gt;
# Select particle combinations       &lt;br /&gt;
cmbr = ParticleCombinerAlg('Cmbr',&lt;br /&gt;
    decStr = 'pi0 -&amp;gt; gamma gamma', # Investigated decay&lt;br /&gt;
    cutStr = 'E &amp;gt; 0.5', # Selection criteria&lt;br /&gt;
    selfConj = True # if neutral particle True, else False&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
cmbr.pListMapI = evlo.pListMap.Path &lt;br /&gt;
cmbr.pListMapO.Path = 'Lists2' &lt;br /&gt;
&lt;br /&gt;
# Select variables to save to n-tuple&lt;br /&gt;
tupl = NtupleAlg('piTuple') &lt;br /&gt;
tupl.listName = 'pi0'&lt;br /&gt;
tupl.fileName = 'scttuple/tup'&lt;br /&gt;
&lt;br /&gt;
# List contains the particle parametes to write an output file&lt;br /&gt;
tupl.vars = [['px_mc', 'py_mc', 'pz_mc', 'E', 'pi0 -&amp;gt; ^gamma ^gamma'],&lt;br /&gt;
    ['M', ''],&lt;br /&gt;
]&lt;br /&gt;
&lt;br /&gt;
tupl.pListMapI.Path = cmbr.pListMapO.Path&lt;br /&gt;
NTupleSvc(Output = [&amp;quot;scttuple DATAFILE='tup.root' OPT='NEW' TYP='ROOT'&amp;quot;])&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
############################         &lt;br /&gt;
# Running algorithms                 &lt;br /&gt;
############################ &lt;br /&gt;
&lt;br /&gt;
options= {&lt;br /&gt;
    'TopAlg' : [gen, edm, sct_alg, evlo, cmbr, tupl, out],&lt;br /&gt;
    'EvtSel' : 'NONE',&lt;br /&gt;
    'ExtSvc' : [particlePropertySvc, podioevent],&lt;br /&gt;
    'EvtMax' : 10000,&lt;br /&gt;
    'StatusCodeCheck' : True,&lt;br /&gt;
    'AuditAlgorithms' : True,&lt;br /&gt;
    'AuditTools'      : True,&lt;br /&gt;
    'AuditServices'   : True,&lt;br /&gt;
    'OutputLevel'     : INFO,&lt;br /&gt;
    'HistogramPersistency' : 'ROOT',&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
ApplicationMgr(**options)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Event generation ==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Event generation&amp;quot; block may contain other options: to read a ROOT file, to generate using the particle gun tool and to generate using EvtGen.&lt;br /&gt;
&lt;br /&gt;
=== Podio input ===&lt;br /&gt;
&lt;br /&gt;
It is possible to read the particle parameters from a ROOT file. &lt;br /&gt;
&lt;br /&gt;
You have to import the library &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
from Configurables import PodioInput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and to create the algorithm instance&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
podioevent = ScTauDataSvc(&amp;quot;EventDataSvc&amp;quot;, input=&amp;quot;fileName.root&amp;quot;)&lt;br /&gt;
podioinput = PodioInput(&amp;quot;PodioReader&amp;quot;, OutputLevel=INFO, collections=['allGenParticles'])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The reading algorithm has the following parameters:&lt;br /&gt;
* input - an input file name&lt;br /&gt;
* collections - a name of a branch with MC particles&lt;br /&gt;
&lt;br /&gt;
=== Particle gun ===&lt;br /&gt;
&lt;br /&gt;
To use the particle gun algorithm, it is necessary to import the following libraries&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
from Configurables import ParticleGun&lt;br /&gt;
from Configurables import GenAlg&lt;br /&gt;
from Configurables import HepMCToEDMConverter&lt;br /&gt;
from Configurables import HepMCFileWriter&lt;br /&gt;
&lt;br /&gt;
from Configurables import Gaudi__ParticlePropertySvc&lt;br /&gt;
from PathResolver import PathResolver&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and to write the following strings&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
particlePropertySvc = Gaudi__ParticlePropertySvc(&lt;br /&gt;
    &amp;quot;ParticlePropertySvc&amp;quot;,&lt;br /&gt;
    ParticlePropertiesFile=PathResolver.FindDataFile('GenParticleData/ParticleTable.txt')&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
from math import pi&lt;br /&gt;
guntool = ParticleGun(&amp;quot;PdgCodes&amp;quot;, PdgCodes=[211])&lt;br /&gt;
guntool.OutputLevel=DEBUG&lt;br /&gt;
&lt;br /&gt;
guntool.MomentumMin = 0 * units.MeV &lt;br /&gt;
guntool.MomentumMax = 4 * units.GeV&lt;br /&gt;
&lt;br /&gt;
guntool.ThetaMin = 0 * units.rad &lt;br /&gt;
guntool.ThetaMax = pi * units.rad &lt;br /&gt;
&lt;br /&gt;
guntool.PhiMin = 0 * units.rad&lt;br /&gt;
guntool.PhiMax = 2 * pi * units.rad &lt;br /&gt;
&lt;br /&gt;
gun = GenAlg(&amp;quot;ParticleGun&amp;quot;, SignalProvider=guntool)&lt;br /&gt;
gun.hepmc.Path = &amp;quot;hepmc&amp;quot;&lt;br /&gt;
&lt;br /&gt;
writer = HepMCFileWriter(&amp;quot;HepMCFileWriter&amp;quot;)&lt;br /&gt;
writer.hepmc.Path=&amp;quot;hepmc&amp;quot;&lt;br /&gt;
&lt;br /&gt;
hepmc_converter = HepMCToEDMConverter(&amp;quot;Converter&amp;quot;)&lt;br /&gt;
hepmc_converter.hepmc.Path=&amp;quot;hepmc&amp;quot;&lt;br /&gt;
hepmc_converter.genparticles.Path=&amp;quot;allGenParticles&amp;quot;&lt;br /&gt;
hepmc_converter.genvertices.Path=&amp;quot;allGenVertices&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some parameters can be changed:&lt;br /&gt;
* PdgCodes - a list containing particles PDG codes to generate&lt;br /&gt;
* MomentumMin - a minimum particle momentum&lt;br /&gt;
* MomentumMax - a maximum particle momentum&lt;br /&gt;
* ThetaMin - a minimum theta angle&lt;br /&gt;
* ThetaMax - a maximum theta angle&lt;br /&gt;
* PhiMin - a minimum phi angle&lt;br /&gt;
* PhiMax - a maximum phi angle&lt;br /&gt;
&lt;br /&gt;
=== EvtGen ===&lt;br /&gt;
&lt;br /&gt;
More information about EvtGen is [https://ctd.inp.nsk.su/wiki/index.php/Event_generators here].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;EvtGen&amp;lt;/code&amp;gt; interface has the following parameters:&lt;br /&gt;
* &amp;lt;code&amp;gt;dec&amp;lt;/code&amp;gt; - EvtGen users decay file. It can be one of the included in Aurora files or absolute path to your own decay file. Inclusive MC generation does not require user decay file&lt;br /&gt;
* &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt; - root particle for EvtGen. &amp;lt;code&amp;gt;vpho&amp;lt;/code&amp;gt; (virtual photon) should be used for non-resonant processes&lt;br /&gt;
** Acceptable root particles: &amp;lt;code&amp;gt;vpho&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;J/psi&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;psi(2S)&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;psi(3770)&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;psi(4040)&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;psi(4160)&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;psi(4415)&amp;lt;/code&amp;gt;. For more details see Generation/GenTools/GenWrappers/python/EvtGenTools.py in Aurora.&lt;br /&gt;
* &amp;lt;code&amp;gt;ecms&amp;lt;/code&amp;gt; - center-of-mass energy (mass of the root particle). The parameter &amp;lt;code&amp;gt;ecms&amp;lt;/code&amp;gt; must be set for virtual photon while for other root particles (&amp;lt;math&amp;gt;J/\psi&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\psi(2S)&amp;lt;/math&amp;gt;, ...) this parameter is optional. Mean mass of the root particle is adopted if &amp;lt;code&amp;gt;ecms&amp;lt;/code&amp;gt; is omitted.&lt;br /&gt;
* &amp;lt;code&amp;gt;nevt&amp;lt;/code&amp;gt; - number if events to be gnerated&lt;br /&gt;
* &amp;lt;code&amp;gt;ip&amp;lt;/code&amp;gt; - uniform 3D smearing (in mm) for the primary vertex&lt;br /&gt;
* &amp;lt;code&amp;gt;ofile&amp;lt;/code&amp;gt; - output file name&lt;br /&gt;
One can change these parameters to change behaviour of EvtGen and to produce arbitrary MC sample.&lt;br /&gt;
&lt;br /&gt;
== SctParSim ==&lt;br /&gt;
&lt;br /&gt;
To run the parametric simulation, the script has to have two lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
from Configurables import SctParSimAlg&lt;br /&gt;
sct_alg = SctParSimAlg('SctAlg')&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To change some detector parameters, write strings of the following structure&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sct_alg.detectorSubsystemName.parameter = mean&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The full parameters list is [https://ctd.inp.nsk.su/wiki/index.php/Parametric_simulation here].&lt;br /&gt;
&lt;br /&gt;
== Analysis ==&lt;br /&gt;
&lt;br /&gt;
The analysis tool has the following parameters:&lt;br /&gt;
* EventLoader&lt;br /&gt;
** pcl.Path - a branch (in the input ROOT-file) for reading&lt;br /&gt;
** plists - a partilce list for further analisis. if it is necessary to consider not only positive, but also negative particles, the label &amp;quot;сс&amp;quot; is used. For example &amp;lt;code&amp;gt;[['K+ cc'], ['pi+ cc']]&amp;lt;/code&amp;gt;. Also it is possible to write a kinematic constraint; for example &amp;lt;code&amp;gt;[['K+ cc', 'p &amp;gt; 0.5'], ['pi+ cc']]&amp;lt;/code&amp;gt;  (kaons don't have the momentum less then 0.5 GeV)&lt;br /&gt;
&lt;br /&gt;
* ParticleCombinerAlg&lt;br /&gt;
** decStr - an investigated decay&lt;br /&gt;
** cutStr - a selection criteria&lt;br /&gt;
** selfConj - if neutral particle &amp;lt;code&amp;gt;True&amp;lt;/code&amp;gt;, else &amp;lt;code&amp;gt;False&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* NtupleAlg&lt;br /&gt;
** vars - a list contains the particle parameters to write an output file. A particle in the decay string can be selected using the &amp;quot;^&amp;quot; symbol. If a decay isn't written (&amp;lt;code&amp;gt;''&amp;lt;/code&amp;gt;), the information about parameters will be about a parent particle.&lt;br /&gt;
&lt;br /&gt;
More information about the analysis tool is [https://ctd.inp.nsk.su/wiki/index.php/Use_Analysis_package here].&lt;br /&gt;
&lt;br /&gt;
== Podio output ==&lt;br /&gt;
&lt;br /&gt;
It is possible to write the particle parameters to a ROOT file.&lt;br /&gt;
&lt;br /&gt;
You have to import the library &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
from Configurables import PodioOutput&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and to create the algorithm instance&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
out = PodioOutput('out', filename=ofile)&lt;br /&gt;
out.outputCommands = [&amp;quot;keep *&amp;quot;]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The reading algorithm has the parameter: filename - an output file name.&lt;br /&gt;
&lt;br /&gt;
== Running algorithm ==&lt;br /&gt;
&lt;br /&gt;
Some necessary parametrs to run the algorithms:&lt;br /&gt;
* TopAlg - a list of the using algorithms&lt;br /&gt;
* EvtMax - a number of events&lt;/div&gt;</summary>
		<author><name>Razuvaev</name></author>	</entry>

	</feed>