Fixing MCShowerQFrac function to return appropriate data type