#ifndef ALIHFETOOLS_H #define ALIHFETOOLS_H /************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors are mentioned in the code where appropriate. * * * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * * without fee, provided that the above copyright notice appears in all * * copies and that both the copyright notice and this permission notice * * appear in the supporting documentation. The authors make no claims * * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ /* $Id$ */ // // Toolkit containing various usefull things // Usable everywhere in the hfe software package // For more information see the cxx file // #include class TParticle; class AliAODMCParticle; class AliESDpid; class AliAODpidUtil; class AliVParticle; class AliHFEtools : public TObject{ public: AliHFEtools(); ~AliHFEtools() {}; static Double_t *MakeLinearBinning(Int_t nBins, Double_t ymin, Double_t ymax); static Double_t *MakeLogarithmicBinning(Int_t nBins, Double_t ymin, Double_t ymax); Bool_t BinLogAxis(TObject *o, Int_t dim); static Float_t GetRapidity(const TParticle *part); static Float_t GetRapidity(const AliAODMCParticle *part); // return rapidity static Int_t GetPdg(const AliVParticle *track); static Int_t PDG2AliPID(Int_t pdg); static AliESDpid *GetDefaultPID(Bool_t isMC = kTRUE); static AliAODpidUtil *GetDefaultAODPID(Bool_t isMC = kTRUE); static void DestroyDefaultPID(); static void SetLogLevel(Int_t loglevel) { fgLogLevel = loglevel ;} private: static AliESDpid *fgDefaultPID; // Default PID object static AliAODpidUtil *fgDefaultPIDaod; // Default PID object static Int_t fgLogLevel; // Log Level ClassDef(AliHFEtools, 0) }; #endif