]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSpidESD.cxx
bugfix to make the AliHLTDisplay working
[u/mrichter/AliRoot.git] / ITS / AliITSpidESD.cxx
CommitLineData
8c6a71ab 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//-----------------------------------------------------------------
17// Implementation of the ITS PID class
18// Very naive one... Should be made better by the detector experts...
19// Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch
20//-----------------------------------------------------------------
21
e1e6896f 22#include <TMath.h>
23
8c6a71ab 24#include "AliITSpidESD.h"
8c6a71ab 25#include "AliESDtrack.h"
26
27ClassImp(AliITSpidESD)
28
8c6a71ab 29
e62c1aea 30//______________________________________________________________________
31AliITSpidESD::AliITSpidESD():TObject(){
32 //Default constructor
33
34}
8c6a71ab 35Double_t AliITSpidESD::Bethe(Double_t bg) {
36 //
37 // This is the Bethe-Bloch function normalised to 1 at the minimum
38 //
39 Double_t bg2=bg*bg;
431be10d 40 Double_t bethe;
ca75fe5f 41 /*if (bg<3.5)
42 bethe=(1.+ bg2)/bg2*(log(5940*bg2) - bg2/(1.+ bg2));
43 else*/ // not 100% clear why...
e1e6896f 44 bethe=(1.+ bg2)/bg2*(TMath::Log(3.5*5940*bg) - bg2/(1.+ bg2));
8c6a71ab 45 return bethe/11.091;
46}
47