]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fix bugs reported by Rene
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 19 Nov 2001 08:44:08 +0000 (08:44 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 19 Nov 2001 08:44:08 +0000 (08:44 +0000)
TRD/AliTRDdigitizer.cxx
TRD/AliTRDpid.cxx
TRD/AliTRDsegmentArrayBase.cxx
TRD/AliTRDsimple.cxx
TRD/AliTRDsimple.h
TRD/AliTRDtimeBin.h
TRD/AliTRDtrackingSector.cxx

index fba239fa26446166f2bea60cd6c193a87736c35c..d4742ce915faf78fb99d5e457889fc0f6074b7a1 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.29  2001/11/14 19:44:25  hristov
+Numeric const casted (Alpha)
+
 Revision 1.28  2001/11/14 16:35:58  cblume
 Inherits now from AliDetector
 
@@ -328,6 +331,17 @@ AliTRDdigitizer::~AliTRDdigitizer()
     delete fSDigitsManagerList;
     fSDigitsManagerList = NULL;
   }
+
+  if (fTRFsmp) {
+    delete fTRFsmp;
+    fTRFsmp = NULL;
+  }
+
+  if (fPRFsmp) {
+    delete fPRFsmp;
+    fPRFsmp = NULL;
+  }
+
 }
 
 //_____________________________________________________________________________
index 52218732943f6533f67d76cbd6e4d8b5760566fc..6f06f7138ac4f31cef69247b7e04141691571a63 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.3  2001/11/14 10:50:46  cblume
+Changes in digits IO. Add merging of summable digits
+
 Revision 1.2  2001/11/06 17:19:41  cblume
 Add detailed geometry and simple simulator
 
@@ -124,7 +127,10 @@ AliTRDpid::~AliTRDpid()
     fTrackArray = NULL;
   }
 
-  fFileKine->Close();
+  if (fFileKine) {
+    delete fFileKine;
+    fFileKine = NULL;
+  }
 
 }
 
index e0be596ca4af6ad2d11de51e9af0e887d6d15bf8..714cb9a7ef7e146c2c208d08c671aa77a291e099 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.10  2001/08/30 09:31:22  hristov
+The operator[] is replaced by At() or AddAt() in case of TObjArray.
+
 Revision 1.9  2001/07/27 13:03:15  hristov
 Default Branch split level set to 99
 
@@ -138,7 +141,6 @@ AliTRDsegmentArrayBase::~AliTRDsegmentArrayBase()
 
   if (fTree)      delete fTree;
   if (fTreeIndex) delete fTreeIndex;
-  if (fClass)     delete fClass;
 
 }
 
@@ -179,10 +181,6 @@ Bool_t AliTRDsegmentArrayBase::SetClass(Text_t *classname)
   // Sets the classname of the stored object
   //
 
-  if (fClass   != 0) {
-    delete fClass;
-    fClass = 0;
-  }
   if (fTree    != 0) {
     delete fTree;
     fTree      = 0;
index 1cb09ff374f96e173cd44498680189ef23e1b943..62abfb09c352e5eb2ce996acb8dd390ea25999ea 100644 (file)
  **************************************************************************/
  
 /*
-$Log$                                                          
+$Log$
+Revision 1.1  2001/11/06 17:19:41  cblume
+Add detailed geometry and simple simulator
+                                                          
 */
  
 ///////////////////////////////////////////////////////////////////////////////
@@ -38,10 +41,7 @@ AliTRDsimple::AliTRDsimple():TObject()
   // AliTRDsimple default constructor
   //
 
-  fGenerator = new AliTRDsimpleGen();
-
-  // Create the MC object
-  new AliTRDsimpleMC("simple","Simplified Monte Carlo");
+  fGenerator = NULL;
                                                          
 }                                                                               
  
@@ -81,6 +81,20 @@ AliTRDsimple &AliTRDsimple::operator=(const AliTRDsimple &s)
  
 }
  
+//_____________________________________________________________________________
+void AliTRDsimple::Init()
+{
+  //
+  // Initialization
+  //
+
+  fGenerator = new AliTRDsimpleGen();
+
+  // Create the MC object
+  new AliTRDsimpleMC("simple","Simplified Monte Carlo");
+                                                         
+}
 //_____________________________________________________________________________
 void AliTRDsimple::Copy(TObject &s)
 {
index 0c08d2557b8c2744b6c637db69992c85ad21b463..f704d012ffe7431bda3b8bc9b99f3501effb966b 100644 (file)
@@ -19,6 +19,7 @@ class AliTRDsimple : public TObject {
   virtual ~AliTRDsimple();
   AliTRDsimple &operator=(const AliTRDsimple &s);    
 
+  virtual void             Init();
   virtual void             Copy(TObject &s);
   virtual void             ProcessEvent(Int_t ievent);
 
index 884ed9c48756e2eb3d164a02bfb6c75c0af3a2e8..01ff9e5f54bccf79f7b5bae157cbecac88a4a748 100644 (file)
@@ -20,6 +20,7 @@ class AliTRDtimeBin : public TObject {
 public: 
 
   AliTRDtimeBin();
+  virtual ~AliTRDtimeBin() { };
   void InsertCluster(AliTRDcluster*,UInt_t);
  
   operator Int_t() const {return fN;}
index 68a517135cb5f1d0f0a4cb672193f1d74956b93b..aecfbc53bb13eb0ffbeced0a1990cfd9c65e2086 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.6  2001/05/28 17:07:58  hristov
+Last minute changes; ExB correction in AliTRDclusterizerV1; taking into account of material in G10 TEC frames and material between TEC planes (C.Blume,S.Sedykh)
+
 Revision 1.5  2000/12/08 16:07:02  cblume
 Update of the tracking by Sergei
 
@@ -55,7 +58,7 @@ AliTRDtrackingSector::~AliTRDtrackingSector()
   // Destructor
   //
 
-  delete[] fTimeBin;
+  delete fTimeBin;
 
 }