]>
Commit | Line | Data |
---|---|---|
7dcaf913 | 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 | // // | |
17 | // Date : March 22 2004 // | |
18 | // // | |
19 | // Store cluster information // | |
20 | // after discrimination // | |
21 | // // | |
22 | //-----------------------------------------------------// | |
23 | #include "Riostream.h" | |
24 | #include "Rtypes.h" | |
25 | #include "AliPMDclupid.h" | |
26 | #include <stdio.h> | |
27 | ||
28 | ClassImp(AliPMDclupid) | |
29 | ||
30 | AliPMDclupid::AliPMDclupid(): | |
31 | fDet(0), | |
32 | fSMN(0) | |
33 | { | |
34 | // Default constructor | |
35 | for (Int_t i = 0; i < 6; i++) | |
36 | { | |
37 | fClusData[i] = 0.; | |
38 | } | |
39 | } | |
40 | // ------------------------------------------------------------------ // | |
a48edddd | 41 | AliPMDclupid::AliPMDclupid(Int_t idet, Int_t ismn, Float_t *clusdata): |
42 | fDet(idet), | |
43 | fSMN(ismn) | |
7dcaf913 | 44 | { |
45 | // Constructor | |
7dcaf913 | 46 | for (Int_t i = 0; i < 6; i++) |
47 | { | |
48 | fClusData[i] = clusdata[i]; | |
49 | } | |
50 | } | |
51 | // ------------------------------------------------------------------ // | |
a48edddd | 52 | AliPMDclupid::AliPMDclupid(AliPMDclupid *pmdclupid): |
53 | fDet(0), | |
54 | fSMN(0) | |
55 | { | |
56 | *this = *pmdclupid; | |
57 | } | |
58 | ||
59 | // ------------------------------------------------------------------ // | |
60 | AliPMDclupid::AliPMDclupid(const AliPMDclupid &pmdclupid): | |
61 | TObject(pmdclupid), | |
62 | fDet(pmdclupid.fDet), | |
63 | fSMN(pmdclupid.fSMN) | |
7dcaf913 | 64 | { |
65 | //Copy Constructor | |
7dcaf913 | 66 | for(Int_t i=0; i<6; i++) |
67 | { | |
a48edddd | 68 | fClusData[i] = pmdclupid.fClusData[i]; |
7dcaf913 | 69 | } |
7dcaf913 | 70 | } |
71 | // ------------------------------------------------------------------ // | |
72 | AliPMDclupid & AliPMDclupid::operator=(const AliPMDclupid &pmdclupid) | |
73 | { | |
74 | // Assignment operator | |
a48edddd | 75 | if(this != &pmdclupid) |
7dcaf913 | 76 | { |
a48edddd | 77 | fDet = pmdclupid.fDet; |
78 | fSMN = pmdclupid.fSMN; | |
79 | for(Int_t i=0; i<6; i++) | |
80 | { | |
81 | fClusData[i] = pmdclupid.fClusData[i]; | |
82 | } | |
7dcaf913 | 83 | } |
84 | return *this; | |
85 | } | |
86 | // ------------------------------------------------------------------ // | |
87 | AliPMDclupid::~AliPMDclupid() | |
88 | { | |
89 | // Destructor | |
90 | } | |
91 | // ------------------------------------------------------------------ // | |
92 | Int_t AliPMDclupid::GetDetector() const | |
93 | { | |
94 | return fDet; | |
95 | } | |
96 | // ------------------------------------------------------------------ // | |
97 | Int_t AliPMDclupid::GetSMN() const | |
98 | { | |
99 | return fSMN; | |
100 | } | |
101 | // ------------------------------------------------------------------ // | |
102 | Float_t AliPMDclupid::GetClusX() const | |
103 | { | |
104 | return fClusData[0]; | |
105 | } | |
106 | // ------------------------------------------------------------------ // | |
107 | Float_t AliPMDclupid::GetClusY() const | |
108 | { | |
109 | return fClusData[1]; | |
110 | } | |
111 | // ------------------------------------------------------------------ // | |
112 | Float_t AliPMDclupid::GetClusADC() const | |
113 | { | |
114 | return fClusData[2]; | |
115 | } | |
116 | // ------------------------------------------------------------------ // | |
117 | Float_t AliPMDclupid::GetClusCells() const | |
118 | { | |
119 | return fClusData[3]; | |
120 | } | |
121 | // ------------------------------------------------------------------ // | |
122 | Float_t AliPMDclupid::GetClusRadius() const | |
123 | { | |
124 | return fClusData[4]; | |
125 | } | |
126 | // ------------------------------------------------------------------ // | |
127 | Float_t AliPMDclupid::GetClusPID() const | |
128 | { | |
129 | return fClusData[5]; | |
130 | } | |
131 | ||
132 |