]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFcluster.cxx
remove VV inheritance from STEER
[u/mrichter/AliRoot.git] / TOF / AliTOFcluster.cxx
index 0a7bb1ccdb6db01ae02339bfc046bd9594d6a474..fee67b803dde38b1668f3de829f270d0cd9657af 100644 (file)
@@ -50,7 +50,8 @@ AliTOFcluster::AliTOFcluster():
   fTdcRAW(0),
   fStatus(kTRUE),
   fDeltaBC(0),
-  fL0L1Latency(0)
+  fL0L1Latency(0),
+  fESDID(-1)
  {
   //
   // default ctor
@@ -80,7 +81,8 @@ AliTOFcluster::AliTOFcluster(UShort_t volId,
   fTdcRAW(par[4]),
   fStatus(status),
   fDeltaBC(par[5]),
-  fL0L1Latency(par[6])
+  fL0L1Latency(par[6]),
+  fESDID(-1)
  {
   //
   // constructor
@@ -109,7 +111,8 @@ AliTOFcluster::AliTOFcluster(const AliTOFcluster & cluster):
   fTdcRAW(cluster.fTdcRAW),
   fStatus(cluster.fStatus),
   fDeltaBC(cluster.fDeltaBC),
-  fL0L1Latency(cluster.fL0L1Latency)
+  fL0L1Latency(cluster.fL0L1Latency),
+  fESDID(-1)
  {
   //
   // copy ctor for AliTOFcluster object
@@ -120,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() {
 
   //