/************************************************************************** * 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. * **************************************************************************/ /* $Log$ authors: Roberto Preghenella, preghenella@bo.infn.it with contribution from Chiara Zampolli, zampolli@bo.infn.it */ //////////////////////////////////////////////////////////////////////// // // // This class provides the basic object to store just-decoded // // raw data // // // // // //////////////////////////////////////////////////////////////////////// #include "AliTOFHitData.h" ClassImp(AliTOFHitData) AliTOFHitData::AliTOFHitData(): TObject(), fDDLID(-1), fSlotID(-1), fACQ(-1), fChain(-1), fPS(-1), fTDC(-1), fChan(-1), fTime(-1), fTimeBin(-1), fTOT(-1), fTOTBin(-1), fDeltaBunchID(-1), fL0L1Latency(-1), fDeltaEventCounter(-1) { //ctor for (Int_t i = 0; i < 5; ++i) fVolume[i]=0; } //----------------------------------------------------------------------------- AliTOFHitData::AliTOFHitData(const AliTOFHitData &source): TObject(source), fDDLID(source.fDDLID), fSlotID(source.fSlotID), fACQ(source.fACQ), fChain(source.fChain), fPS(source.fPS), fTDC(source.fTDC), fChan(source.fChan), fTime(source.fTime), fTimeBin(source.fTimeBin), fTOT(source.fTOT), fTOTBin(source.fTOTBin), fDeltaBunchID(source.fDeltaBunchID), fL0L1Latency(source.fL0L1Latency), fDeltaEventCounter(source.fDeltaEventCounter) { // copy constructor for (Int_t i = 0; i < 5; ++i) fVolume[i]=source.fVolume[i]; } //----------------------------------------------------------------------------- AliTOFHitData& AliTOFHitData::operator=(const AliTOFHitData & source) { // assignment operator if(this!=&source) { TObject::operator=(source); for (Int_t i = 0; i < 5; ++i) fVolume[i]=source.fVolume[i]; fDDLID=source.fDDLID; fSlotID= source.fSlotID; fACQ= source.fACQ; fChain= source.fChain; fPS= source.fPS; fTDC= source.fTDC; fChan= source.fChan; fTime= source.fTime; fTimeBin= source.fTimeBin; fTOT= source.fTOT; fTOTBin= source.fTOTBin; fDeltaBunchID=source.fDeltaBunchID; fL0L1Latency=source.fL0L1Latency; fDeltaEventCounter=source.fDeltaEventCounter; } return *this; } //---------------------------------------------------------------------------- void AliTOFHitData::SetVolume(Int_t *Volume) { // setting the TOF volume index fVolume[0]=Volume[0]; fVolume[1]=Volume[1]; fVolume[2]=Volume[2]; fVolume[3]=Volume[3]; fVolume[4]=Volume[4]; }