]>
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 | **************************************************************************/ | |
ec3caada | 15 | //-----------------------------------------------------// |
16 | // // | |
17 | // Date : August 05 2003 // | |
18 | // used to store the info into TreeS // | |
19 | // // | |
20 | //-----------------------------------------------------// | |
b9746a9e | 21 | #include "Riostream.h" |
22 | #include "Rtypes.h" | |
ec3caada | 23 | #include "AliPMDsdigit.h" |
24 | #include <stdio.h> | |
25 | ||
26 | ClassImp(AliPMDsdigit) | |
27 | ||
a48edddd | 28 | AliPMDsdigit::AliPMDsdigit(): |
29 | fTrNumber(0), | |
30 | fDet(0), | |
31 | fSMN(0), | |
32 | fRow(0), | |
33 | fColumn(0), | |
34 | fEdep(0.) | |
ec3caada | 35 | { |
b9746a9e | 36 | // Default Constructor |
ec3caada | 37 | } |
38 | ||
39 | AliPMDsdigit::AliPMDsdigit(Int_t trnumber, Int_t det, Int_t smn, | |
a48edddd | 40 | Int_t irow, Int_t icol, Float_t edep): |
41 | fTrNumber(trnumber), | |
42 | fDet(det), | |
43 | fSMN(smn), | |
44 | fRow(irow), | |
45 | fColumn(icol), | |
46 | fEdep(edep) | |
ec3caada | 47 | { |
b9746a9e | 48 | // Constructor |
ec3caada | 49 | } |
a48edddd | 50 | |
51 | AliPMDsdigit::AliPMDsdigit(AliPMDsdigit *pmdsdigit): | |
52 | fTrNumber(0), | |
53 | fDet(0), | |
54 | fSMN(0), | |
55 | fRow(0), | |
56 | fColumn(0), | |
57 | fEdep(0.) | |
58 | { | |
59 | *this = *pmdsdigit; | |
60 | } | |
61 | ||
62 | AliPMDsdigit::AliPMDsdigit(const AliPMDsdigit& pmdsdigit): | |
63 | TObject(pmdsdigit), | |
64 | fTrNumber(pmdsdigit.fTrNumber), | |
65 | fDet(pmdsdigit.fDet), | |
66 | fSMN(pmdsdigit.fSMN), | |
67 | fRow(pmdsdigit.fRow), | |
68 | fColumn(pmdsdigit.fColumn), | |
69 | fEdep(pmdsdigit.fEdep) | |
70 | { | |
b9746a9e | 71 | //Copy Constructor |
b9746a9e | 72 | } |
a48edddd | 73 | AliPMDsdigit & AliPMDsdigit::operator=(const AliPMDsdigit& pmdsdigit) |
74 | { | |
b9746a9e | 75 | //Assignment operator |
a48edddd | 76 | if(this != &pmdsdigit) |
77 | { | |
78 | fTrNumber = pmdsdigit.fTrNumber; | |
79 | fDet = pmdsdigit.fDet; | |
80 | fSMN = pmdsdigit.fSMN; | |
81 | fRow = pmdsdigit.fRow; | |
82 | fColumn = pmdsdigit.fColumn; | |
83 | fEdep = pmdsdigit.fEdep; | |
84 | } | |
b9746a9e | 85 | return *this; |
86 | } | |
87 | ||
88 | ||
ec3caada | 89 | AliPMDsdigit::~AliPMDsdigit() |
90 | { | |
b9746a9e | 91 | // Default Destructor |
ec3caada | 92 | } |
93 | Int_t AliPMDsdigit::GetTrackNumber() const | |
94 | { | |
95 | return fTrNumber; | |
96 | } | |
97 | Int_t AliPMDsdigit::GetDetector() const | |
98 | { | |
99 | return fDet; | |
100 | } | |
101 | Int_t AliPMDsdigit::GetSMNumber() const | |
102 | { | |
103 | return fSMN; | |
104 | } | |
5e6a9312 | 105 | Int_t AliPMDsdigit::GetRow() const |
ec3caada | 106 | { |
5e6a9312 | 107 | return fRow; |
108 | } | |
109 | Int_t AliPMDsdigit::GetColumn() const | |
110 | { | |
111 | return fColumn; | |
ec3caada | 112 | } |
ec3caada | 113 | Float_t AliPMDsdigit::GetCellEdep() const |
114 | { | |
115 | return fEdep; | |
116 | } |