Production process of particles with TVirtualMC

Dear all,

I am trying to figure out how to get the production process of a particle in an event in O2.
The TVirtualMC class
has a function ProdProcess()
Which takes the parameter Int_t isec. Does anyone know what this parameter is?

Is this the way to figure out via which production process the current particle is produced?

Kind regards,