]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Coverity 18636
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 3 Feb 2012 10:46:02 +0000 (10:46 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 3 Feb 2012 10:46:02 +0000 (10:46 +0000)
PHOS/AliPHOSTriggerRawDigit.cxx
PHOS/AliPHOSTriggerRawDigit.h

index 00826676fa9e39c048272c7c8f88c045d45a3915..e1deb15d7f2a5cb584ad0eb98f9a84e49cb5df5c 100644 (file)
@@ -41,6 +41,20 @@ AliPHOSTriggerRawDigit::AliPHOSTriggerRawDigit(const AliPHOSTriggerRawDigit & td
   fAmp = tdigit.fAmp;
 }
 
+AliPHOSTriggerRawDigit& AliPHOSTriggerRawDigit::operator=(const AliPHOSTriggerRawDigit & tdigit)
+{
+  if (&tdigit != this) {
+    AliDigitNew::operator=(tdigit);
+    fMod = tdigit.fMod;
+    fXIdx = tdigit.fXIdx;
+    fZIdx = tdigit.fZIdx;
+    fTRURow = tdigit.fTRURow;
+    fBranch = tdigit.fBranch; 
+  }
+
+  return *this;
+}
+
 void AliPHOSTriggerRawDigit::GetModXZ(Int_t& mod, Int_t& modX, Int_t& modZ)
 {
   //Return 4x4 region bottom left cell position.
index a300e3ed4d34499bcce9b1d7398232e26e25cbc6..3f59831b89199ff41fb95e140c0c6e513c38f486 100644 (file)
@@ -13,6 +13,7 @@ class AliPHOSTriggerRawDigit : public AliDigitNew
   AliPHOSTriggerRawDigit();
   AliPHOSTriggerRawDigit(Int_t module, Int_t xIdx, Int_t zIdx, Int_t TRURow, Int_t branch, Int_t amp);
   AliPHOSTriggerRawDigit(const AliPHOSTriggerRawDigit & tdigit);
+  AliPHOSTriggerRawDigit& operator=(const AliPHOSTriggerRawDigit & tdigit);
   virtual ~AliPHOSTriggerRawDigit() {}
 
   void Get4x4Position(Int_t& module, Int_t& xIdx, Int_t& zIdx, Int_t& TRURow, Int_t& branch)