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