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