]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Bugfix: function SetEvent() in AliRsnTarget needs to be virtual, since it is overload...
authorpulvir <pulvir@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 1 Dec 2010 17:27:23 +0000 (17:27 +0000)
committerpulvir <pulvir@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 1 Dec 2010 17:27:23 +0000 (17:27 +0000)
PWG2/RESONANCES/AliRsnCut.h
PWG2/RESONANCES/AliRsnTarget.cxx
PWG2/RESONANCES/AliRsnTarget.h

index 740925c956928c61dae3faff679569d226f764b0..c9771938122a7fd5406327179b8d71ce0ff17244 100644 (file)
@@ -29,7 +29,7 @@ class AliRsnCut : public AliRsnTarget
     AliRsnCut(const char *name, RSNTARGET target, Double_t dmin, Double_t dmax=0., Int_t    imin=0 , Int_t    imax=0 );
     AliRsnCut(const AliRsnCut& copy);
     AliRsnCut& operator=(const AliRsnCut& copy);
-    virtual ~AliRsnCut() { fEvent = 0x0; };
+    virtual ~AliRsnCut() { };
     
     Int_t            GetMinI()                  {return fMinI;}
     Int_t            GetMaxI()                  {return fMaxI;}
index 978a1b78e7865e8bae3dc501b34ae9827dc3e7b1..cc61c273ad32ceeb4ff032a9bc0d7bcc4b681139 100644 (file)
@@ -9,6 +9,8 @@
 // that the object being processed corresponds to what is expected.
 //
 
+#include "AliLog.h"
+
 #include "AliRsnEvent.h"
 #include "AliRsnDaughter.h"
 #include "AliRsnMother.h"
@@ -98,3 +100,14 @@ const char* AliRsnTarget::GetTargetTypeName() const
     default: return "Undefined";
   }
 }
+
+//______________________________________________________________________________
+void AliRsnTarget::SetEvent(AliRsnEvent *event)
+{
+//
+//
+// 
+  
+  AliDebug(AliLog::kDebug + 3, "Using implementation of mother class");
+  fEvent = event;
+}
index 0f7c2fb26c2abd8c23650262f00f4d6016fa3919..85147e4ee7e00866dde7b4dd249ea7db9ac9fc4f 100644 (file)
@@ -42,7 +42,7 @@ class AliRsnTarget : public TNamed
     Bool_t         TargetOK(TObject *object);
     
     AliRsnEvent*   GetEvent() {return fEvent;}
-    void           SetEvent(AliRsnEvent *event) {fEvent = event;}
+    virtual void   SetEvent(AliRsnEvent *event);
 
   protected: