Add a branch stub_idx to the output TTree (the index of the stub in the pattern recognition input file)