Added missing destructor
authordainesea <dainesea@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 25 Jun 2013 20:03:59 +0000 (20:03 +0000)
committerdainesea <dainesea@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 25 Jun 2013 20:03:59 +0000 (20:03 +0000)
PWGHF/CMakelibPWGHFvertexingHF.pkg
PWGHF/PWGHFvertexingHFLinkDef.h
PWGHF/vertexingHF/upgrade/AliAnalysisTaskCountLcEta.cxx
PWGHF/vertexingHF/upgrade/AliAnalysisTaskCountLcEta.h

index 338f461..2b6eb1e 100644 (file)
@@ -81,6 +81,8 @@ set ( SRCS
     vertexingHF/charmFlow/AliAnalysisTaskSEHFv2.cxx
     vertexingHF/charmFlow/AliHFAfterBurner.cxx
     vertexingHF/charmFlow/AliAnalysisTaskFlowD2H.cxx
+    vertexingHF/upgrade/AliAnalysisTaskSELambdacUp.cxx
+    vertexingHF/upgrade/AliAnalysisTaskCountLcEta.cxx
     )
 
 string ( REPLACE ".cxx" ".h" HDRS "${SRCS}" )
index 07b4a44..dda05f5 100644 (file)
@@ -59,6 +59,8 @@
 #pragma link C++ class AliAnalysisTaskSEHFv2+;
 #pragma link C++ class AliAnalysisTaskFlowD2H+;
 #pragma link C++ class AliHFAfterBurner+;
+#pragma link C++ class AliAnalysisTaskSELambdacUp+;
+#pragma link C++ class AliAnalysisTaskCountLcEta+;
 
 
 #endif
index fe81111..331ba67 100644 (file)
@@ -117,6 +117,20 @@ AliAnalysisTaskCountLcEta::AliAnalysisTaskCountLcEta(): AliAnalysisTaskSE()
 
 }
 
+//________________________________________________________________________
+AliAnalysisTaskCountLcEta::~AliAnalysisTaskCountLcEta()
+{
+  // Destructor
+
+  if(fESD) { delete fESD; fESD=0; }
+  if(fAOD) { delete fAOD; fAOD=0; }
+  if(fhNevt) { delete fhNevt; fhNevt=0; }
+  if(fCuts) { delete [] fCuts; fCuts=0; }
+  if(fCutNames) { delete [] fCutNames; fCutNames=0; }
+  if(fOutList) { delete fOutList; fOutList=0; }
+
+
+}
 //__________________________________________________________________
 void AliAnalysisTaskCountLcEta::UserCreateOutputObjects() {
   // Create histograms. Called once
index 7b590f8..6960c09 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef AliAnalysisTaskCountLcEta_H
-#define AliAnalysisTaskCountLcEta_H
+#ifndef ALIANALYSISTASKCOUNTLCETA_H
+#define ALIANALYSISTASKCOUNTLCETA_H
 
 /* Copyright(c) 1998-2008, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 //#                                                   #
 //#####################################################
 
+class TParticle;
 class TString;
+class TList;
+class TH1F;
 class TLoretzVector;
 class AliESDEvent;
 class AliAODEvent;
@@ -81,7 +84,8 @@ class AliAnalysisTaskCountLcEta : public AliAnalysisTaskSE {
   TString* fCutNames; //[fNcuts] names of the cuts variables
   Double_t fLooserPtTrack; // pt cut
   Double_t fInvMassCut;   // inv mass cut
-  ClassDef(AliAnalysisTaskCountLcEta, 1); // class to study Lc acceptance vs eta
+
+  ClassDef(AliAnalysisTaskCountLcEta,1); // class to study Lc acceptance vs eta
 };
 
 #endif