]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Overcome a problem with CINT and CMake
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 12 Jan 2011 12:08:09 +0000 (12:08 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 12 Jan 2011 12:08:09 +0000 (12:08 +0000)
RALICE/AliHelix.cxx
RALICE/AliHelix.h

index 3ebafe5c56410621b60b67da83918fb5916d5891..2225486082964546d322ad99950962cec1d8429f 100644 (file)
 ///////////////////////////////////////////////////////////////////////////
 
 #include <cstdlib>
-#include "AliHelix.h"
 #include "Riostream.h"
+#include "TPolyMarker3D.h"
+#include "AliPosition.h"
+#include "AliTrack.h"
+#include "AliEvent.h"
+#include "AliHelix.h"
  
 ClassImp(AliHelix) // Class implementation to enable ROOT I/O
  
@@ -173,20 +177,20 @@ AliHelix::AliHelix() : THelix()
  fLineColor=-1;
 }
 ///////////////////////////////////////////////////////////////////////////
-AliHelix::~AliHelix()
-{
-// Destructor to delete dynamically allocated memory.
- if (fCurves)
- {
-  delete fCurves;
-  fCurves=0;
- }
- if (fExt)
- {
-  delete fExt;
-  fExt=0;
- }
-}
+// AliHelix::~AliHelix()
+// {
+// // Destructor to delete dynamically allocated memory.
+//  if (fCurves)
+//  {
+//   delete fCurves;
+//   fCurves=0;
+//  }
+//  if (fExt)
+//  {
+//   delete fExt;
+//   fExt=0;
+//  }
+// }
 ///////////////////////////////////////////////////////////////////////////
 AliHelix::AliHelix(const AliHelix& h) : THelix(h)
 {
index 69ea0c1012faa39af8942ce140352350198e1612..76ec9e0057453955e76cfd34839d970ca653f62f 100644 (file)
@@ -7,17 +7,31 @@
 
 #include "THelix.h"
 #include "TObjArray.h"
-#include "TPolyMarker3D.h"
 
 #include "Ali3Vector.h"
-#include "AliTrack.h"
-#include "AliEvent.h"
+
+class AliEvent;
+class AliTrack;
+class AliPosition;
  
 class AliHelix : public THelix
 {
  public:
   AliHelix();                  // Default constructor
-  virtual ~AliHelix();         // Destructor
+  virtual ~AliHelix()
+    {
+      // Destructor to delete dynamically allocated memory.
+      if (fCurves)
+       {
+         delete fCurves;
+         fCurves=0;
+       }
+      if (fExt)
+       {
+         delete fExt;
+         fExt=0;
+       }
+    }
   AliHelix(const AliHelix& h); // Copy constructor
   void SetB(Ali3Vector& b);    // Set the magnetic field vector in Tesla
   Ali3Vector& GetB();          // Provide the magnetic field vector in Tesla