]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PMD/AliPMDrechit.cxx
Typo corrected.
[u/mrichter/AliRoot.git] / PMD / AliPMDrechit.cxx
CommitLineData
2e45aae7 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 : February 26 2006 //
18// //
19// Store cellhits associated to a cluster //
20// //
21//-----------------------------------------------------//
22
23#include "Riostream.h"
24#include "Rtypes.h"
25#include "AliPMDrechit.h"
26
27ClassImp(AliPMDrechit)
28
29AliPMDrechit::AliPMDrechit():
30 fXcell(0),
31 fYcell(0)
32{
33 // Standard constructor
34}
35
a48edddd 36AliPMDrechit::AliPMDrechit(Int_t cellx, Int_t celly):
37 fXcell(cellx),
38 fYcell(celly)
39
2e45aae7 40{
41 // Constructor
a48edddd 42}
43AliPMDrechit::AliPMDrechit(AliPMDrechit *pmdrechit):
44 fXcell(0),
45 fYcell(0)
46{
47 *this = *pmdrechit;
2e45aae7 48}
49
a48edddd 50AliPMDrechit::AliPMDrechit(const AliPMDrechit& source):
51 TObject(source),
52 fXcell(source.fXcell),
53 fYcell(source.fYcell)
54{
2e45aae7 55 //Copy Constructor
a48edddd 56
2e45aae7 57}
58
a48edddd 59AliPMDrechit& AliPMDrechit::operator=(const AliPMDrechit& source)
60{
2e45aae7 61 //Copy Constructor
a48edddd 62 if(this != &source)
63 {
64 fXcell = source.fXcell;
65 fYcell = source.fYcell;
66 }
2e45aae7 67 return *this;
68}
69
70AliPMDrechit::~AliPMDrechit()
71{
72 // Default destructor
73}
74Int_t AliPMDrechit::GetCellX() const
75{
76 return fXcell;
77}
78Int_t AliPMDrechit::GetCellY() const
79{
80 return fYcell;
81}