]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOFHitData.cxx
Coding convention violations: suppression
[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),
48 fDeltaEventCounter(-1)
799eea01 49{
50 //ctor
ce053c0b 51 for (Int_t i = 0; i < 5; ++i) fVolume[i]=0;
799eea01 52}
799eea01 53
ce053c0b 54//-----------------------------------------------------------------------------
799eea01 55AliTOFHitData::AliTOFHitData(const AliTOFHitData &source):
ce053c0b 56 TObject(source),
57 fDDLID(source.fDDLID),
58 fSlotID(source.fSlotID),
59 fACQ(source.fACQ),
60 fChain(source.fChain),
61 fPS(source.fPS),
62 fTDC(source.fTDC),
63 fChan(source.fChan),
64 fTime(source.fTime),
65 fTimeBin(source.fTimeBin),
66 fTOT(source.fTOT),
67 fTOTBin(source.fTOTBin),
68 fDeltaBunchID(source.fDeltaBunchID),
69 fDeltaEventCounter(source.fDeltaEventCounter)
70{
799eea01 71 // copy constructor
ce053c0b 72 for (Int_t i = 0; i < 5; ++i) fVolume[i]=source.fVolume[i];
799eea01 73}
74
75//-----------------------------------------------------------------------------
76AliTOFHitData& AliTOFHitData::operator=(const AliTOFHitData & source) {
77// assignment operator
ce053c0b 78 if(this!=&source) {
79 TObject::operator=(source);
80 for (Int_t i = 0; i < 5; ++i) fVolume[i]=source.fVolume[i];
81 fDDLID=source.fDDLID;
82 fSlotID= source.fSlotID;
83 fACQ= source.fACQ;
84 fChain= source.fChain;
85 fPS= source.fPS;
86 fTDC= source.fTDC;
87 fChan= source.fChan;
88 fTime= source.fTime;
89 fTimeBin= source.fTimeBin;
90 fTOT= source.fTOT;
91 fTOTBin= source.fTOTBin;
92 fDeltaBunchID=source.fDeltaBunchID;
93 fDeltaEventCounter=source.fDeltaEventCounter;
94 }
799eea01 95 return *this;
96}
97//----------------------------------------------------------------------------
98void AliTOFHitData::SetVolume(Int_t *Volume)
99{
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];
106}
107
108
109