Gsatt replaces
[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
afef6247 30AliPMDrecpoint1::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// ------------------------------------------------------------------------- //
a48edddd 41AliPMDrecpoint1::AliPMDrecpoint1(Int_t idet, Int_t ismn, Float_t *clusdata):
42 fDet(idet),
43 fSMN(ismn)
caf8468f 44{
a918d77a 45 // Constructor
d5571fed 46 for (Int_t i = 0; i < 6; i++)
caf8468f 47 {
48 fClusData[i] = clusdata[i];
49 }
50}
afef6247 51// ------------------------------------------------------------------------- //
a48edddd 52AliPMDrecpoint1::AliPMDrecpoint1(AliPMDrecpoint1 *pmdrecpoint):
53 fDet(0),
54 fSMN(0)
55{
56 *this = *pmdrecpoint;
57}
58
59// ------------------------------------------------------------------------- //
60AliPMDrecpoint1::AliPMDrecpoint1(const AliPMDrecpoint1 &pmdrecpoint):
61 TObject(pmdrecpoint),
62 fDet(pmdrecpoint.fDet),
63 fSMN(pmdrecpoint.fSMN)
caf8468f 64{
a918d77a 65 //Copy Constructor
d5571fed 66 for(Int_t i=0; i<6; i++)
a918d77a 67 {
a48edddd 68 fClusData[i] = pmdrecpoint.fClusData[i];
a918d77a 69 }
a918d77a 70}
afef6247 71// ------------------------------------------------------------------------- //
a918d77a 72AliPMDrecpoint1 & AliPMDrecpoint1::operator=(const AliPMDrecpoint1 &pmdrecpoint)
73{
74 // Assignment operator
a48edddd 75 if(this != &pmdrecpoint)
a918d77a 76 {
a48edddd 77 fDet = pmdrecpoint.fDet;
78 fSMN = pmdrecpoint.fSMN;
79 for(Int_t i=0; i<6; i++)
80 {
81 fClusData[i] = pmdrecpoint.fClusData[i];
82 }
a918d77a 83 }
84 return *this;
85}
afef6247 86// ------------------------------------------------------------------------- //
a918d77a 87AliPMDrecpoint1::~AliPMDrecpoint1()
88{
89 // Default destructor
caf8468f 90}
afef6247 91// ------------------------------------------------------------------------- //
92Int_t AliPMDrecpoint1::GetDetector() const
caf8468f 93{
afef6247 94 return fDet;
caf8468f 95}
afef6247 96// ------------------------------------------------------------------------- //
97Int_t AliPMDrecpoint1::GetSMNumber() const
caf8468f 98{
afef6247 99 return fSMN;
caf8468f 100}
afef6247 101// ------------------------------------------------------------------------- //
3a71056b 102Float_t AliPMDrecpoint1::GetClusX() const
caf8468f 103{
afef6247 104 return fClusData[0];
caf8468f 105}
afef6247 106// ------------------------------------------------------------------------- //
3a71056b 107Float_t AliPMDrecpoint1::GetClusY() const
caf8468f 108{
afef6247 109 return fClusData[1];
caf8468f 110}
afef6247 111// ------------------------------------------------------------------------- //
3a71056b 112Float_t AliPMDrecpoint1::GetClusADC() const
caf8468f 113{
afef6247 114 return fClusData[2];
caf8468f 115}
afef6247 116// ------------------------------------------------------------------------- //
3a71056b 117Float_t AliPMDrecpoint1::GetClusCells() const
caf8468f 118{
afef6247 119 return fClusData[3];
caf8468f 120}
afef6247 121// ------------------------------------------------------------------------- //
d5571fed 122Float_t AliPMDrecpoint1::GetClusSigmaX() const
caf8468f 123{
afef6247 124 return fClusData[4];
caf8468f 125}
afef6247 126// ------------------------------------------------------------------------- //
d5571fed 127Float_t AliPMDrecpoint1::GetClusSigmaY() const
128{
129 return fClusData[5];
130}
131// ------------------------------------------------------------------------- //
caf8468f 132
133