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():
49 fDeltaEventCounter(-1)
52 for (Int_t i = 0; i < 5; ++i) fVolume[i]=0;
55 //-----------------------------------------------------------------------------
56 AliTOFHitData::AliTOFHitData(const AliTOFHitData &source):
58 fDDLID(source.fDDLID),
59 fSlotID(source.fSlotID),
61 fChain(source.fChain),
66 fTimeBin(source.fTimeBin),
68 fTOTBin(source.fTOTBin),
69 fDeltaBunchID(source.fDeltaBunchID),
70 fL0L1Latency(source.fL0L1Latency),
71 fDeltaEventCounter(source.fDeltaEventCounter)
74 for (Int_t i = 0; i < 5; ++i) fVolume[i]=source.fVolume[i];
77 //-----------------------------------------------------------------------------
78 AliTOFHitData& AliTOFHitData::operator=(const AliTOFHitData & source) {
79 // assignment operator
81 TObject::operator=(source);
82 for (Int_t i = 0; i < 5; ++i) fVolume[i]=source.fVolume[i];
84 fSlotID= source.fSlotID;
86 fChain= source.fChain;
91 fTimeBin= source.fTimeBin;
93 fTOTBin= source.fTOTBin;
94 fDeltaBunchID=source.fDeltaBunchID;
95 fL0L1Latency=source.fL0L1Latency;
96 fDeltaEventCounter=source.fDeltaEventCounter;
100 //----------------------------------------------------------------------------
101 void AliTOFHitData::SetVolume(Int_t *Volume)
103 // setting the TOF volume index
104 fVolume[0]=Volume[0];
105 fVolume[1]=Volume[1];
106 fVolume[2]=Volume[2];
107 fVolume[3]=Volume[3];
108 fVolume[4]=Volume[4];