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),fDeltaBunchID(-1),fDeltaEventCounter(-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),fDeltaBunchID(-1),fDeltaEventCounter(-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;
56 this->fDeltaBunchID=source.fDeltaBunchID;
57 this->fDeltaEventCounter=source.fDeltaEventCounter;
60 //-----------------------------------------------------------------------------
61 AliTOFHitData& AliTOFHitData::operator=(const AliTOFHitData & source) {
62 // assignment operator
63 for (Int_t i = 0; i < 5; i++)
64 this->fVolume[i]=source.fVolume[i];
65 this->fDDLID=source.fDDLID;
66 this->fSlotID= source.fSlotID;
67 this->fACQ= source.fACQ;
68 this->fChain= source.fChain;
69 this->fPS= source.fPS;
70 this->fTDC= source.fTDC;
71 this->fChan= source.fChan;
72 this->fTime= source.fTime;
73 this->fTimeBin= source.fTimeBin;
74 this->fTOT= source.fTOT;
75 this->fTOTBin= source.fTOTBin;
76 this->fDeltaBunchID=source.fDeltaBunchID;
77 this->fDeltaEventCounter=source.fDeltaEventCounter;
80 //----------------------------------------------------------------------------
81 void AliTOFHitData::SetVolume(Int_t *Volume)
83 // setting the TOF volume index