Coverity fixes
authordecaro <decaro@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 6 Dec 2011 09:50:52 +0000 (09:50 +0000)
committerdecaro <decaro@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 6 Dec 2011 09:50:52 +0000 (09:50 +0000)
TOF/AliTOFcluster.cxx

index 0a7bb1c..490dea4 100644 (file)
@@ -120,6 +120,32 @@ AliTOFcluster::AliTOFcluster(const AliTOFcluster & cluster):
 }
 //-------------------------------------------------------------------------
 
+AliTOFcluster & AliTOFcluster::operator = (const AliTOFcluster & cluster)
+{
+
+  if (this == &cluster)
+    return *this;
+
+  TObject::operator=(cluster);
+  fIdx=cluster.fIdx;
+  fQuality=cluster.fQuality;
+  fR=cluster.fR;
+  fPhi=cluster.fPhi;
+  fTDC=cluster.fTDC;
+  fToT=cluster.fToT;
+  fADC=cluster.fADC;
+  fTdcND=cluster.fTdcND;
+  fTdcRAW=cluster.fTdcRAW;
+  fStatus=cluster.fStatus;
+  fDeltaBC=cluster.fDeltaBC;
+  fL0L1Latency=cluster.fL0L1Latency;
+  for (Int_t ii=0; ii<5; ii++)
+    fdetIndex[ii] = cluster.fdetIndex[ii];
+  return *this;
+
+}
+//-------------------------------------------------------------------------
+
 AliTOFcluster::~AliTOFcluster() {
 
   //