bug fixed for alignment, removed alignment database access from AliPMDUtility class
[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
a48edddd 30AliPMDcell::AliPMDcell():
31 fTrNumber(0),
32 fSMNumber(0),
33 fXpos(0),
34 fYpos(0),
35 fEdep(0.)
24882f83 36{
36031625 37 // Standard constructor
24882f83 38}
39
40AliPMDcell::AliPMDcell(Int_t trnumber, Int_t smnumber,
a48edddd 41 Int_t xpos, Int_t ypos, Float_t edep):
42 fTrNumber(trnumber),
43 fSMNumber(smnumber),
44 fXpos(xpos),
45 fYpos(ypos),
46 fEdep(edep)
24882f83 47{
36031625 48 // Constructor
a48edddd 49}
24882f83 50
a48edddd 51AliPMDcell::AliPMDcell(AliPMDcell *pmdcell):
52 fTrNumber(0),
53 fSMNumber(0),
54 fXpos(0),
55 fYpos(0),
56 fEdep(0.)
57{
58 *this = *pmdcell;
24882f83 59}
af6d4455 60
a48edddd 61AliPMDcell::AliPMDcell(const AliPMDcell& source):
62 TObject(source),
63 fTrNumber(source.fTrNumber),
64 fSMNumber(source.fSMNumber),
65 fXpos(source.fXpos),
66 fYpos(source.fYpos),
67 fEdep(source.fEdep)
68{
af6d4455 69 //Copy Constructor
af6d4455 70}
71
a48edddd 72AliPMDcell& AliPMDcell::operator=(const AliPMDcell& source)
73{
af6d4455 74 //Copy Constructor
a48edddd 75 if(this != &source)
76 {
77 fTrNumber = source.fTrNumber;
78 fSMNumber = source.fSMNumber;
79 fXpos = source.fXpos;
80 fYpos = source.fYpos;
81 fEdep = source.fEdep;
82 }
af6d4455 83 return *this;
84}
85
24882f83 86AliPMDcell::~AliPMDcell()
87{
36031625 88 // Default destructor
24882f83 89}
90
91Int_t AliPMDcell::GetTrackNumber() const
92{
93 return fTrNumber;
94}
95Int_t AliPMDcell::GetSMNumber() const
96{
97 return fSMNumber;
98}
99Int_t AliPMDcell::GetX() const
100{
101 return fXpos;
102}
103Int_t AliPMDcell::GetY() const
104{
105 return fYpos;
106}
107
108Float_t AliPMDcell::GetEdep() const
109{
110 return fEdep;
111}
112