]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG3/hfe/AliHFEtools.h
Cleanup the code. Fix memory leak. Now inherit from AliAnalysisTaskSE (Antoine, Phili...
[u/mrichter/AliRoot.git] / PWG3 / hfe / AliHFEtools.h
CommitLineData
27de2dfb 1#ifndef ALIHFETOOLS_H
2#define ALIHFETOOLS_H
3
70da6c5a 4/**************************************************************************
5* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
6* *
7* Author: The ALICE Off-line Project. *
8* Contributors are mentioned in the code where appropriate. *
9* *
10* Permission to use, copy, modify and distribute this software and its *
11* documentation strictly for non-commercial purposes is hereby granted *
12* without fee, provided that the above copyright notice appears in all *
13* copies and that both the copyright notice and this permission notice *
14* appear in the supporting documentation. The authors make no claims *
15* about the suitability of this software for any purpose. It is *
16* provided "as is" without express or implied warranty. *
17**************************************************************************/
27de2dfb 18
19/* $Id$ */
20
70da6c5a 21//
22// Toolkit containing various usefull things
23// Usable everywhere in the hfe software package
24// For more information see the cxx file
25//
70da6c5a 26#include <TObject.h>
27
28class TParticle;
29class AliAODMCParticle;
faee3b18 30class AliESDpid;
3a72645a 31class AliAODpidUtil;
32class AliVParticle;
70da6c5a 33
34class AliHFEtools : public TObject{
35 public:
36 AliHFEtools();
37 ~AliHFEtools() {};
38
39 static Double_t *MakeLinearBinning(Int_t nBins, Double_t ymin, Double_t ymax);
40 static Double_t *MakeLogarithmicBinning(Int_t nBins, Double_t ymin, Double_t ymax);
41 Bool_t BinLogAxis(TObject *o, Int_t dim);
3a72645a 42 static Float_t GetRapidity(const TParticle *part);
43 static Float_t GetRapidity(const AliAODMCParticle *part); // return rapidity
44 static Int_t GetPdg(const AliVParticle *track);
45 static Int_t PDG2AliPID(Int_t pdg);
faee3b18 46 static AliESDpid *GetDefaultPID(Bool_t isMC = kTRUE);
3a72645a 47 static AliAODpidUtil *GetDefaultAODPID(Bool_t isMC = kTRUE);
faee3b18 48 static void DestroyDefaultPID();
49 static void SetLogLevel(Int_t loglevel) { fgLogLevel = loglevel ;}
50
51 private:
3a72645a 52 static AliESDpid *fgDefaultPID; // Default PID object
53 static AliAODpidUtil *fgDefaultPIDaod; // Default PID object
54 static Int_t fgLogLevel; // Log Level
70da6c5a 55
56 ClassDef(AliHFEtools, 0)
57};
58#endif