/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors are mentioned in the code where appropriate. * * * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * * without fee, provided that the above copyright notice appears in all * * copies and that both the copyright notice and this permission notice * * appear in the supporting documentation. The authors make no claims * * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ /* Revision 0.02 2005/07/27 A. De Caro Implement new ctor AliTOFcluster(Double_t *, Int_t *) for cluster construction from raw data Revision 0.01 2005/07/25 A. De Caro Implement new class statring from class definition inside AliTOFtracker class (originally implemented by S. Arcelli and C. Zampolli) */ //////////////////////////////////////////////////////// // // // AliTOFcluster Class // // Description: class for TOF cluster definition // // // //////////////////////////////////////////////////////// #include "AliTOFcluster.h" ClassImp(AliTOFcluster) AliTOFcluster::AliTOFcluster(): fIdx(-1), fR(0), fPhi(0), fZ(0), fTDC(0), fADC(0), fQuality(-100), fToT(0), fTdcND(0), fTdcRAW(0), fStatus(kTRUE) { // // default ctor // Int_t ii; for (ii=0; ii<3; ii++) fLab[ii] = -1; for (ii=0; ii<5; ii++) fdetIndex[ii] = -1; } //------------------------------------------------------------------------- AliTOFcluster::AliTOFcluster(Double_t *h, Int_t *l, Int_t *ind, Int_t idx, Float_t ToT, Double_t TdcND, Bool_t status): TObject(), fIdx(idx), fR(0), fPhi(0), fZ(0), fTDC(0), fADC(0), fQuality(-100), fToT(ToT), fTdcND(TdcND), fTdcRAW(0), fStatus(status) { // // constructor // Int_t ii; fR = h[0]; fPhi = h[1]; fZ = h[2]; fTDC = h[3]; fADC = h[4]; for (ii=0; ii<3; ii++) fLab[ii] = l[ii]; for (ii=0; ii<5; ii++) fdetIndex[ii] = ind[ii]; } //------------------------------------------------------------------------- AliTOFcluster::AliTOFcluster(Double_t *h, Int_t *l, Int_t *ind, Int_t idx, Float_t ToT, Double_t TdcND): TObject(), fIdx(idx), fR(0), fPhi(0), fZ(0), fTDC(0), fADC(0), fQuality(-100), fToT(ToT), fTdcND(TdcND), fTdcRAW(0), fStatus(kTRUE) { // // constructor // Int_t ii; fR = h[0]; fPhi = h[1]; fZ = h[2]; fTDC = h[3]; fADC = h[4]; for (ii=0; ii<3; ii++) fLab[ii] = l[ii]; for (ii=0; ii<5; ii++) fdetIndex[ii] = ind[ii]; } //------------------------------------------------------------------------- AliTOFcluster::AliTOFcluster(Double_t *h, Int_t *l, Int_t *ind, Int_t idx, Float_t ToT, Double_t TdcND, Double_t TdcRAW, Bool_t status): TObject(), fIdx(idx), fR(0), fPhi(0), fZ(0), fTDC(0), fADC(0), fQuality(-100), fToT(ToT), fTdcND(TdcND), fTdcRAW(TdcRAW), fStatus(status) { // // constructor // Int_t ii; fR = h[0]; fPhi = h[1]; fZ = h[2]; fTDC = h[3]; fADC = h[4]; for (ii=0; ii<3; ii++) fLab[ii] = l[ii]; for (ii=0; ii<5; ii++) fdetIndex[ii] = ind[ii]; } //------------------------------------------------------------------------- AliTOFcluster::AliTOFcluster(Double_t *h, Int_t *l, Int_t *ind, Int_t idx, Float_t ToT, Double_t TdcND, Double_t TdcRAW): TObject(), fIdx(idx), fR(0), fPhi(0), fZ(0), fTDC(0), fADC(0), fQuality(-100), fToT(ToT), fTdcND(TdcND), fTdcRAW(TdcRAW), fStatus(kTRUE) { // // constructor // Int_t ii; fR = h[0]; fPhi = h[1]; fZ = h[2]; fTDC = h[3]; fADC = h[4]; for (ii=0; ii<3; ii++) fLab[ii] = l[ii]; for (ii=0; ii<5; ii++) fdetIndex[ii] = ind[ii]; } //------------------------------------------------------------------------- AliTOFcluster::AliTOFcluster(Double_t *h, Int_t *ind): TObject(), fIdx(-1), fR(0), fPhi(0), fZ(0), fTDC(0), fADC(0), fQuality(-100), fToT(0), fTdcND(0), fTdcRAW(0), fStatus(kTRUE) { // // constructor // Int_t ii; fR = h[0]; fPhi = h[1]; fZ = h[2]; fTDC = h[3]; fADC = h[4]; for (ii=0; ii<3; ii++) fLab[ii] = -1; for (ii=0; ii<5; ii++) fdetIndex[ii] = ind[ii]; } //------------------------------------------------------------------------- AliTOFcluster::AliTOFcluster(const AliTOFcluster & cluster): TObject(), fIdx(-1), fR(0), fPhi(0), fZ(0), fTDC(0), fADC(0), fQuality(-100), fToT(0), fTdcND(0), fTdcRAW(0), fStatus(kTRUE) { // // copy ctor for AliTOFcluster object // Int_t ii; fR = cluster.fR; fPhi = cluster.fPhi; fZ = cluster.fZ; fTDC = cluster.fTDC; fADC = cluster.fADC; for (ii=0; ii<3; ii++) fLab[ii] = cluster.fLab[ii]; fIdx = cluster.fIdx; for (ii=0; ii<5; ii++) fdetIndex[ii] = cluster.fdetIndex[ii]; fQuality = cluster.fQuality; fToT = cluster.fToT; fTdcND = cluster.fTdcND; fTdcRAW = cluster.fTdcRAW; } //------------------------------------------------------------------------- AliTOFcluster::~AliTOFcluster() { // // dtor // //delete fLab; //delete fdetIndex; }