]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Corrections to destructors
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 17 Jan 2001 10:50:50 +0000 (10:50 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 17 Jan 2001 10:50:50 +0000 (10:50 +0000)
STEER/AliDetector.cxx
STEER/AliMCQA.cxx
STEER/AliMCQA.h
STEER/AliRun.cxx

index ae61b101e4ef3b72bab174622bd37350e905d121..ba4b297af72b0a3a2ef004012cc8dc0bab30b51e 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.9  2000/12/12 18:19:06  alibrary
+Introduce consistency check when loading points
+
 Revision 1.8  2000/11/30 07:12:48  alibrary
 Introducing new Rndm and QA classes
 
@@ -106,9 +109,17 @@ AliDetector::~AliDetector()
   fNdigits    = 0;
   //
   // Delete space point structure
-  if (fPoints) fPoints->Delete();
-  delete fPoints;
-  fPoints     = 0;
+  if (fPoints) {
+    fPoints->Delete();
+    delete fPoints;
+    fPoints     = 0;
+  }
+  // Delete digits structure
+  if (fDigits) {
+    fDigits->Delete();
+    delete fDigits;
+    fDigits     = 0;
+  }
 }
  
 //_____________________________________________________________________________
index adadcf5488a3dbb0379ef738f659edc3c03aed69..bc19013e456ceeee3be0220b3d84038ad2e078a2 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.3  2000/12/18 14:16:31  alibrary
+HP compatibility fix
+
 Revision 1.2  2000/12/18 11:33:48  alibrary
 New call frequence histograms per module and volume
 
@@ -147,6 +150,31 @@ AliMCQA::AliMCQA(Int_t ndets) : fMPaveLabel(0),fVPaveLabel(0)
       new TNamed(((AliModule *)(*gAlice->Modules())[i])->GetName(),"");
 }
 
+//_____________________________________________________________________________
+
+AliMCQA::~AliMCQA() {
+  if (fQAList) {
+    fQAList->Delete();
+    delete fQAList;
+    fQAList=0;
+  }
+  if (fQAHist) {
+    fQAHist->Delete();
+    delete fQAHist;
+    fQAHist=0;
+  }
+  if (fVolNames) {
+    fVolNames->Delete();
+    delete fVolNames;
+    fVolNames=0;
+  }
+  if (fModNames) {
+    fModNames->Delete();
+    delete fModNames;
+    fModNames=0;
+  }
+}
+
 //_____________________________________________________________________________
 void AliMCQA::Browse(TBrowser *b)
 {
index 53e9f959745e1404479ef1312c9ea46a1dabbd0c..8621998f128c49e00aab1774330eef30f4118a86 100644 (file)
@@ -21,7 +21,7 @@ class AliMCQA : public TObject
 public:
   AliMCQA();
   AliMCQA(Int_t ndets);
-  virtual ~AliMCQA() {delete fQAList;fQAList=0;}
+  virtual ~AliMCQA();
   Bool_t  IsFolder() const {return kTRUE;}
   virtual  void  Browse(TBrowser *b);
   virtual  void  PreTrack();
index 2e2863ecbf7fc274f1c2dc21c756d03a10a21c8b..3ad03baf5fe372d4e02aa961c4edf843917173b9 100644 (file)
 
 /*
 $Log$
+Revision 1.47  2000/12/18 10:44:01  morsch
+Possibility to set field map by passing pointer to objet of type AliMagF via
+SetField().
+Example:
+gAlice->SetField(new AliMagFCM("Map2", "$(ALICE_ROOT)/data/field01.dat",2,1.,10.));
+
 Revision 1.46  2000/12/14 19:29:27  fca
 galice.cuts was not read any more
 
@@ -297,6 +303,7 @@ AliRun::~AliRun()
   }
   delete fHitLists;
   delete fPDGDB;
+  delete fMCQA;
 }
 
 //_____________________________________________________________________________