]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/STEERBase/AliTPCdEdxInfo.cxx
Setting of the "proper" range for histogramming.
[u/mrichter/AliRoot.git] / STEER / STEERBase / AliTPCdEdxInfo.cxx
CommitLineData
40b4e5ea 1#include "AliTPCdEdxInfo.h"
2
3//##################################################################
4//
5// Simple class to store TPC dE/dx info for different pad regions.
6//
7// Origin: Marian Ivanov, Alexander Kalweit
8//
9//##################################################################
10
11
12
13ClassImp(AliTPCdEdxInfo)
14
15AliTPCdEdxInfo::AliTPCdEdxInfo():
16 TObject(),
17 fTPCsignalRegion(),
ca6b3353 18 fTPCsignalRegionQmax(),
40b4e5ea 19 fTPCsignalNRegion(),
20 fTPCsignalNRowRegion()
21{
22 // Default constructor
23 for (Int_t i=0;i<3; i++){
24 fTPCsignalRegion[i]=0;
ca6b3353 25 fTPCsignalRegionQmax[i]=0;
40b4e5ea 26 fTPCsignalNRegion[i]=0;
27 fTPCsignalNRowRegion[i]=0;
28 }
29 fTPCsignalRegion[3]=0;
ca6b3353 30 fTPCsignalRegionQmax[3]=0;
31
40b4e5ea 32}
33
ca6b3353 34//_______________________________________________________________________________________________
35AliTPCdEdxInfo::AliTPCdEdxInfo(const AliTPCdEdxInfo& source):
36 TObject(),
37 fTPCsignalRegion(),
38 fTPCsignalRegionQmax(),
39 fTPCsignalNRegion(),
40 fTPCsignalNRowRegion()
41{
42 //
43 // copy constructor
44 //
45 for (Int_t i=0;i<3; i++){
46 fTPCsignalRegion[i] = source.fTPCsignalRegion[i];
47 fTPCsignalRegionQmax[i] = source.fTPCsignalRegionQmax[i];
48 fTPCsignalNRegion[i] = source.fTPCsignalNRegion[i];
49 fTPCsignalNRowRegion[i] = source.fTPCsignalNRowRegion[i];
50 }
51 fTPCsignalRegion[3] = source.fTPCsignalRegion[3];
52 fTPCsignalRegionQmax[3] = source.fTPCsignalRegionQmax[3];
53
f8546be1 54}
40b4e5ea 55
ca6b3353 56//_______________________________________________________________________________________________
57AliTPCdEdxInfo& AliTPCdEdxInfo::operator=(const AliTPCdEdxInfo& source)
58{
59 //
60 // assignment operator
08c24516 61 //
62
63 if (&source == this) return *this;
64 TObject::operator=(source);
65
ca6b3353 66 for (Int_t i=0;i<3; i++){
67 fTPCsignalRegion[i] = source.fTPCsignalRegion[i];
68 fTPCsignalRegionQmax[i] = source.fTPCsignalRegionQmax[i];
69 fTPCsignalNRegion[i] = source.fTPCsignalNRegion[i];
70 fTPCsignalNRowRegion[i] = source.fTPCsignalNRowRegion[i];
71 }
72 fTPCsignalRegion[3] = source.fTPCsignalRegion[3];
73 fTPCsignalRegionQmax[3] = source.fTPCsignalRegionQmax[3];
74
08c24516 75 return *this;
76
77}
78
ca6b3353 79//_______________________________________________________________________________________________
80void AliTPCdEdxInfo::GetTPCSignalRegionInfo(Double_t signal[4], Char_t ncl[3], Char_t nrows[3]) const {
40b4e5ea 81 //
82 // Get the TPC dEdx variables per region
83 //
84 // Double32_t fTPCsignalRegion[4]; // TPC dEdx signal in 4 different regions - 0 - IROC, 1- OROC medium, 2 - OROC long, 3- OROC all, (default truncation used)
85 // Char_t fTPCsignalNRegion[3]; // number of clusters above threshold used in the dEdx calculation
86 // Char_t fTPCsignalNRowRegion[3]; // number of crosed rows used in the dEdx calculation - signal below threshold included
87 //
88 for (Int_t i=0; i<3; i++){
89 signal[i]=fTPCsignalRegion[i];
90 ncl[i]=fTPCsignalNRegion[i];
91 nrows[i]=fTPCsignalNRowRegion[i];
92 }
93 signal[3]=fTPCsignalRegion[3];
94 return;
95}
96
ca6b3353 97//_______________________________________________________________________________________________
98void AliTPCdEdxInfo::GetTPCSignals(Double_t signal[4]) const {
99 //
100 // Set the TPC dEdx variables per region
101 //
102 // Double32_t fTPCsignalRegionQmax[4]; // TPC dEdx signal in 4 different regions - 0 - IROC, 1- OROC medium, 2 - OROC long, 3- OROC all, (default truncation used)
103 //
104 for (Int_t i=0;i<4; i++){
105 signal[i]=fTPCsignalRegion[i];
106 }
107}
40b4e5ea 108
ca6b3353 109//_______________________________________________________________________________________________
110void AliTPCdEdxInfo::SetTPCSignalRegionInfo(Double_t signal[4], Char_t ncl[3], Char_t nrows[3]){
40b4e5ea 111 //
112 // Set the TPC dEdx variables per region
113 //
114 // Double32_t fTPCsignalRegion[4]; // TPC dEdx signal in 4 different regions - 0 - IROC, 1- OROC medium, 2 - OROC long, 3- OROC all, (default truncation used)
115 // Char_t fTPCsignalNRegion[3]; // number of clusters above threshold used in the dEdx calculation
116 // Char_t fTPCsignalNRowRegion[3]; // number of crosed rows used in the dEdx calculation - signal below threshold included
117 //
118 for (Int_t i=0;i<3; i++){
119 fTPCsignalRegion[i]=signal[i];
120 fTPCsignalNRegion[i]=ncl[i];
121 fTPCsignalNRowRegion[i]=nrows[i];
122 }
123 fTPCsignalRegion[3]=signal[3];
124 return;
125}
ca6b3353 126
127//_______________________________________________________________________________________________
128void AliTPCdEdxInfo::SetTPCSignals(Double_t signal[4]){
129 //
130 // Set the TPC dEdx variables per region
131 //
132 // Double32_t fTPCsignalRegionQmax[4]; // TPC dEdx signal in 4 different regions - 0 - IROC, 1- OROC medium, 2 - OROC long, 3- OROC all, (default truncation used)
133 //
134 for (Int_t i=0;i<4; i++){
135 fTPCsignalRegion[i]=signal[i];
136 }
137}
138
139//_______________________________________________________________________________________________
140void AliTPCdEdxInfo::GetTPCSignalRegionInfoQmax(Double_t signal[4], Char_t ncl[3], Char_t nrows[3]) const {
141 //
142 // Get the TPC dEdx variables per region
143 //
144 // Double32_t fTPCsignalRegionQmax[4]; // TPC dEdx signal in 4 different regions - 0 - IROC, 1- OROC medium, 2 - OROC long, 3- OROC all, (default truncation used)
145 // Char_t fTPCsignalNRegion[3]; // number of clusters above threshold used in the dEdx calculation
146 // Char_t fTPCsignalNRowRegion[3]; // number of crosed rows used in the dEdx calculation - signal below threshold included
147 //
148 for (Int_t i=0; i<3; i++){
149 signal[i]=fTPCsignalRegionQmax[i];
150 ncl[i]=fTPCsignalNRegion[i];
151 nrows[i]=fTPCsignalNRowRegion[i];
152 }
153 signal[3]=fTPCsignalRegionQmax[3];
154 return;
155}
156
157//_______________________________________________________________________________________________
158void AliTPCdEdxInfo::GetTPCSignalsQmax(Double_t signal[4]) const {
159 //
160 // Set the TPC dEdx variables per region
161 //
162 // Double32_t fTPCsignalRegionQmax[4]; // TPC dEdx signal in 4 different regions - 0 - IROC, 1- OROC medium, 2 - OROC long, 3- OROC all, (default truncation used)
163 //
164 for (Int_t i=0;i<4; i++){
165 signal[i]=fTPCsignalRegionQmax[i];
166 }
167}
168
169//_______________________________________________________________________________________________
170void AliTPCdEdxInfo::SetTPCSignalRegionInfoQmax(Double_t signal[4], Char_t ncl[3], Char_t nrows[3]){
171 //
172 // Set the TPC dEdx variables per region
173 //
174 // Double32_t fTPCsignalRegionQmax[4]; // TPC dEdx signal in 4 different regions - 0 - IROC, 1- OROC medium, 2 - OROC long, 3- OROC all, (default truncation used)
175 // Char_t fTPCsignalNRegion[3]; // number of clusters above threshold used in the dEdx calculation
176 // Char_t fTPCsignalNRowRegion[3]; // number of crosed rows used in the dEdx calculation - signal below threshold included
177 //
178 for (Int_t i=0;i<3; i++){
179 fTPCsignalRegionQmax[i]=signal[i];
180 fTPCsignalNRegion[i]=ncl[i];
181 fTPCsignalNRowRegion[i]=nrows[i];
182 }
183 fTPCsignalRegionQmax[3]=signal[3];
184 return;
185}
186
187//_______________________________________________________________________________________________
188void AliTPCdEdxInfo::SetTPCSignalsQmax(Double_t signal[4]){
189 //
190 // Set the TPC dEdx variables per region
191 //
192 // Double32_t fTPCsignalRegionQmax[4]; // TPC dEdx signal in 4 different regions - 0 - IROC, 1- OROC medium, 2 - OROC long, 3- OROC all, (default truncation used)
193 //
194 for (Int_t i=0;i<4; i++){
195 fTPCsignalRegionQmax[i]=signal[i];
196 }
197}