Line data Source code
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 :
20 12 : ClassImp(AliPMDisocell)
21 :
22 0 : AliPMDisocell::AliPMDisocell():
23 0 : fDet(-1),
24 0 : fSmn(-1),
25 0 : fRow(-1),
26 0 : fCol(-1),
27 0 : fAdc(0.)
28 0 : {
29 : // Default constructor
30 0 : }
31 : // --------------------------------------------------------------------- //
32 0 : AliPMDisocell::AliPMDisocell(Int_t idet, Int_t ismn, Int_t irow, Int_t icol, Float_t cadc):
33 0 : fDet(idet),
34 0 : fSmn(ismn),
35 0 : fRow(irow),
36 0 : fCol(icol),
37 0 : fAdc(cadc)
38 0 : {
39 : // Constructor
40 0 : }
41 0 : AliPMDisocell::AliPMDisocell(AliPMDisocell *pmdisocell):
42 0 : fDet(-1),
43 0 : fSmn(-1),
44 0 : fRow(-1),
45 0 : fCol(-1),
46 0 : fAdc(0.)
47 0 : {
48 0 : *this = *pmdisocell;
49 0 : }
50 :
51 : // --------------------------------------------------------------------- //
52 : // --------------------------------------------------------------------- //
53 : AliPMDisocell::AliPMDisocell(const AliPMDisocell &pmdisocell):
54 0 : TObject(pmdisocell),
55 0 : fDet(pmdisocell.fDet),
56 0 : fSmn(pmdisocell.fSmn),
57 0 : fRow(pmdisocell.fRow),
58 0 : fCol(pmdisocell.fCol),
59 0 : fAdc(pmdisocell.fAdc)
60 0 : {
61 : //Copy Constructor
62 0 : }
63 : // --------------------------------------------------------------------- //
64 :
65 : AliPMDisocell & AliPMDisocell::operator=(const AliPMDisocell &pmdisocell)
66 : {
67 : // Assignment operator
68 0 : if(this != &pmdisocell)
69 : {
70 0 : fDet = pmdisocell.fDet;
71 0 : fSmn = pmdisocell.fSmn;
72 0 : fRow = pmdisocell.fRow;
73 0 : fCol = pmdisocell.fCol;
74 0 : fAdc = pmdisocell.fAdc;
75 :
76 0 : }
77 0 : return *this;
78 : }
79 : // --------------------------------------------------------------------- //
80 :
81 : AliPMDisocell::~AliPMDisocell()
82 0 : {
83 : // Destructor
84 0 : }
85 : // --------------------------------------------------------------------- //
86 : Int_t AliPMDisocell::GetDetector() const
87 : {
88 0 : return fDet;
89 : }
90 : // --------------------------------------------------------------------- //
91 : Int_t AliPMDisocell::GetSmn() const
92 : {
93 0 : return fSmn;
94 : }
95 : // --------------------------------------------------------------------- //
96 : Int_t AliPMDisocell::GetRow() const
97 : {
98 0 : return fRow;
99 : }
100 : // --------------------------------------------------------------------- //
101 : Int_t AliPMDisocell::GetCol() const
102 : {
103 0 : return fCol;
104 : }
105 : // --------------------------------------------------------------------- //
106 : Float_t AliPMDisocell::GetADC() const
107 : {
108 0 : return fAdc;
109 : }
110 : // --------------------------------------------------------------------- //
|