]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFcluster.cxx
Fixing 2 warnings
[u/mrichter/AliRoot.git] / TOF / AliTOFcluster.cxx
index e371a95e2efe0a492dd45762264d13d482f803cb..fee67b803dde38b1668f3de829f270d0cd9657af 100644 (file)
@@ -48,7 +48,10 @@ AliTOFcluster::AliTOFcluster():
   fADC(0),
   fTdcND(0),
   fTdcRAW(0),
-  fStatus(kTRUE) 
+  fStatus(kTRUE),
+  fDeltaBC(0),
+  fL0L1Latency(0),
+  fESDID(-1)
  {
   //
   // default ctor
@@ -76,7 +79,10 @@ AliTOFcluster::AliTOFcluster(UShort_t volId,
   fADC(par[2]),
   fTdcND(par[3]),
   fTdcRAW(par[4]),
-  fStatus(status) 
+  fStatus(status),
+  fDeltaBC(par[5]),
+  fL0L1Latency(par[6]),
+  fESDID(-1)
  {
   //
   // constructor
@@ -103,7 +109,10 @@ AliTOFcluster::AliTOFcluster(const AliTOFcluster & cluster):
   fADC(cluster.fADC),
   fTdcND(cluster.fTdcND),
   fTdcRAW(cluster.fTdcRAW),
-  fStatus(cluster.fStatus) 
+  fStatus(cluster.fStatus),
+  fDeltaBC(cluster.fDeltaBC),
+  fL0L1Latency(cluster.fL0L1Latency),
+  fESDID(-1)
  {
   //
   // copy ctor for AliTOFcluster object
@@ -114,6 +123,33 @@ 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;
+  fESDID = -1;
+  for (Int_t ii=0; ii<5; ii++)
+    fdetIndex[ii] = cluster.fdetIndex[ii];
+  return *this;
+
+}
+//-------------------------------------------------------------------------
+
 AliTOFcluster::~AliTOFcluster() {
 
   //