]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG3/hfe/AliHFEtools.h
Updates + addition of EMCal
[u/mrichter/AliRoot.git] / PWG3 / hfe / AliHFEtools.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 // Toolkit containing various usefull things
17 // Usable everywhere in the hfe software package
18 // For more information see the cxx file
19 //
20 #ifndef ALIHFETOOLS_H
21 #define ALIHFETOOLS_H
22
23 #include <TObject.h>
24
25 class TParticle;
26 class AliAODMCParticle;
27 class AliESDpid;
28 class AliAODpidUtil;
29 class AliVParticle;
30
31 class AliHFEtools : public TObject{
32   public:
33     AliHFEtools();
34     ~AliHFEtools() {};
35
36     static Double_t *MakeLinearBinning(Int_t nBins, Double_t ymin, Double_t ymax);
37     static Double_t *MakeLogarithmicBinning(Int_t nBins, Double_t ymin, Double_t ymax);
38     Bool_t    BinLogAxis(TObject *o, Int_t dim);
39     static Float_t GetRapidity(const TParticle *part);
40     static Float_t GetRapidity(const AliAODMCParticle *part); // return rapidity
41     static Int_t GetPdg(const AliVParticle *track);
42     static Int_t PDG2AliPID(Int_t pdg);
43     static AliESDpid *GetDefaultPID(Bool_t isMC = kTRUE);
44     static AliAODpidUtil *GetDefaultAODPID(Bool_t isMC = kTRUE);
45     static void DestroyDefaultPID();
46     static void SetLogLevel(Int_t loglevel) { fgLogLevel = loglevel ;}
47
48   private:
49       AliHFEtools(const AliHFEtools &);
50       AliHFEtools &operator=(const AliHFEtools &);
51       static AliESDpid *fgDefaultPID;           // Default PID object
52       static AliAODpidUtil *fgDefaultPIDaod;    // Default PID object
53       static Int_t fgLogLevel;                  // Log Level
54
55     ClassDef(AliHFEtools, 0)
56 };
57 #endif