X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=TOF%2FAliTOFcluster.cxx;h=fee67b803dde38b1668f3de829f270d0cd9657af;hb=144a0d1bf6aa88f35f72c8a642c6231ef0d1d53b;hp=e371a95e2efe0a492dd45762264d13d482f803cb;hpb=0e74c3967763db2ad372e2e14d181f79f5ee07be;p=u%2Fmrichter%2FAliRoot.git diff --git a/TOF/AliTOFcluster.cxx b/TOF/AliTOFcluster.cxx index e371a95e2ef..fee67b803dd 100644 --- a/TOF/AliTOFcluster.cxx +++ b/TOF/AliTOFcluster.cxx @@ -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() { //