Fix error in muon sequence

When running the master branch with the Muon sequence, there are errors that prevent the application from running correctly.

Note that in order to compile the Muon sequence, now this has to be specified explicitly like so:

cmake -DSEQUENCE=Muon -DCMAKE_BUILD_TYPE=Debug ..
make -j

Note that these errors don't appear if one only runs with the provided 10 events. Note as well that these errors disappear if the sequence is configured as the DefaultSequence instead, where the three muon-related kernels are not executed.

The errors can be seen with the following conditions:

  • Running with all the minbias events and -t 8 -r 10, for instance -n 1000 -r 10 -t 8
  • Running with all the minbias events and nvprof
  • Running with all the minbias events and cuda-gdb

Here is a comprehensive run:

https://ybin.me/p/92c62773169cce2a#kSQ9sJFqYJXMSLbCNvi5ByN2F839eiHngHG7vCwjs2U=

If run with cuda-gdb, a cryptic error appears:

https://ybin.me/p/db5af2aacc8b2cc9#xsR7UYrhWDamFm69oT/Sq8xzXuFS0w0r8QFYVteob60=

I suggest to look at the is_muon kernel, as that alone triggers this behaviour.

@mbelous @popovs could you please have a look?

Edited by Daniel Hugo Campora Perez