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 : August 05 2003 //
18 : // used to store the info into TreeS //
19 : // //
20 : //-----------------------------------------------------//
21 : #include "Riostream.h"
22 : #include "Rtypes.h"
23 : #include "AliPMDsdigit.h"
24 : #include <stdio.h>
25 :
26 12 : ClassImp(AliPMDsdigit)
27 :
28 31 : AliPMDsdigit::AliPMDsdigit():
29 31 : fTrNumber(0),
30 31 : fTrPid(0),
31 31 : fDet(0),
32 31 : fSMN(0),
33 31 : fRow(0),
34 31 : fColumn(0),
35 31 : fEdep(0.)
36 155 : {
37 : // Default Constructor
38 62 : }
39 :
40 221 : AliPMDsdigit::AliPMDsdigit(Int_t trnumber, Int_t trpid, Int_t det, Int_t smn,
41 : Int_t irow, Int_t icol, Float_t edep):
42 221 : fTrNumber(trnumber),
43 221 : fTrPid(trpid),
44 221 : fDet(det),
45 221 : fSMN(smn),
46 221 : fRow(irow),
47 221 : fColumn(icol),
48 221 : fEdep(edep)
49 1105 : {
50 : // Constructor
51 442 : }
52 :
53 0 : AliPMDsdigit::AliPMDsdigit(AliPMDsdigit *pmdsdigit):
54 0 : fTrNumber(0),
55 0 : fTrPid(0),
56 0 : fDet(0),
57 0 : fSMN(0),
58 0 : fRow(0),
59 0 : fColumn(0),
60 0 : fEdep(0.)
61 0 : {
62 0 : *this = *pmdsdigit;
63 0 : }
64 :
65 : AliPMDsdigit::AliPMDsdigit(const AliPMDsdigit& pmdsdigit):
66 0 : TObject(pmdsdigit),
67 0 : fTrNumber(pmdsdigit.fTrNumber),
68 0 : fTrPid(pmdsdigit.fTrPid),
69 0 : fDet(pmdsdigit.fDet),
70 0 : fSMN(pmdsdigit.fSMN),
71 0 : fRow(pmdsdigit.fRow),
72 0 : fColumn(pmdsdigit.fColumn),
73 0 : fEdep(pmdsdigit.fEdep)
74 0 : {
75 : //Copy Constructor
76 0 : }
77 : AliPMDsdigit & AliPMDsdigit::operator=(const AliPMDsdigit& pmdsdigit)
78 : {
79 : //Assignment operator
80 0 : if(this != &pmdsdigit)
81 : {
82 0 : fTrNumber = pmdsdigit.fTrNumber;
83 0 : fTrPid = pmdsdigit.fTrPid;
84 0 : fDet = pmdsdigit.fDet;
85 0 : fSMN = pmdsdigit.fSMN;
86 0 : fRow = pmdsdigit.fRow;
87 0 : fColumn = pmdsdigit.fColumn;
88 0 : fEdep = pmdsdigit.fEdep;
89 0 : }
90 0 : return *this;
91 : }
92 :
93 :
94 : AliPMDsdigit::~AliPMDsdigit()
95 1008 : {
96 : // Default Destructor
97 1008 : }
98 : Int_t AliPMDsdigit::GetTrackNumber() const
99 : {
100 442 : return fTrNumber;
101 : }
102 : Int_t AliPMDsdigit::GetTrackPid() const
103 : {
104 442 : return fTrPid;
105 : }
106 : Int_t AliPMDsdigit::GetDetector() const
107 : {
108 470 : return fDet;
109 : }
110 : Int_t AliPMDsdigit::GetSMNumber() const
111 : {
112 442 : return fSMN;
113 : }
114 : Int_t AliPMDsdigit::GetRow() const
115 : {
116 442 : return fRow;
117 : }
118 : Int_t AliPMDsdigit::GetColumn() const
119 : {
120 442 : return fColumn;
121 : }
122 : Float_t AliPMDsdigit::GetCellEdep() const
123 : {
124 456 : return fEdep;
125 : }
|