bug fixed for alignment, removed alignment database access from AliPMDUtility class
[u/mrichter/AliRoot.git] / PMD / AliPMDisocell.cxx
CommitLineData
920e13db 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 **************************************************************************/
15
16#include "Riostream.h"
17#include "Rtypes.h"
18#include "AliPMDisocell.h"
19
20ClassImp(AliPMDisocell)
21
22AliPMDisocell::AliPMDisocell():
23 fDet(-1),
24 fSmn(-1),
25 fRow(-1),
26 fCol(-1),
27 fAdc(0.)
28{
29 // Default constructor
30}
31// --------------------------------------------------------------------- //
32AliPMDisocell::AliPMDisocell(Int_t idet, Int_t ismn, Int_t irow, Int_t icol, Float_t cadc):
33 fDet(idet),
34 fSmn(ismn),
35 fRow(irow),
36 fCol(icol),
37 fAdc(cadc)
38{
39 // Constructor
40}
41AliPMDisocell::AliPMDisocell(AliPMDisocell *pmdisocell):
42 fDet(-1),
43 fSmn(-1),
44 fRow(-1),
45 fCol(-1),
46 fAdc(0.)
47{
48 *this = *pmdisocell;
49}
50
51// --------------------------------------------------------------------- //
52// --------------------------------------------------------------------- //
53AliPMDisocell::AliPMDisocell(const AliPMDisocell &pmdisocell):
54 TObject(pmdisocell),
55 fDet(pmdisocell.fDet),
56 fSmn(pmdisocell.fSmn),
57 fRow(pmdisocell.fRow),
58 fCol(pmdisocell.fCol),
59 fAdc(pmdisocell.fAdc)
60{
61 //Copy Constructor
62}
63// --------------------------------------------------------------------- //
64
65AliPMDisocell & AliPMDisocell::operator=(const AliPMDisocell &pmdisocell)
66{
67 // Assignment operator
68 if(this != &pmdisocell)
69 {
70 fDet = pmdisocell.fDet;
71 fSmn = pmdisocell.fSmn;
72 fRow = pmdisocell.fRow;
73 fCol = pmdisocell.fCol;
74 fAdc = pmdisocell.fAdc;
75
76 }
77 return *this;
78}
79// --------------------------------------------------------------------- //
80
81AliPMDisocell::~AliPMDisocell()
82{
83 // Destructor
84}
85// --------------------------------------------------------------------- //
86Int_t AliPMDisocell::GetDetector() const
87{
88 return fDet;
89}
90// --------------------------------------------------------------------- //
91Int_t AliPMDisocell::GetSmn() const
92{
93 return fSmn;
94}
95// --------------------------------------------------------------------- //
96Int_t AliPMDisocell::GetRow() const
97{
98 return fRow;
99}
100// --------------------------------------------------------------------- //
101Int_t AliPMDisocell::GetCol() const
102{
103 return fCol;
104}
105// --------------------------------------------------------------------- //
106Float_t AliPMDisocell::GetADC() const
107{
108 return fAdc;
109}
110// --------------------------------------------------------------------- //