Correction in the memory managemen. Adding new getter
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 6 Feb 2004 10:11:08 +0000 (10:11 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 6 Feb 2004 10:11:08 +0000 (10:11 +0000)
STEER/AliESDCaloTrack.h

index 31b0cd4d52a562d3d85b6470cebac38e70ef3516..32a034939bf0aba3dfe7663396949373a1f88eca 100644 (file)
@@ -20,13 +20,15 @@ class AliESDCaloTrack : public TObject {
 public:
   AliESDCaloTrack(): TObject(), fRecParticle(0) {}
   virtual ~AliESDCaloTrack() {
-    delete fRecParticle;
+    //PH    delete fRecParticle;
   }
   AliESDCaloTrack(TParticle* recpart);
   Float_t Px() { return fRecParticle->Px(); }
   Float_t Py() { return fRecParticle->Py(); }
   Float_t Pz() { return fRecParticle->Pz(); }
 
+  TParticle * GetRecParticle() {return fRecParticle;}
+
 private:
   TParticle *fRecParticle; // reconstructed particle from PHOS or EMCAL