Bool_t AliMultiEventInputHandler::Notify(const char */*path*/)
{
// Connect to new tree
-
+
TList* connectedList = (TList*) (fTree->GetUserInfo()->FindObject("AODObjectsConnectedToTree"));
if (connectedList && !fInit) {
fEventBuffer[0]->ReadFromTree(fTree, "reconnect");
// Actions before analysis of each event
//
// Reset the number of events buffered for this bin to 0
+
if (fCurrentBin != (fEventPool->BinNumber())) {
fCurrentBin = fEventPool->BinNumber();
fNBuffered = 0;
// Connect the next event in the buffer to the tree
if (!fEventSkipped) fIndex++;
fIndex %= fBufferSize;
-
AliInfo(Form("Connecting buffer entry %5d", fIndex));
fEventBuffer[fIndex]->Clear();
fCurrentEvt++;
fNBuffered++;
if (fNBuffered > fBufferSize) fNBuffered = fBufferSize;
-
+
Int_t nmax = fTree->GetEntries();
if (fTree->GetEntryList()) {
nmax = (fTree->GetEntryList()->GetN());