]>
Commit | Line | Data |
---|---|---|
7f0c28ff ML |
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 | //Utils for identified fragmentation function (IDFF) analysis | |
17 | //Author: Xianguo Lu (xianguo.lu@cern.ch) | |
18 | ||
19 | #ifndef ALIIDFFUTILS_H | |
20 | #define ALIIDFFUTILS_H | |
21 | ||
22 | #include "TH2D.h" | |
23 | #include "THnSparse.h" | |
24 | #include "AliPIDResponse.h" | |
25 | #include "AliAODTrack.h" | |
26 | ||
27 | #include <TTreeStream.h> | |
28 | ||
29 | class AliIDFFUtils | |
30 | { | |
31 | public: | |
32 | enum TYPEID{ | |
33 | kNOTACCEPTED = -3, | |
34 | kNOINFO = -2, | |
35 | kNOTSELECTED = -1, | |
36 | kPROTON=0, | |
37 | kPION, | |
38 | kKAON, | |
39 | kELECTRON | |
40 | }; | |
41 | ||
42 | static THnSparseD* GetTHn(const TString name); | |
6e794d52 | 43 | static void FillTHn(THnSparseD * hh, Double_t jetpt, const AliAODTrack * trackk, AliAODEvent* aodevt, Int_t tofmode); |
7f0c28ff ML |
44 | |
45 | static Bool_t TPCCutPIDN(const AliAODTrack * track); | |
46 | static Bool_t TPCCutMIGeo(const AliAODTrack * track, const AliVEvent* evt, TTreeStream * streamer=0x0); | |
47 | ||
48 | ||
49 | static AliPIDResponse * fPid; | |
50 | ||
51 | private: | |
52 | static Double_t Xmin(){return -1;} | |
53 | static Double_t Xmax(){return 2;} | |
54 | static Int_t Nx(){return 300;} | |
55 | ||
6e794d52 | 56 | static Int_t PDG2Type(Int_t pdg); |
7f0c28ff | 57 | |
6e794d52 | 58 | static Int_t TOFType(const AliAODTrack * trackptr, Int_t tofmode); |
1bb86680 | 59 | static Int_t TPCType(const AliAODTrack * trackptr); |
7f0c28ff | 60 | |
6e794d52 | 61 | static Int_t CombineTPCTOF(Int_t ktpc, Int_t ktof); |
1bb86680 | 62 | |
63 | //static Bool_t HMPIDAcceptance(const AliAODTrack *track); | |
64 | //static Bool_t HMPIDQA(const AliAODTrack *track); | |
65 | //static Int_t HMPIDType(const AliAODTrack * track); | |
7f0c28ff ML |
66 | |
67 | }; | |
68 | ||
69 | #endif |