]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliV0Comparison.C
Changes required by the new ESD format (Yuri)
[u/mrichter/AliRoot.git] / STEER / AliV0Comparison.C
index b35cd85369276cdd13bfd87ee4bc74e98928486a..09a88858268ed2d1af923dfd77fef71f1b08807f 100644 (file)
@@ -164,7 +164,7 @@ Int_t AliV0Comparison(Int_t code=310, const Char_t *dir=".") {
          return 5;
       }
    }
-   AliESD* event = new AliESDEvent;
+   AliESDEvent* event = new AliESDEvent();
    TTree* esdTree = (TTree*) ef->Get("esdTree");
    if (!esdTree) {
       ::Error("AliV0Comparison.C", "no ESD tree found");
@@ -282,6 +282,7 @@ Int_t AliV0Comparison(Int_t code=310, const Char_t *dir=".") {
    } //**** End of the loop over events
 
    delete event;
+   delete esdTree;
    ef->Close();
    
    delete v0Tree;