]>
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 | ||
28 | AliPMDsdigit::AliPMDsdigit() | |
29 | { | |
b9746a9e | 30 | // Default Constructor |
ec3caada | 31 | fTrNumber = 0; |
32 | fDet = 0; | |
33 | fSMN = 0; | |
34 | fCellNumber = 0; | |
35 | fEdep = 0.; | |
36 | } | |
37 | ||
38 | AliPMDsdigit::AliPMDsdigit(Int_t trnumber, Int_t det, Int_t smn, | |
39 | Int_t cellnumber, Float_t edep) | |
40 | { | |
b9746a9e | 41 | // Constructor |
ec3caada | 42 | fTrNumber = trnumber; |
43 | fDet = det; | |
44 | fSMN = smn; | |
45 | fCellNumber = cellnumber; | |
46 | fEdep = edep; | |
47 | } | |
b9746a9e | 48 | AliPMDsdigit::AliPMDsdigit(const AliPMDsdigit& pmdsdigit):TObject(pmdsdigit) { |
49 | //Copy Constructor | |
50 | if(&pmdsdigit == this) return; | |
51 | this->fTrNumber = pmdsdigit.fTrNumber; | |
52 | this->fDet = pmdsdigit.fDet; | |
53 | this->fSMN = pmdsdigit.fSMN; | |
54 | this->fCellNumber = pmdsdigit.fCellNumber; | |
55 | this->fEdep = pmdsdigit.fEdep; | |
56 | return; | |
57 | } | |
58 | AliPMDsdigit & AliPMDsdigit::operator=(const AliPMDsdigit& pmdsdigit) { | |
59 | //Assignment operator | |
60 | if(&pmdsdigit == this) return *this; | |
61 | this->fTrNumber = pmdsdigit.fTrNumber; | |
62 | this->fDet = pmdsdigit.fDet; | |
63 | this->fSMN = pmdsdigit.fSMN; | |
64 | this->fCellNumber = pmdsdigit.fCellNumber; | |
65 | this->fEdep = pmdsdigit.fEdep; | |
66 | return *this; | |
67 | } | |
68 | ||
69 | ||
ec3caada | 70 | AliPMDsdigit::~AliPMDsdigit() |
71 | { | |
b9746a9e | 72 | // Default Destructor |
ec3caada | 73 | } |
74 | Int_t AliPMDsdigit::GetTrackNumber() const | |
75 | { | |
76 | return fTrNumber; | |
77 | } | |
78 | Int_t AliPMDsdigit::GetDetector() const | |
79 | { | |
80 | return fDet; | |
81 | } | |
82 | Int_t AliPMDsdigit::GetSMNumber() const | |
83 | { | |
84 | return fSMN; | |
85 | } | |
86 | Int_t AliPMDsdigit::GetCellNumber() const | |
87 | { | |
88 | return fCellNumber; | |
89 | } | |
90 | ||
91 | Float_t AliPMDsdigit::GetCellEdep() const | |
92 | { | |
93 | return fEdep; | |
94 | } |