Updates
[u/mrichter/AliRoot.git] / TOF / AliTOFHitData.cxx
CommitLineData
799eea01 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
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 **************************************************************************/
15
16/*
17$Log$
18 authors: Roberto Preghenella, preghenella@bo.infn.it
19 with contribution from Chiara Zampolli, zampolli@bo.infn.it
20*/
21
22////////////////////////////////////////////////////////////////////////
23// //
24// This class provides the basic object to store just-decoded //
25// raw data //
26// //
27// //
28////////////////////////////////////////////////////////////////////////
29
30#include "AliTOFHitData.h"
31
32ClassImp(AliTOFHitData)
33
34AliTOFHitData::AliTOFHitData():
ce053c0b 35 TObject(),
36 fDDLID(-1),
37 fSlotID(-1),
38 fACQ(-1),
39 fChain(-1),
40 fPS(-1),
41 fTDC(-1),
42 fChan(-1),
43 fTime(-1),
44 fTimeBin(-1),
45 fTOT(-1),
46 fTOTBin(-1),
47 fDeltaBunchID(-1),
2bf4d9d6 48 fL0L1Latency(-1),
ce053c0b 49 fDeltaEventCounter(-1)
799eea01 50{
51 //ctor
ce053c0b 52 for (Int_t i = 0; i < 5; ++i) fVolume[i]=0;
799eea01 53}
799eea01 54
ce053c0b 55//-----------------------------------------------------------------------------
799eea01 56AliTOFHitData::AliTOFHitData(const AliTOFHitData &source):
ce053c0b 57 TObject(source),
58 fDDLID(source.fDDLID),
59 fSlotID(source.fSlotID),
60 fACQ(source.fACQ),
61 fChain(source.fChain),
62 fPS(source.fPS),
63 fTDC(source.fTDC),
64 fChan(source.fChan),
65 fTime(source.fTime),
66 fTimeBin(source.fTimeBin),
67 fTOT(source.fTOT),
68 fTOTBin(source.fTOTBin),
69 fDeltaBunchID(source.fDeltaBunchID),
2bf4d9d6 70 fL0L1Latency(source.fL0L1Latency),
ce053c0b 71 fDeltaEventCounter(source.fDeltaEventCounter)
72{
799eea01 73 // copy constructor
ce053c0b 74 for (Int_t i = 0; i < 5; ++i) fVolume[i]=source.fVolume[i];
799eea01 75}
76
77//-----------------------------------------------------------------------------
78AliTOFHitData& AliTOFHitData::operator=(const AliTOFHitData & source) {
79// assignment operator
ce053c0b 80 if(this!=&source) {
81 TObject::operator=(source);
82 for (Int_t i = 0; i < 5; ++i) fVolume[i]=source.fVolume[i];
83 fDDLID=source.fDDLID;
84 fSlotID= source.fSlotID;
85 fACQ= source.fACQ;
86 fChain= source.fChain;
87 fPS= source.fPS;
88 fTDC= source.fTDC;
89 fChan= source.fChan;
90 fTime= source.fTime;
91 fTimeBin= source.fTimeBin;
92 fTOT= source.fTOT;
93 fTOTBin= source.fTOTBin;
94 fDeltaBunchID=source.fDeltaBunchID;
2bf4d9d6 95 fL0L1Latency=source.fL0L1Latency;
ce053c0b 96 fDeltaEventCounter=source.fDeltaEventCounter;
97 }
799eea01 98 return *this;
99}
100//----------------------------------------------------------------------------
101void AliTOFHitData::SetVolume(Int_t *Volume)
102{
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];
109}
110
111
112