]>
Commit | Line | Data |
---|---|---|
b9746a9e | 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 | **************************************************************************/ | |
baf230f7 | 15 | //-----------------------------------------------------// |
16 | // // | |
17 | // Date : August 05 2003 // | |
18 | // // | |
19 | // Store digits for ALICE-PMD // | |
20 | // // | |
21 | //-----------------------------------------------------// | |
b9746a9e | 22 | #include "Riostream.h" |
23 | #include "Rtypes.h" | |
baf230f7 | 24 | #include "AliPMDdigit.h" |
25 | #include <stdio.h> | |
26 | ||
27 | ClassImp(AliPMDdigit) | |
28 | ||
a48edddd | 29 | AliPMDdigit::AliPMDdigit(): |
30 | fTrNumber(0), | |
31 | fDet(0), | |
32 | fSMNumber(0), | |
33 | fRow(0), | |
34 | fColumn(0), | |
35 | fADC(0.) | |
baf230f7 | 36 | { |
b9746a9e | 37 | // Default Constructor |
baf230f7 | 38 | } |
39 | ||
40 | AliPMDdigit::AliPMDdigit(Int_t trnumber, Int_t det, Int_t smnumber, | |
a48edddd | 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) | |
baf230f7 | 48 | { |
b9746a9e | 49 | // Constructor |
baf230f7 | 50 | } |
a48edddd | 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 | { | |
b9746a9e | 71 | //Copy Constructor |
b9746a9e | 72 | } |
73 | AliPMDdigit & AliPMDdigit::operator=(const AliPMDdigit& pmddigit) { | |
74 | //Assignment operator | |
a48edddd | 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 | } | |
b9746a9e | 84 | return *this; |
85 | } | |
baf230f7 | 86 | AliPMDdigit::~AliPMDdigit() |
87 | { | |
b9746a9e | 88 | // Default destructor |
baf230f7 | 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 | } | |
5e6a9312 | 102 | Int_t AliPMDdigit::GetRow() const |
baf230f7 | 103 | { |
5e6a9312 | 104 | return fRow; |
105 | } | |
106 | Int_t AliPMDdigit::GetColumn() const | |
107 | { | |
108 | return fColumn; | |
baf230f7 | 109 | } |
110 | Float_t AliPMDdigit::GetADC() const | |
111 | { | |
112 | return fADC; | |
113 | } | |
114 |