]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PMD/AliPMDdigit.cxx
changed tune (Leticia)
[u/mrichter/AliRoot.git] / PMD / AliPMDdigit.cxx
CommitLineData
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
27ClassImp(AliPMDdigit)
28
a48edddd 29AliPMDdigit::AliPMDdigit():
30 fTrNumber(0),
920e13db 31 fTrPid(0),
a48edddd 32 fDet(0),
33 fSMNumber(0),
34 fRow(0),
35 fColumn(0),
36 fADC(0.)
baf230f7 37{
b9746a9e 38 // Default Constructor
baf230f7 39}
40
920e13db 41AliPMDdigit::AliPMDdigit(Int_t trnumber, Int_t trpid, Int_t det,
42 Int_t smnumber,
a48edddd 43 Int_t irow, Int_t icol, Float_t adc):
44 fTrNumber(trnumber),
920e13db 45 fTrPid(trpid),
a48edddd 46 fDet(det),
47 fSMNumber(smnumber),
48 fRow(irow),
49 fColumn(icol),
50 fADC(adc)
baf230f7 51{
b9746a9e 52 // Constructor
baf230f7 53}
a48edddd 54AliPMDdigit::AliPMDdigit(AliPMDdigit *pmddigit):
55 fTrNumber(0),
920e13db 56 fTrPid(0),
a48edddd 57 fDet(0),
58 fSMNumber(0),
59 fRow(0),
60 fColumn(0),
61 fADC(0.)
62{
63 *this = *pmddigit;
64}
65
66AliPMDdigit::AliPMDdigit(const AliPMDdigit& pmddigit):
67 TObject(pmddigit),
68 fTrNumber(pmddigit.fTrNumber),
920e13db 69 fTrPid(pmddigit.fTrPid),
a48edddd 70 fDet(pmddigit.fDet),
71 fSMNumber(pmddigit.fSMNumber),
72 fRow(pmddigit.fRow),
73 fColumn(pmddigit.fColumn),
74 fADC(pmddigit.fADC)
75{
b9746a9e 76 //Copy Constructor
b9746a9e 77}
78AliPMDdigit & AliPMDdigit::operator=(const AliPMDdigit& pmddigit) {
79 //Assignment operator
a48edddd 80 if(this != &pmddigit)
81 {
82 fTrNumber = pmddigit.fTrNumber;
920e13db 83 fTrPid = pmddigit.fTrPid;
a48edddd 84 fDet = pmddigit.fDet;
85 fSMNumber = pmddigit.fSMNumber;
86 fRow = pmddigit.fRow;
87 fColumn = pmddigit.fColumn;
88 fADC = pmddigit.fADC;
89 }
b9746a9e 90 return *this;
91}
baf230f7 92AliPMDdigit::~AliPMDdigit()
93{
b9746a9e 94 // Default destructor
baf230f7 95}
96Int_t AliPMDdigit::GetTrackNumber() const
97{
98 return fTrNumber;
99}
920e13db 100Int_t AliPMDdigit::GetTrackPid() const
101{
102 return fTrPid;
103}
baf230f7 104Int_t AliPMDdigit::GetDetector() const
105{
106 return fDet;
107}
108Int_t AliPMDdigit::GetSMNumber() const
109{
110 return fSMNumber;
111}
5e6a9312 112Int_t AliPMDdigit::GetRow() const
baf230f7 113{
5e6a9312 114 return fRow;
115}
116Int_t AliPMDdigit::GetColumn() const
117{
118 return fColumn;
baf230f7 119}
120Float_t AliPMDdigit::GetADC() const
121{
122 return fADC;
123}
124