]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/STEERBase/AliTPCdEdxInfo.cxx
Re-fixing with a deep copy in the copy constructory and assignment operator
[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(),
18 fTPCsignalNRegion(),
19 fTPCsignalNRowRegion()
20{
21 // Default constructor
22 for (Int_t i=0;i<3; i++){
23 fTPCsignalRegion[i]=0;
24 fTPCsignalNRegion[i]=0;
25 fTPCsignalNRowRegion[i]=0;
26 }
27 fTPCsignalRegion[3]=0;
28
29}
30
31
40b4e5ea 32void AliTPCdEdxInfo::GetTPCSignalRegionInfo(Double32_t signal[4], Char_t ncl[3], Char_t nrows[3]) const {
33 //
34 // Get the TPC dEdx variables per region
35 //
36 // 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)
37 // Char_t fTPCsignalNRegion[3]; // number of clusters above threshold used in the dEdx calculation
38 // Char_t fTPCsignalNRowRegion[3]; // number of crosed rows used in the dEdx calculation - signal below threshold included
39 //
40 for (Int_t i=0; i<3; i++){
41 signal[i]=fTPCsignalRegion[i];
42 ncl[i]=fTPCsignalNRegion[i];
43 nrows[i]=fTPCsignalNRowRegion[i];
44 }
45 signal[3]=fTPCsignalRegion[3];
46 return;
47}
48
49
50void AliTPCdEdxInfo::SetTPCSignalRegionInfo(Double32_t signal[4], Char_t ncl[3], Char_t nrows[3]){
51 //
52 // Set the TPC dEdx variables per region
53 //
54 // 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)
55 // Char_t fTPCsignalNRegion[3]; // number of clusters above threshold used in the dEdx calculation
56 // Char_t fTPCsignalNRowRegion[3]; // number of crosed rows used in the dEdx calculation - signal below threshold included
57 //
58 for (Int_t i=0;i<3; i++){
59 fTPCsignalRegion[i]=signal[i];
60 fTPCsignalNRegion[i]=ncl[i];
61 fTPCsignalNRowRegion[i]=nrows[i];
62 }
63 fTPCsignalRegion[3]=signal[3];
64 return;
65}