]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PMD/AliPMDdigit.cxx
Using symbolic names (Raffaele)
[u/mrichter/AliRoot.git] / PMD / AliPMDdigit.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 //  Date   : August 05 2003                            //
18 //                                                     //
19 //  Store digits for ALICE-PMD                         //
20 //                                                     //
21 //-----------------------------------------------------//
22 #include "Riostream.h"
23 #include "Rtypes.h"
24 #include "AliPMDdigit.h"
25 #include <stdio.h>
26
27 ClassImp(AliPMDdigit)
28
29 AliPMDdigit::AliPMDdigit():
30   fTrNumber(0),
31   fDet(0),
32   fSMNumber(0),
33   fRow(0),
34   fColumn(0),
35   fADC(0.)
36 {
37   // Default Constructor
38 }
39
40 AliPMDdigit::AliPMDdigit(Int_t trnumber, Int_t det, Int_t smnumber, 
41                          Int_t irow, Int_t icol, Float_t adc):
42   fTrNumber(trnumber),
43   fDet(det),
44   fSMNumber(smnumber),
45   fRow(irow),
46   fColumn(icol),
47   fADC(adc)
48 {
49   // Constructor
50 }
51 AliPMDdigit::AliPMDdigit(AliPMDdigit *pmddigit):
52   fTrNumber(0),
53   fDet(0),
54   fSMNumber(0),
55   fRow(0),
56   fColumn(0),
57   fADC(0.)
58 {
59   *this = *pmddigit;
60 }
61
62 AliPMDdigit::AliPMDdigit(const AliPMDdigit& pmddigit):
63   TObject(pmddigit),
64   fTrNumber(pmddigit.fTrNumber),
65   fDet(pmddigit.fDet),
66   fSMNumber(pmddigit.fSMNumber),
67   fRow(pmddigit.fRow),
68   fColumn(pmddigit.fColumn),
69   fADC(pmddigit.fADC)
70 {
71   //Copy Constructor 
72 }
73 AliPMDdigit & AliPMDdigit::operator=(const AliPMDdigit& pmddigit) {
74   //Assignment operator 
75   if(this != &pmddigit)
76     {
77       fTrNumber   = pmddigit.fTrNumber;
78       fDet        = pmddigit.fDet;
79       fSMNumber   = pmddigit.fSMNumber;
80       fRow        = pmddigit.fRow;
81       fColumn     = pmddigit.fColumn;
82       fADC        = pmddigit.fADC;
83     }
84   return *this;
85 }
86 AliPMDdigit::~AliPMDdigit()
87 {
88   // Default destructor
89 }
90 Int_t AliPMDdigit::GetTrackNumber() const
91 {
92   return fTrNumber;
93 }
94 Int_t AliPMDdigit::GetDetector() const
95 {
96   return fDet;
97 }
98 Int_t AliPMDdigit::GetSMNumber() const
99 {
100   return fSMNumber;
101 }
102 Int_t AliPMDdigit::GetRow() const
103 {
104   return fRow;
105 }
106 Int_t AliPMDdigit::GetColumn() const
107 {
108   return fColumn;
109 }
110 Float_t AliPMDdigit::GetADC() const
111 {
112   return fADC;
113 }
114