/************************************************************************** * 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. * **************************************************************************/ /* $Id$ */ ///////////////////////////////////////////////////////////////////////// // Class AliSTARTdigit for START digits // fTimeRight - right side TOF signal // fTimeLeft - left side TOF signal // fTimeBestRight - TOF first particle on the right side // TimeBestLeft - TOF first particle on the left side // fTimeAverage = (fTimeBestRight + TimeBestLeft ) /2. START signal // fTimeDiff = fTimeBestRight - TimeBestLeft // /////////////////////////////////////////////////////////////////////// #include #include "AliSTARTdigit.h" #include ClassImp(AliSTARTdigit) //------------------------------------ AliSTARTdigit::AliSTARTdigit() : TObject() { //ctor fTimeAverage=9999; fTimeDiff=9999; fTimeBestRight=9999; fTimeBestLeft=9999; fTimeRight = new TArrayI(12); fTimeLeft = new TArrayI(12); fADCRight = new TArrayI(12); fADCLeft = new TArrayI(12); } //----------------------------------- void AliSTARTdigit::SetTimeRight (TArrayI &o) { //////////////////////////////////////// fTimeRight = new TArrayI(12); Int_t i; for (i=0; i<12; i++) { Int_t buf=o.At(i); fTimeRight->AddAt(buf,i); } } //-------------------------------------------- void AliSTARTdigit::SetTimeLeft (TArrayI &o) { // fTimeLeft = new TArrayI(12); Int_t i; for (i=0; i<12; i++) { Int_t buf=o.At(i); fTimeLeft->AddAt(buf,i); } } //-------------------------------------------- void AliSTARTdigit::GetTimeLeft (TArrayI &o) { // Int_t i; for (i=0; i<12; i++) { o[i]=fTimeLeft->At(i); } } //-------------------------------------------- void AliSTARTdigit::GetTimeRight (TArrayI &o) { // Int_t i; for (i=0; i<12; i++) { o[i]=fTimeRight->At(i); } } //-------------------------------------------- void AliSTARTdigit::GetADCLeft (TArrayI &o) { // Int_t i; for (i=0; i<12; i++) { o[i]=fADCLeft->At(i); } } //-------------------------------------------- void AliSTARTdigit::GetADCRight (TArrayI &o) { // Int_t i; for (i=0; i<12; i++) { o[i]=fADCRight->At(i); } } //-------------------------------------------- void AliSTARTdigit::SetADCLeft (TArrayI &o) { // fADCLeft = new TArrayI(12); Int_t i; // Float_t fProcessKoef=1; // for pb 0.001 for (i=0; i<12; i++) { Int_t buf=(o.At(i)); fADCLeft->AddAt(buf,i); } } //-------------------------------------------- void AliSTARTdigit::SetADCRight (TArrayI &o) { // Float_t fProcessKoef=1; // for pb 0.001 fADCRight = new TArrayI(12); Int_t i; for (i=0; i<12; i++) { Int_t buf=(o.At(i)); fADCRight->AddAt(buf,i); } } //------------------------------------------------------ void AliSTARTdigit::Print() { // printf("AliSTARTdigit: fTimeAverage=%d, fTimeDiff=%d\n", fTimeAverage, fTimeDiff); cout<<" BestTimeRigh "<