]>
Commit | Line | Data |
---|---|---|
1423bac9 | 1 | #ifndef ALIAODPIDUTIL_H |
2 | #define ALIAODPIDUTIL_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id: AliAODpidUtil.h 38493 2010-01-26 16:33:03Z hristov $ */ | |
7 | ||
8 | //------------------------------------------------------- | |
9 | // Combined PID class | |
10 | // for the AOD class | |
11 | // Origin: Rosa Romita, GSI, r.romita@gsi.de | |
12 | //------------------------------------------------------- | |
13 | #include <Rtypes.h> | |
14 | #include <TMatrixD.h> | |
15 | #include "AliAODTrack.h" // Needed for inline functions | |
16 | #include "AliAODPid.h" // Needed for inline functions | |
17 | #include "AliTPCPIDResponse.h" | |
18 | #include "AliITSPIDResponse.h" | |
19 | #include "AliTOFPIDResponse.h" | |
20 | #include "AliTRDPIDResponse.h" | |
21 | //#include "HMPID/AliHMPID.h" | |
22 | ||
23 | class AliAODEvent; | |
24 | ||
25 | class AliAODpidUtil { | |
26 | public: | |
ab4b50b4 | 27 | |
28 | AliAODpidUtil(Bool_t isMC = kFALSE): fRange(5.), fTPCResponse(), fITSResponse(isMC), fTOFResponse(), fTRDResponse() {;} | |
1423bac9 | 29 | virtual ~AliAODpidUtil() {;} |
30 | ||
31 | ||
1c2fc6e0 | 32 | Int_t MakePID(AliAODTrack *track,Double_t *p) const; |
5e6a3170 | 33 | void MakeTPCPID(const AliAODTrack *track,Double_t *p) const; |
34 | void MakeITSPID(const AliAODTrack *track,Double_t *p) const; | |
35 | void MakeTOFPID(const AliAODTrack *track,Double_t *p) const; | |
1423bac9 | 36 | // void MakeHMPIDPID(AliESDtrack *track); |
5e6a3170 | 37 | void MakeTRDPID(const AliAODTrack *track,Double_t *p) const; |
1423bac9 | 38 | |
39 | Float_t NumberOfSigmasTPC(const AliAODTrack *track, AliPID::EParticleType type) const; | |
1c2fc6e0 | 40 | Float_t NumberOfSigmasTOF(const AliAODTrack *track, AliPID::EParticleType type) const; |
1423bac9 | 41 | Float_t NumberOfSigmasITS(const AliAODTrack *track, AliPID::EParticleType type) const; |
42 | ||
43 | AliITSPIDResponse &GetITSResponse() {return fITSResponse;} | |
44 | AliTPCPIDResponse &GetTPCResponse() {return fTPCResponse;} | |
45 | AliTOFPIDResponse &GetTOFResponse() {return fTOFResponse;} | |
46 | ||
47 | private: | |
48 | Float_t fRange; // nSigma max in likelihood | |
5e6a3170 | 49 | AliTPCPIDResponse fTPCResponse; // TPC Response |
50 | AliITSPIDResponse fITSResponse; // ITS Response | |
51 | AliTOFPIDResponse fTOFResponse; // TOF Response | |
52 | AliTRDPIDResponse fTRDResponse; // TRD Response | |
01f931c1 | 53 | |
1423bac9 | 54 | ClassDef(AliAODpidUtil,1) // PID calculation class |
55 | }; | |
56 | ||
1423bac9 | 57 | #endif |
58 | ||
59 |