]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PMD/AliPMDrechit.cxx
isolated cell serach included in AliPMDClusteringV1 and kept in recpoints for offline...
[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 {
35   // Standard constructor
36 }
37
38 AliPMDrechit::AliPMDrechit(Int_t cellx, Int_t celly, Int_t celltr, Int_t cellpid):
39   fXcell(cellx),
40   fYcell(celly),
41   fTrcell(celltr),
42   fPidcell(cellpid)
43
44 {
45   // Constructor
46 }
47 AliPMDrechit::AliPMDrechit(AliPMDrechit *pmdrechit):
48   fXcell(0),
49   fYcell(0),
50   fTrcell(0),
51   fPidcell(0)
52 {
53   *this = *pmdrechit;
54 }
55
56 AliPMDrechit::AliPMDrechit(const AliPMDrechit& source):
57   TObject(source),
58   fXcell(source.fXcell),
59   fYcell(source.fYcell),
60   fTrcell(source.fTrcell),
61   fPidcell(source.fPidcell)
62
63 {
64   //Copy Constructor 
65
66 }
67
68 AliPMDrechit& AliPMDrechit::operator=(const AliPMDrechit& source)
69 {
70   //Copy Constructor 
71   if(this != &source)
72     {
73       fXcell = source.fXcell;
74       fYcell = source.fYcell;
75       fTrcell = source.fTrcell;
76       fPidcell = source.fPidcell;
77     }
78   return *this;
79 }
80
81 AliPMDrechit::~AliPMDrechit()
82 {
83   // Default destructor
84 }
85 Int_t AliPMDrechit::GetCellX() const
86 {
87   return fXcell;
88 }
89 Int_t AliPMDrechit::GetCellY() const
90 {
91   return fYcell;
92 }
93 Int_t AliPMDrechit::GetCellTrack() const
94 {
95   return fTrcell;
96 }
97 Int_t AliPMDrechit::GetCellPid() const
98 {
99   return fPidcell;
100 }