]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Updates needed to avoid warnings.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 22 Mar 2006 12:25:38 +0000 (12:25 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 22 Mar 2006 12:25:38 +0000 (12:25 +0000)
EVGEN/AliDecayerPolarized.cxx
EVGEN/AliDecayerPolarized.h

index 46218434bbc6168fde92e4a69a48973049a1c7ce..8facde37f4d1d94c65c4b596aaa3acdc8ca3b4e9 100644 (file)
@@ -28,7 +28,7 @@
 ClassImp(AliDecayerPolarized)
 
 //____________________________________________________________
-AliDecayerPolarized::AliDecayerPolarized():AliDecayer()
+AliDecayerPolarized::AliDecayerPolarized():AliDecayerPythia()
 {
 // Default constructor
     fAlpha=0;
@@ -42,7 +42,7 @@ AliDecayerPolarized::AliDecayerPolarized():AliDecayer()
 }
 
 //____________________________________________________________
-AliDecayerPolarized::AliDecayerPolarized(Double_t alpha, Polar_t systref, FinState_t decprod):AliDecayer()
+AliDecayerPolarized::AliDecayerPolarized(Double_t alpha, Polar_t systref, FinState_t decprod):AliDecayerPythia()
 {
 // Another constructor
     fAlpha=alpha;
@@ -159,3 +159,12 @@ Int_t AliDecayerPolarized::ImportParticles(TClonesArray *part)
 
   return part->GetEntries();
 }
+
+void  AliDecayerPolarized::Copy(TObject &) const
+{
+    //
+    // Copy *this onto AliDecayerPolarized -- not implemented
+    //
+    Fatal("Copy","Not implemented!\n");
+}
+
index 56d318e160331145c501b3a83fb930b1f9c2a8f3..ffa6179e4a961f0e0dd740ea21bc953025e1d12b 100644 (file)
@@ -9,16 +9,18 @@
 #include <TClonesArray.h>
 #include <TF1.h>
 
-#include "AliDecayer.h"
+#include "AliDecayerPythia.h"
 
 
-class AliDecayerPolarized : public AliDecayer
+class AliDecayerPolarized : public AliDecayerPythia
 {
  public:
     typedef enum { kNoPol = 0, kColSop = 1, kHelicity = 2} Polar_t;
     typedef enum { kElectron = 1, kMuon = 2} FinState_t;
   AliDecayerPolarized();
   AliDecayerPolarized(Double_t alpha, Polar_t systref, FinState_t decprod);
+  AliDecayerPolarized(const AliDecayerPolarized &decayer):AliDecayerPythia(decayer)
+      {decayer.Copy(*this);}
   virtual ~AliDecayerPolarized();
   void SetPolDec(Double_t alpha=0) {fAlpha=alpha;}
   void SetPolRefSys(Polar_t systref=kColSop) {fSystRef=systref;}
@@ -26,9 +28,9 @@ class AliDecayerPolarized : public AliDecayer
   virtual void Init(){;}
   virtual void Decay(Int_t ipart, TLorentzVector *p);
   virtual Int_t ImportParticles(TClonesArray *part);
-  AliDecayerPolarized(const AliDecayerPolarized &decayer):AliDecayer(decayer)
-      {decayer.Copy(*this);}
-  virtual AliDecayerPolarized &operator=(const AliDecayerPolarized &decayer) 
+  void  Copy(TObject &decayer) const;
+  
+  AliDecayerPolarized &operator=(const AliDecayerPolarized &decayer) 
       {decayer.Copy(*this);return(*this);}
     
  protected: