calibration classes added
[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
36AliPMDrechit::AliPMDrechit(Int_t cellx, Int_t celly)
37{
38 // Constructor
39 fXcell = cellx;
40 fYcell = celly;
41}
42
43AliPMDrechit::AliPMDrechit(const AliPMDrechit& source):TObject(source) {
44 //Copy Constructor
45 if(&source == this) return;
46 this->fXcell = source.fXcell;
47 this->fYcell = source.fYcell;
48 return;
49}
50
51AliPMDrechit& AliPMDrechit::operator=(const AliPMDrechit& source) {
52 //Copy Constructor
53 if(&source == this) return *this;
54 this->fXcell = source.fXcell;
55 this->fYcell = source.fYcell;
56 return *this;
57}
58
59AliPMDrechit::~AliPMDrechit()
60{
61 // Default destructor
62}
63Int_t AliPMDrechit::GetCellX() const
64{
65 return fXcell;
66}
67Int_t AliPMDrechit::GetCellY() const
68{
69 return fYcell;
70}