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:

       GetEntry(entry);
       for (unsigned int j = 0; j < ph_isPhotonTight->size(); ++j)
        {
          if ((*ph_isPhotonTight)[j])
            htemp->Fill((*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:

chain.GetEntries("ph_isPhotonTight")

I get a little different number!

Hi,

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