#ifndef ALIDIELECTRONHELPER_H #define ALIDIELECTRONHELPER_H /* Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ /////////////////////////////////////////////////////////////////////////////////////////// // // // Dielectron helpers // // // // // // Authors: // // Jens Wiechula // // // /////////////////////////////////////////////////////////////////////////////////////////// #include class AliKFParticle; class AliVEvent; class AliMCEvent; namespace AliDielectronHelper { TVectorD* MakeLogBinning(Int_t nbinsX, Double_t xmin, Double_t xmax); TVectorD* MakeLinBinning(Int_t nbinsX, Double_t xmin, Double_t xmax); TVectorD* MakeArbitraryBinning(const char* bins); void GetMaxPtAndPhi(const AliVEvent *ev, Double_t &ptMax, Double_t &phiOfptMax); Int_t GetNch(const AliMCEvent *ev=0x0, Double_t eta=0.9); Int_t GetNacc(const AliVEvent *ev=0x0); Double_t GetITSTPCMatchEff(const AliVEvent *ev=0x0); Int_t GetNaccTrcklts(const AliVEvent *ev=0x0, Double_t etaRange=1.6); Double_t GetNaccTrckltsCorrected(const AliVEvent *event, Double_t uncorrectedNacc, Double_t vtxZ, Int_t type); void RotateKFParticle(AliKFParticle * kfParticle,Double_t angle, const AliVEvent * const ev=0x0); Int_t GetNMothers(const AliMCEvent *ev=0x0, Double_t etaRange=0.9, Int_t pdgMother=-999, Int_t pdgDaughter=-999, Int_t prim=-1); } #endif