New AliTRDcluster constructor
[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)
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){ 
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 }
57
58 //-----------------------------------------------------------------------------
59 AliTOFHitData& AliTOFHitData::operator=(const AliTOFHitData & source) { 
60 // assignment operator
61   for (Int_t i = 0; i < 5; i++)
62     this->fVolume[i]=source.fVolume[i];
63   this->fDDLID=source.fDDLID;
64   this->fSlotID= source.fSlotID;
65   this->fACQ= source.fACQ;
66   this->fChain= source.fChain;
67   this->fPS= source.fPS;
68   this->fTDC= source.fTDC;
69   this->fChan= source.fChan;
70   this->fTime= source.fTime;
71   this->fTimeBin= source.fTimeBin;
72   this->fTOT= source.fTOT;
73   this->fTOTBin= source.fTOTBin;
74   return *this;
75 }
76 //----------------------------------------------------------------------------
77 void AliTOFHitData::SetVolume(Int_t *Volume)
78 {
79   // setting the TOF volume index 
80   fVolume[0]=Volume[0];
81   fVolume[1]=Volume[1];
82   fVolume[2]=Volume[2];
83   fVolume[3]=Volume[3];
84   fVolume[4]=Volume[4];
85 }
86
87
88