]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TOF/AliTOFHitData.cxx
Added two private member, fDeltaBunchID and fDeltaEventCounter, and related getter...
[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(),fDDLID(-1),fSlotID(-1),fACQ(-1),fChain(-1),fPS(-1),fTDC(-1),fChan(-1),fTime(-1),fTimeBin(-1),fTOT(-1),fTOTBin(-1),fDeltaBunchID(-1),fDeltaEventCounter(-1)
36 {
37   //ctor
38 }
39 //-----------------------------------------------------------------------------
40
41 AliTOFHitData::AliTOFHitData(const AliTOFHitData &source):
42   TObject(),fDDLID(-1),fSlotID(-1),fACQ(-1),fChain(-1),fPS(-1),fTDC(-1),fChan(-1),fTime(-1),fTimeBin(-1),fTOT(-1),fTOTBin(-1),fDeltaBunchID(-1),fDeltaEventCounter(-1){ 
43   // copy constructor 
44   for (Int_t i = 0; i < 5; i++) this->fVolume[i]=source.fVolume[i];
45   this->fDDLID=source.fDDLID;
46   this->fSlotID=source.fSlotID;
47   this->fACQ=source.fACQ;
48   this->fChain=source.fChain;
49   this->fPS=source.fPS;
50   this->fTDC=source.fTDC;
51   this->fTOT=source.fTOT;
52   this->fTOTBin=source.fTOTBin;
53   this->fChan=source.fChan;
54   this->fTime=source.fTime;
55   this->fTimeBin=source.fTimeBin;
56   this->fDeltaBunchID=source.fDeltaBunchID;
57   this->fDeltaEventCounter=source.fDeltaEventCounter;
58 }
59
60 //-----------------------------------------------------------------------------
61 AliTOFHitData& AliTOFHitData::operator=(const AliTOFHitData & source) { 
62 // assignment operator
63   for (Int_t i = 0; i < 5; i++)
64     this->fVolume[i]=source.fVolume[i];
65   this->fDDLID=source.fDDLID;
66   this->fSlotID= source.fSlotID;
67   this->fACQ= source.fACQ;
68   this->fChain= source.fChain;
69   this->fPS= source.fPS;
70   this->fTDC= source.fTDC;
71   this->fChan= source.fChan;
72   this->fTime= source.fTime;
73   this->fTimeBin= source.fTimeBin;
74   this->fTOT= source.fTOT;
75   this->fTOTBin= source.fTOTBin;
76   this->fDeltaBunchID=source.fDeltaBunchID;
77   this->fDeltaEventCounter=source.fDeltaEventCounter;
78   return *this;
79 }
80 //----------------------------------------------------------------------------
81 void AliTOFHitData::SetVolume(Int_t *Volume)
82 {
83   // setting the TOF volume index 
84   fVolume[0]=Volume[0];
85   fVolume[1]=Volume[1];
86   fVolume[2]=Volume[2];
87   fVolume[3]=Volume[3];
88   fVolume[4]=Volume[4];
89 }
90
91
92