I don't understand your question. Where do you want to include the second code block? What are the two different statements you want to access? And from where do you want to access them?
Your first code block seems to be a fragment only?
But for doing that I need access to the pointers muu->pdgid() and elecc->pdgid(), and I don't know how to access them because they are in two different for conditions:
And I want to run it for the condition ( elecc->pt() > muu->pt() ) or the condition ( muu->pt() > elecc->pt() ) but I just don't know to access to both pointers (that point to the maximum value of the array) elecc->pt() and muu->pt() in the same statement.