]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EPOS/TEpos.cxx
removed warning
[u/mrichter/AliRoot.git] / EPOS / TEpos.cxx
index b0381d0a2719442ebd1640b516d147212b1bcfb6..b894541c2f4d01e9fc2e0d98bec6e735f27c3404 100644 (file)
@@ -77,22 +77,31 @@ TEpos::~TEpos() {
 
 TEpos& TEpos::operator=(const TEpos& epos) {
   //operator=
-       if (this != &epos) {
-           if (!fIdConverter) fIdConverter = new AliGenEposIsajetToPdgConverter();
-           fLaproj = epos.fLaproj;
-           fMaproj = epos.fMaproj;
-           fLatarg = epos.fLatarg;
-           fMatarg = epos.fMatarg;
-           fBminim = epos.fBminim;
-           fBmaxim = epos.fBmaxim;
-           fPhimin = epos.fPhimin;
-           fPhimax = epos.fPhimax;
-           fEcms   = epos.fEcms;
-           fSplitting = epos.fSplitting;
-//         fNoDecays = epos.fNoDecays;
-//         fExtraInputLines = epos.dExtraInputLines;
-       }
-       return *this;
+  if (this != &epos) {
+    if (fIdConverter) {
+       delete fIdConverter;
+       fIdConverter = new AliGenEposIsajetToPdgConverter(*epos.fIdConverter);
+    } else{
+       fIdConverter = 0;
+    }
+    fLaproj = epos.fLaproj;
+    fMaproj = epos.fMaproj;
+    fLatarg = epos.fLatarg;
+    fMatarg = epos.fMatarg;
+    fBminim = epos.fBminim;
+    fBmaxim = epos.fBmaxim;
+    fPhimin = epos.fPhimin;
+    fPhimax = epos.fPhimax;
+    fEcms   = epos.fEcms;
+    fSplitting = epos.fSplitting;
+    for(UInt_t i = 0; i < epos.fNoDecays.size(); ++i) {
+      fNoDecays.push_back(epos.fNoDecays[i]);
+    }
+    for(UInt_t i = 0; i < epos.fExtraInputLines.size(); ++i) {
+      fExtraInputLines.push_back(epos.fExtraInputLines[i]);
+    }
+  }
+  return *this;
 }
 
 void TEpos::Initialize() {