]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PMD/AliPMDsdigit.cxx
Introduce extern for the common block references
[u/mrichter/AliRoot.git] / PMD / AliPMDsdigit.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 **************************************************************************/
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
26ClassImp(AliPMDsdigit)
27
28AliPMDsdigit::AliPMDsdigit()
29{
b9746a9e 30 // Default Constructor
ec3caada 31 fTrNumber = 0;
32 fDet = 0;
33 fSMN = 0;
5e6a9312 34 fRow = 0;
35 fColumn = 0;
ec3caada 36 fEdep = 0.;
37}
38
39AliPMDsdigit::AliPMDsdigit(Int_t trnumber, Int_t det, Int_t smn,
5e6a9312 40 Int_t irow, Int_t icol, Float_t edep)
ec3caada 41{
b9746a9e 42 // Constructor
ec3caada 43 fTrNumber = trnumber;
44 fDet = det;
45 fSMN = smn;
5e6a9312 46 fRow = irow;
47 fColumn = icol;
ec3caada 48 fEdep = edep;
49}
b9746a9e 50AliPMDsdigit::AliPMDsdigit(const AliPMDsdigit& pmdsdigit):TObject(pmdsdigit) {
51 //Copy Constructor
52 if(&pmdsdigit == this) return;
53 this->fTrNumber = pmdsdigit.fTrNumber;
54 this->fDet = pmdsdigit.fDet;
55 this->fSMN = pmdsdigit.fSMN;
5e6a9312 56 this->fRow = pmdsdigit.fRow;
57 this->fColumn = pmdsdigit.fColumn;
b9746a9e 58 this->fEdep = pmdsdigit.fEdep;
59 return;
60}
61AliPMDsdigit & AliPMDsdigit::operator=(const AliPMDsdigit& pmdsdigit) {
62 //Assignment operator
63 if(&pmdsdigit == this) return *this;
64 this->fTrNumber = pmdsdigit.fTrNumber;
65 this->fDet = pmdsdigit.fDet;
66 this->fSMN = pmdsdigit.fSMN;
5e6a9312 67 this->fRow = pmdsdigit.fRow;
68 this->fColumn = pmdsdigit.fColumn;
b9746a9e 69 this->fEdep = pmdsdigit.fEdep;
70 return *this;
71}
72
73
ec3caada 74AliPMDsdigit::~AliPMDsdigit()
75{
b9746a9e 76 // Default Destructor
ec3caada 77}
78Int_t AliPMDsdigit::GetTrackNumber() const
79{
80 return fTrNumber;
81}
82Int_t AliPMDsdigit::GetDetector() const
83{
84 return fDet;
85}
86Int_t AliPMDsdigit::GetSMNumber() const
87{
88 return fSMN;
89}
5e6a9312 90Int_t AliPMDsdigit::GetRow() const
ec3caada 91{
5e6a9312 92 return fRow;
93}
94Int_t AliPMDsdigit::GetColumn() const
95{
96 return fColumn;
ec3caada 97}
ec3caada 98Float_t AliPMDsdigit::GetCellEdep() const
99{
100 return fEdep;
101}