]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TOF/AliTOFHitData.cxx
Style changes
[u/mrichter/AliRoot.git] / TOF / AliTOFHitData.cxx
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
32 ClassImp(AliTOFHitData)
33
34 AliTOFHitData::AliTOFHitData():
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)
49 {
50   //ctor
51   for (Int_t i = 0; i < 5; ++i) fVolume[i]=0;
52 }
53
54 //-----------------------------------------------------------------------------
55 AliTOFHitData::AliTOFHitData(const AliTOFHitData &source):
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
71   // copy constructor 
72   for (Int_t i = 0; i < 5; ++i) fVolume[i]=source.fVolume[i];
73 }
74
75 //-----------------------------------------------------------------------------
76 AliTOFHitData& AliTOFHitData::operator=(const AliTOFHitData & source) { 
77 // assignment operator
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   }
95   return *this;
96 }
97 //----------------------------------------------------------------------------
98 void 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