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