Read first entry of each tree to avoid crash.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 4 Nov 2009 20:54:47 +0000 (20:54 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 4 Nov 2009 20:54:47 +0000 (20:54 +0000)
ANALYSIS/AliMultiEventInputHandler.cxx

index 093bde13851ce92eb8572673828eb53b4d813eb1..d36854dc35c4b16e296b4786b33b67c46f2a89a6 100644 (file)
@@ -100,6 +100,8 @@ Bool_t AliMultiEventInputHandler::Init(TTree* tree, Option_t* /*opt*/)
 {
     // Initialisation necessary for each new tree
     fTree = tree;
+    fTree->GetEntry(0);
+    
     if (!fTree) return kFALSE;
     // Get pointer to AOD event
     fEventBuffer[0]->ReadFromTree(fTree, "");