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!