1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
16 //Utils for identified fragmentation function (IDFF) analysis
17 //Author: Xianguo Lu (xianguo.lu@cern.ch)
19 #ifndef ALIIDFFUTILS_H
20 #define ALIIDFFUTILS_H
23 #include "THnSparse.h"
24 #include "AliPIDResponse.h"
25 #include "AliAODTrack.h"
27 #include <TTreeStream.h>
42 static THnSparseD* GetTHn(const TString name);
43 static void FillTHn(THnSparseD * hh, Double_t jetpt, const AliAODTrack * trackk, AliAODEvent* aodevt, const Int_t tofmode);
45 static Bool_t TPCCutPIDN(const AliAODTrack * track);
46 static Bool_t TPCCutMIGeo(const AliAODTrack * track, const AliVEvent* evt, TTreeStream * streamer=0x0);
49 static AliPIDResponse * fPid;
52 static Double_t Xmin(){return -1;}
53 static Double_t Xmax(){return 2;}
54 static Int_t Nx(){return 300;}
56 static Int_t PDG2Type(const Int_t pdg);
58 static Int_t TOFType(const AliAODTrack * trackptr, const Int_t tofmode);
60 static Bool_t HMPIDAcceptance(const AliAODTrack *track);
61 static Bool_t HMPIDQA(const AliAODTrack *track);
62 static Int_t HMPIDType(const AliAODTrack * track);