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 4621843..8facde3 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 56d318e..ffa6179 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: