]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSPIDv0.cxx
Add run number in ntuple (Gian Michele)
[u/mrichter/AliRoot.git] / PHOS / AliPHOSPIDv0.cxx
index a393a4f9988cedc9b031733dd014ad773c217abb..05a88db220d60f2c079bb72e2284a2549b89049d 100644 (file)
@@ -137,14 +137,18 @@ AliPHOSPIDv0 & AliPHOSPIDv0::operator = (const AliPHOSPIDv0 & rhs)
 {
   //Copy-assignment, emulates compiler generated, possibly wrong.
   AliPHOSPID::operator = (rhs);
-  fIDOptions = rhs.fIDOptions;
-  fClusterizer = rhs.fClusterizer;
-  fTSMaker = rhs.fTSMaker;
-  fFormula = rhs.fFormula;
-  fDispersion = rhs.fDispersion;
-  fCpvEmcDistance = rhs.fCpvEmcDistance;
-  fTimeGate = rhs.fTimeGate;
-
+  if (this != &rhs) {
+    fIDOptions = rhs.fIDOptions;
+    fClusterizer = rhs.fClusterizer;
+    fTSMaker = rhs.fTSMaker;
+    fFormula = rhs.fFormula;
+    fDispersion = rhs.fDispersion;
+    fCpvEmcDistance = rhs.fCpvEmcDistance;
+    fTimeGate = rhs.fTimeGate;
+  }
+  else {
+    AliFatal("Self assignment!");
+  }
   return *this;
 }