]>
Commit | Line | Data |
---|---|---|
1c28d174 | 1 | /************************************************************************** |
2 | * Copyright(c) 1998-2007, 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 | /* $Id$ */ | |
17 | ||
18 | //------------------------------------------------------------------------- | |
19 | // AOD Pid class to store additional pid information | |
d7bdc804 | 20 | // Author: Annalisa Mastroserio |
1c28d174 | 21 | //------------------------------------------------------------------------- |
22 | ||
23 | #include "AliAODPid.h" | |
d7bdc804 | 24 | #include "AliESDtrack.h" |
25 | #include "AliLog.h" | |
1c28d174 | 26 | |
27 | ClassImp(AliAODPid) | |
28 | ||
d7bdc804 | 29 | |
1c28d174 | 30 | //______________________________________________________________________________ |
d7bdc804 | 31 | AliAODPid::AliAODPid(): |
32 | fITSsignal(0), | |
33 | fTPCsignal(0), | |
34 | fTRDnSlices(0), | |
35 | fTRDslices(0x0), | |
36 | fTOFesdsignal(0), | |
37 | fHMPIDsignal(0) | |
1c28d174 | 38 | { |
39 | // default constructor | |
d7bdc804 | 40 | for(Int_t i=0; i<kSPECIES; i++) fIntTime[i]=0; |
373fc041 | 41 | |
1c28d174 | 42 | } |
43 | ||
44 | //______________________________________________________________________________ | |
45 | AliAODPid::~AliAODPid() | |
46 | { | |
47 | // destructor | |
48 | } | |
49 | ||
50 | ||
51 | //______________________________________________________________________________ | |
52 | AliAODPid::AliAODPid(const AliAODPid& pid) : | |
d7bdc804 | 53 | TObject(pid), |
54 | fITSsignal(pid.fITSsignal), | |
55 | fTPCsignal(pid.fTPCsignal), | |
56 | fTRDnSlices(pid.fTRDnSlices), | |
57 | fTRDslices(0x0), | |
58 | fTOFesdsignal(pid.fTOFesdsignal), | |
59 | fHMPIDsignal(pid.fHMPIDsignal) | |
1c28d174 | 60 | { |
61 | // Copy constructor | |
d7bdc804 | 62 | fTRDslices = new Double32_t[fTRDnSlices]; |
63 | for(Int_t i=0; i< fTRDnSlices; i++) fTRDslices[i]=pid.fTRDslices[i]; | |
64 | for(Int_t i=0; i<kSPECIES; i++) fIntTime[i]=pid.fIntTime[i]; | |
1c28d174 | 65 | } |
66 | ||
67 | //______________________________________________________________________________ | |
68 | AliAODPid& AliAODPid::operator=(const AliAODPid& pid) | |
69 | { | |
70 | // Assignment operator | |
71 | if(this!=&pid) { | |
72 | // copy stuff | |
d7bdc804 | 73 | fITSsignal=pid.fITSsignal; |
74 | fTPCsignal=pid.fTPCsignal; | |
75 | fTRDnSlices=pid.fTRDnSlices; | |
76 | for(Int_t i=0; i< fTRDnSlices; i++) fTRDslices[i]=pid.fTRDslices[i]; | |
77 | fTOFesdsignal=pid.fTOFesdsignal; | |
78 | fHMPIDsignal=pid.fHMPIDsignal; | |
79 | for(Int_t i=0; i<kSPECIES; i++) fIntTime[i]=pid.fIntTime[i]; | |
1c28d174 | 80 | } |
81 | ||
82 | return *this; | |
83 | } | |
d7bdc804 | 84 | //_______________________________________________________________________________ |
373fc041 | 85 | void AliAODPid::GetIntegratedTimes(Double_t timeint[kSPECIES]) |
d7bdc804 | 86 | { |
373fc041 | 87 | // Returns the array with integrated times for each particle hypothesis |
88 | for(Int_t i=0; i<kSPECIES; i++) timeint[i]=fIntTime[i]; | |
d7bdc804 | 89 | } |
373fc041 | 90 | //_______________________________________________________________________________ |
91 | void AliAODPid::SetIntegratedTimes(Double_t timeint[kSPECIES]) | |
d7bdc804 | 92 | { |
93 | // Returns the array with integrated times for each particle hypothesis | |
373fc041 | 94 | for(Int_t i=0; i<kSPECIES; i++) fIntTime[i]=timeint[i]; |
d7bdc804 | 95 | } |