changed according to alice coding convention
[u/mrichter/AliRoot.git] / PMD / AliPMDcell.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 **************************************************************************/
24882f83 15//-----------------------------------------------------//
16// //
17// Date : August 05 2003 //
18// //
19// Store cell/track info which is used to assign //
20// the correct track number to a multiple hit cell //
21// //
22//-----------------------------------------------------//
23
36031625 24#include "Riostream.h"
25#include "Rtypes.h"
24882f83 26#include "AliPMDcell.h"
27
28ClassImp(AliPMDcell)
29
30AliPMDcell::AliPMDcell()
31{
36031625 32 // Standard constructor
24882f83 33 fTrNumber = 0;
34 fSMNumber = 0;
35 fXpos = 0;
36 fYpos = 0;
37 fEdep = 0.;
38}
39
40AliPMDcell::AliPMDcell(Int_t trnumber, Int_t smnumber,
41 Int_t xpos, Int_t ypos, Float_t edep)
42{
36031625 43 // Constructor
24882f83 44 fTrNumber = trnumber;
45 fSMNumber = smnumber;
46 fXpos = xpos;
47 fYpos = ypos;
48 fEdep = edep;
49
50}
af6d4455 51
52AliPMDcell::AliPMDcell(const AliPMDcell& source):TObject(source) {
53 //Copy Constructor
54 if(&source == this) return;
55 this->fTrNumber = source.fTrNumber;
56 this->fSMNumber = source.fSMNumber;
57 this->fXpos = source.fXpos;
58 this->fYpos = source.fYpos;
59 this->fEdep = source.fEdep;
60 return;
61}
62
63AliPMDcell& AliPMDcell::operator=(const AliPMDcell& source) {
64 //Copy Constructor
65 if(&source == this) return *this;
66 this->fTrNumber = source.fTrNumber;
67 this->fSMNumber = source.fSMNumber;
68 this->fXpos = source.fXpos;
69 this->fYpos = source.fYpos;
70 this->fEdep = source.fEdep;
71 return *this;
72}
73
24882f83 74AliPMDcell::~AliPMDcell()
75{
36031625 76 // Default destructor
24882f83 77}
78
79Int_t AliPMDcell::GetTrackNumber() const
80{
81 return fTrNumber;
82}
83Int_t AliPMDcell::GetSMNumber() const
84{
85 return fSMNumber;
86}
87Int_t AliPMDcell::GetX() const
88{
89 return fXpos;
90}
91Int_t AliPMDcell::GetY() const
92{
93 return fYpos;
94}
95
96Float_t AliPMDcell::GetEdep() const
97{
98 return fEdep;
99}
100