]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PMD/AliPMDrechit.cxx
ATO-98 - Connecting distortion trees - selection as an argument
[u/mrichter/AliRoot.git] / PMD / AliPMDrechit.cxx
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
27 ClassImp(AliPMDrechit)
28
29 AliPMDrechit::AliPMDrechit():
30   fXcell(0),
31   fYcell(0),
32   fTrcell(0),
33   fPidcell(0),
34   fAdccell(0.)
35 {
36   // Standard constructor
37 }
38
39 AliPMDrechit::AliPMDrechit(Int_t cellx, Int_t celly, Int_t celltr,
40                            Int_t cellpid, Float_t celladc):
41   fXcell(cellx),
42   fYcell(celly),
43   fTrcell(celltr),
44   fPidcell(cellpid),
45   fAdccell(celladc)
46
47 {
48   // Constructor
49 }
50 AliPMDrechit::AliPMDrechit(AliPMDrechit *pmdrechit):
51   fXcell(0),
52   fYcell(0),
53   fTrcell(0),
54   fPidcell(0),
55   fAdccell(0.)
56 {
57   *this = *pmdrechit;
58 }
59
60 AliPMDrechit::AliPMDrechit(const AliPMDrechit& source):
61   TObject(source),
62   fXcell(source.fXcell),
63   fYcell(source.fYcell),
64   fTrcell(source.fTrcell),
65   fPidcell(source.fPidcell),
66   fAdccell(source.fAdccell)
67
68 {
69   //Copy Constructor 
70
71 }
72
73 AliPMDrechit& AliPMDrechit::operator=(const AliPMDrechit& source)
74 {
75   //Copy Constructor 
76   if(this != &source)
77     {
78       fXcell = source.fXcell;
79       fYcell = source.fYcell;
80       fTrcell = source.fTrcell;
81       fPidcell = source.fPidcell;
82       fAdccell = source.fAdccell;
83     }
84   return *this;
85 }
86
87 AliPMDrechit::~AliPMDrechit()
88 {
89   // Default destructor
90 }
91 Int_t AliPMDrechit::GetCellX() const
92 {
93   return fXcell;
94 }
95 Int_t AliPMDrechit::GetCellY() const
96 {
97   return fYcell;
98 }
99 Int_t AliPMDrechit::GetCellTrack() const
100 {
101   return fTrcell;
102 }
103 Int_t AliPMDrechit::GetCellPid() const
104 {
105   return fPidcell;
106 }
107 Float_t AliPMDrechit::GetCellAdc() const
108 {
109   return fAdccell;
110 }