]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliDimuCombinator.cxx
MC-dependent part of AliRun extracted in AliMC (F.Carminati)
[u/mrichter/AliRoot.git] / EVGEN / AliDimuCombinator.cxx
index 12f70e2283f2c5b6a46d4aa6786fc5495a272856..4d64b095f9044f9f103401a8e8f90a36aab147e0 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/*
-$Log$
-Revision 1.10  2001/03/27 11:14:54  morsch
-Weight calculation for correlated particles updated:
-- Decay probability is counted once if muons are decay products
-of the same mother particle. Otherwise,  it's counted twice.
-
-Revision 1.9  2001/03/08 13:30:43  morsch
-Make it work with particle stack of V3.05.
-
-Revision 1.8  2000/12/21 16:24:06  morsch
-Coding convention clean-up
-
-Revision 1.7  2000/10/02 15:16:37  morsch
-Correct coding rule violation for member data names of type fi -> fI.
-
-Revision 1.6  2000/06/14 15:19:47  morsch
-Include clean-up (IH)
-
-Revision 1.5  2000/06/09 20:35:32  morsch
-All coding rule violations except RS3 corrected
-
-Revision 1.4  2000/03/20 18:03:24  morsch
-Change muon particle code to PDG code.
-
-Revision 1.3  1999/09/29 09:24:08  fca
-Introduction of the Copyright and cvs Log
-
-*/
+/* $Id$ */
 
 /*  
  Class for dimuon analysis and fast dimuon simulation.
@@ -51,15 +23,16 @@ Introduction of the Copyright and cvs Log
  andreas.morsch@cern.ch
 */
 
-
-#include "AliDimuCombinator.h" 
-#include "AliPDG.h" 
-#include "AliRun.h" 
-#include <TRandom.h>
 #include <TClonesArray.h>
 #include <TParticle.h>
+#include <TPDGCode.h> 
+#include <TRandom.h>
 #include <TTree.h>
 
+#include "AliDimuCombinator.h" 
+#include "AliRun.h" 
+#include "AliMC.h"
+
 //
 ClassImp(AliDimuCombinator)
     AliDimuCombinator::AliDimuCombinator() 
@@ -82,8 +55,10 @@ ClassImp(AliDimuCombinator)
 }
 
 AliDimuCombinator::AliDimuCombinator(const AliDimuCombinator & combinator)
+    :TObject(combinator)
 {
 // Dummy copy constructor
+    combinator.Copy(*this);
 }
 
 
@@ -92,7 +67,7 @@ AliDimuCombinator::AliDimuCombinator(const AliDimuCombinator & combinator)
 // 
 TParticle* AliDimuCombinator::Particle(Int_t i)
 {
-    return gAlice->Particle(i);
+    return gAlice->GetMCApp()->Particle(i);
 }
 
 TParticle* AliDimuCombinator::FirstMuon()
@@ -516,14 +491,15 @@ return part->GetPdgCode();
 AliDimuCombinator& AliDimuCombinator::operator=(const  AliDimuCombinator& rhs)
 {
 // Assignment operator
+    rhs.Copy(*this);
     return *this;
 }
 
 
-void AliDimuCombinator::Copy(AliDimuCombinator &combi) const
+void AliDimuCombinator::Copy(AliDimuCombinator&) const
 {
   //
-  // Copy *this onto lego -- not implemented
+  // Copy 
   //
   Fatal("Copy","Not implemented!\n");
 }