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 093bde1..d36854d 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, "");