]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliDecayerPolarized.cxx
Wrongly deleted code is restored
[u/mrichter/AliRoot.git] / EVGEN / AliDecayerPolarized.cxx
index 46218434bbc6168fde92e4a69a48973049a1c7ce..a99811661e365462a59c7b9757586a01ad51692b 100644 (file)
 
 ClassImp(AliDecayerPolarized)
 
+
+
 //____________________________________________________________
-AliDecayerPolarized::AliDecayerPolarized():AliDecayer()
+AliDecayerPolarized::AliDecayerPolarized():
+    fAlpha(0),
+    fSystRef(kHelicity),
+    fDecProd(kMuon),
+    fPol(new TF1("dsigdcostheta","1.+[0]*x*x",-1.,1.)),
+    fMother(0),
+    fDaughter1(0),
+    fDaughter2(0)
 {
 // Default constructor
-    fAlpha=0;
-    fSystRef=kHelicity;
-    fDecProd=kMuon;
-    fMother=0;
-    fDaughter1=0;
-    fDaughter2=0;
-    fPol = new TF1("dsigdcostheta","1.+[0]*x*x",-1.,1.);
     fPol->SetParameter(0,fAlpha);
 }
 
 //____________________________________________________________
-AliDecayerPolarized::AliDecayerPolarized(Double_t alpha, Polar_t systref, FinState_t decprod):AliDecayer()
+AliDecayerPolarized::AliDecayerPolarized(Double_t alpha, Polar_t systref, FinState_t decprod):
+    fAlpha(alpha),
+    fSystRef(systref),
+    fDecProd(decprod),
+    fPol(new TF1("dsigdcostheta","1.+[0]*x*x",-1.,1.)),
+    fMother(0),
+    fDaughter1(0),
+    fDaughter2(0)
 {
 // Another constructor
-    fAlpha=alpha;
-    fSystRef=systref;
-    fDecProd=decprod;
-    fMother=0;
-    fDaughter1=0;
-    fDaughter2=0;
-    fPol = new TF1("dsigdcostheta","1.+[0]*x*x",-1.,1.);
     fPol->SetParameter(0,fAlpha);
     if(fDecProd!=kMuon && fDecProd!=kElectron)
-    AliFatal("Only polarized decay into muons or electrons is implemented!");
+       AliFatal("Only polarized decay into muons or electrons is implemented!");
+}
+
+AliDecayerPolarized::AliDecayerPolarized(const AliDecayerPolarized &decayer):
+    AliDecayer(decayer),
+    fAlpha(0),
+    fSystRef(kHelicity),
+    fDecProd(kMuon),
+    fPol(new TF1("dsigdcostheta","1.+[0]*x*x",-1.,1.)),
+    fMother(0),
+    fDaughter1(0),
+    fDaughter2(0)   
+{
+    // Copy Constructor
+    decayer.Copy(*this);
 }
 
 //____________________________________________________________
@@ -159,3 +175,42 @@ 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");
+}
+
+void AliDecayerPolarized::SetForceDecay(Int_t)
+{
+    // This method is dummy
+}
+
+void AliDecayerPolarized::ForceDecay()
+{
+    // This method is dummy
+    AliWarning("Method not implemented for this class !\n");
+}
+
+Float_t AliDecayerPolarized::GetPartialBranchingRatio(Int_t)
+{
+    // This method is dummy
+    return  1.;
+}
+
+Float_t AliDecayerPolarized::GetLifetime(Int_t)
+{
+    // This method is dummy
+    AliWarning("Method not implemented for this class !\n");
+    return -1.;
+}
+
+void AliDecayerPolarized::ReadDecayTable()
+{
+    // This method is dummy
+    AliWarning("Method not implemented for this class !\n");
+}
+