1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 authors: Roberto Preghenella, preghenella@bo.infn.it
19 with contribution from Chiara Zampolli, zampolli@bo.infn.it
22 ////////////////////////////////////////////////////////////////////////
24 // This class provides the basic object to store just-decoded //
28 ////////////////////////////////////////////////////////////////////////
30 #include "AliTOFHitData.h"
32 ClassImp(AliTOFHitData)
34 AliTOFHitData::AliTOFHitData():
35 TObject(),fDDLID(-1),fSlotID(-1),fACQ(-1),fChain(-1),fPS(-1),fTDC(-1),fChan(-1),fTime(-1),fTimeBin(-1),fTOT(-1),fTOTBin(-1)
39 //-----------------------------------------------------------------------------
41 AliTOFHitData::AliTOFHitData(const AliTOFHitData &source):
42 TObject(),fDDLID(-1),fSlotID(-1),fACQ(-1),fChain(-1),fPS(-1),fTDC(-1),fChan(-1),fTime(-1),fTimeBin(-1),fTOT(-1),fTOTBin(-1){
44 for (Int_t i = 0; i < 5; i++) this->fVolume[i]=source.fVolume[i];
45 this->fDDLID=source.fDDLID;
46 this->fSlotID=source.fSlotID;
47 this->fACQ=source.fACQ;
48 this->fChain=source.fChain;
50 this->fTDC=source.fTDC;
51 this->fTOT=source.fTOT;
52 this->fTOTBin=source.fTOTBin;
53 this->fChan=source.fChan;
54 this->fTime=source.fTime;
55 this->fTimeBin=source.fTimeBin;
58 //-----------------------------------------------------------------------------
59 AliTOFHitData& AliTOFHitData::operator=(const AliTOFHitData & source) {
60 // assignment operator
61 for (Int_t i = 0; i < 5; i++)
62 this->fVolume[i]=source.fVolume[i];
63 this->fDDLID=source.fDDLID;
64 this->fSlotID= source.fSlotID;
65 this->fACQ= source.fACQ;
66 this->fChain= source.fChain;
67 this->fPS= source.fPS;
68 this->fTDC= source.fTDC;
69 this->fChan= source.fChan;
70 this->fTime= source.fTime;
71 this->fTimeBin= source.fTimeBin;
72 this->fTOT= source.fTOT;
73 this->fTOTBin= source.fTOTBin;
76 //----------------------------------------------------------------------------
77 void AliTOFHitData::SetVolume(Int_t *Volume)
79 // setting the TOF volume index