]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGJE/UserTasks/AliIDFFUtils.h
Include L0 trigger in the trigger maker and the trigger patch object Add monitoring...
[u/mrichter/AliRoot.git] / PWGJE / UserTasks / AliIDFFUtils.h
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);
43   static void FillTHn(THnSparseD * hh, Double_t jetpt, const AliAODTrack * trackk,  AliAODEvent* aodevt, Int_t tofmode);  
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
56   static Int_t PDG2Type(Int_t pdg);
57   
58   static Int_t TOFType(const AliAODTrack * trackptr, Int_t tofmode);
59   static Int_t TPCType(const AliAODTrack * trackptr);
60
61   static Int_t CombineTPCTOF(Int_t ktpc, Int_t ktof);
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);
66
67 };
68
69 #endif