Wrong result with proof

I have a std::vector variable ph_isPhotonTight, its elements are equal to 0 or 1. In the Process method I do:

       for (unsigned int j = 0; j < ph_isPhotonTight->size(); ++j)
          if ((*ph_isPhotonTight)[j])

in the Terminate method I do:

std::cout << htemp->GetEntries() << std::endl;

I get a number, but if from an interactive session I do:


I get a little different number!


Why do you claim that this is a PROOF problem?
What do you get from chain.Process(“Selector.C”) w/o PROOF?

G. Ganis

sorry, my fault. I got the correct value with tree.Draw