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