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():
48 fDeltaEventCounter(-1)
51 for (Int_t i = 0; i < 5; ++i) fVolume[i]=0;
54 //-----------------------------------------------------------------------------
55 AliTOFHitData::AliTOFHitData(const AliTOFHitData &source):
57 fDDLID(source.fDDLID),
58 fSlotID(source.fSlotID),
60 fChain(source.fChain),
65 fTimeBin(source.fTimeBin),
67 fTOTBin(source.fTOTBin),
68 fDeltaBunchID(source.fDeltaBunchID),
69 fDeltaEventCounter(source.fDeltaEventCounter)
72 for (Int_t i = 0; i < 5; ++i) fVolume[i]=source.fVolume[i];
75 //-----------------------------------------------------------------------------
76 AliTOFHitData& AliTOFHitData::operator=(const AliTOFHitData & source) {
77 // assignment operator
79 TObject::operator=(source);
80 for (Int_t i = 0; i < 5; ++i) fVolume[i]=source.fVolume[i];
82 fSlotID= source.fSlotID;
84 fChain= source.fChain;
89 fTimeBin= source.fTimeBin;
91 fTOTBin= source.fTOTBin;
92 fDeltaBunchID=source.fDeltaBunchID;
93 fDeltaEventCounter=source.fDeltaEventCounter;
97 //----------------------------------------------------------------------------
98 void AliTOFHitData::SetVolume(Int_t *Volume)
100 // setting the TOF volume index
101 fVolume[0]=Volume[0];
102 fVolume[1]=Volume[1];
103 fVolume[2]=Volume[2];
104 fVolume[3]=Volume[3];
105 fVolume[4]=Volume[4];