variables names changed according to ALICE convention
[u/mrichter/AliRoot.git] / PMD / AliPMDrecpoint1.cxx
CommitLineData
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 28ClassImp(AliPMDrecpoint1)
caf8468f 29
3a71056b 30AliPMDrecpoint1::AliPMDrecpoint1()
caf8468f 31{
a918d77a 32 // Default constructor
caf8468f 33 for (Int_t i = 0; i < 7; i++)
34 {
35 fClusData[i] = 0.;
36 }
37}
38
3a71056b 39AliPMDrecpoint1::AliPMDrecpoint1(Float_t *clusdata)
caf8468f 40{
a918d77a 41 // Constructor
caf8468f 42 for (Int_t i = 0; i < 7; i++)
43 {
44 fClusData[i] = clusdata[i];
45 }
46}
a918d77a 47
48AliPMDrecpoint1::AliPMDrecpoint1(const AliPMDrecpoint1 &pmdrecpoint):TObject(pmdrecpoint)
caf8468f 49{
a918d77a 50 //Copy Constructor
51 if(&pmdrecpoint == this) return;
52 for(Int_t i=0; i<7; i++)
53 {
54 this->fClusData[i] = pmdrecpoint.fClusData[i];
55 }
56 return;
57}
caf8468f 58
a918d77a 59AliPMDrecpoint1 & AliPMDrecpoint1::operator=(const AliPMDrecpoint1 &pmdrecpoint)
60{
61 // Assignment operator
62 if(&pmdrecpoint == this) return *this;
63 for(Int_t i=0; i<7; i++)
64 {
65 this->fClusData[i] = pmdrecpoint.fClusData[i];
66 }
67 return *this;
68}
69
70AliPMDrecpoint1::~AliPMDrecpoint1()
71{
72 // Default destructor
caf8468f 73}
74
3a71056b 75Float_t AliPMDrecpoint1::GetDetector() const
caf8468f 76{
77 return fClusData[0];
78}
3a71056b 79Float_t AliPMDrecpoint1::GetSMNumber() const
caf8468f 80{
81 return fClusData[1];
82}
3a71056b 83Float_t AliPMDrecpoint1::GetClusX() const
caf8468f 84{
85 return fClusData[2];
86}
87
3a71056b 88Float_t AliPMDrecpoint1::GetClusY() const
caf8468f 89{
90 return fClusData[3];
91}
92
3a71056b 93Float_t AliPMDrecpoint1::GetClusADC() const
caf8468f 94{
95 return fClusData[4];
96}
3a71056b 97Float_t AliPMDrecpoint1::GetClusCells() const
caf8468f 98{
99 return fClusData[5];
100}
3a71056b 101Float_t AliPMDrecpoint1::GetClusRadius() const
caf8468f 102{
103 return fClusData[6];
104}
105
106