# Production process of particles with TVirtualMC

**URL:** <https://root-forum.cern.ch/t/production-process-of-particles-with-tvirtualmc/50378>\
**Category:** Newbie\
**Tags:** root\
**Created:** [June 13, 2022, 8:46am UTC](https://root-forum.cern.ch/t/production-process-of-particles-with-tvirtualmc/50378 "2022-06-13T08:46:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cas](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/77aa72/32.png) [@Cas](https://root-forum.cern.ch/u/Cas)\
**Post date:** [June 13, 2022, 8:46am UTC](https://root-forum.cern.ch/t/production-process-of-particles-with-tvirtualmc/50378/1 "2022-06-13T08:46:21Z")

</div>

Dear all,

I am trying to figure out how to get the production process of a particle in an event in with TVirtualMC. This class has a function has a function ProdProcess() which takes the parameter Int\_t isec. What is this parameter?

Is this the way to figure out via which production process the current particle is produced?  
If not, is there someone that knows how to figure this out?

Kind regards,  
Cas

\_ROOT Version: v6-24-06  
\_Platform: Ubuntu 20.04.4 LTS  
\_Compiler: C++

* * *

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [June 14, 2022, 7:39am UTC](https://root-forum.cern.ch/t/production-process-of-particles-with-tvirtualmc/50378/2 "2022-06-14T07:39:21Z")

</div>

@ivana, can you please help here ?  
Thank you

---

<div class="post-metadata">

**Author:** ![Cas](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/77aa72/32.png) [@Cas](https://root-forum.cern.ch/u/Cas)\
**Post date:** [June 15, 2022, 9:23am UTC](https://root-forum.cern.ch/t/production-process-of-particles-with-tvirtualmc/50378/3 "2022-06-15T09:23:54Z")

</div>

I solved my problem, but in a different way.  
I do not have the answer to the question I posed, unfortunately.

---

<div class="post-metadata">

**Author:** ![ivana](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/i/91b2a8/32.png) [@ivana](https://root-forum.cern.ch/u/ivana)\
**Post date:** [June 25, 2022, 10:06am UTC](https://root-forum.cern.ch/t/production-process-of-particles-with-tvirtualmc/50378/4 "2022-06-25T10:06:56Z")

</div>

Hello,

The TVirtualMC class is documented at:  
[https://vmc-project.github.io/vmc/classTVirtualMC.html](https://vmc-project.github.io/vmc/classTVirtualMC.html)

The `ProdProcess()` function description:  
“Return the VMC code of the process that has produced the secondary particles in the current step.”

The` isec` parameter is the number of the secondary particle.

Best regards,

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [July 9, 2022, 10:07am UTC](https://root-forum.cern.ch/t/production-process-of-particles-with-tvirtualmc/50378/5 "2022-07-09T10:07:37Z")

</div>

Closed on July 9, 2022, 10:07am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
