Fix for coverity 17980
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 18 Jan 2012 10:00:15 +0000 (10:00 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 18 Jan 2012 10:00:15 +0000 (10:00 +0000)
EPOS/TEpos.cxx

index 5f364f4..b0381d0 100644 (file)
@@ -77,8 +77,20 @@ TEpos::~TEpos() {
 
 TEpos& TEpos::operator=(const TEpos& epos) {
   //operator=
-       if (!fIdConverter && (this != &epos)) {
-               fIdConverter = new AliGenEposIsajetToPdgConverter();
+       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;
 }