1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
16 // macro for Bethe-Bloch parameters
17 // author: Eulogio Serradilla <eulogio.serradilla@cern.ch>
19 #if !defined(__CINT__) || defined(__MAKECINT__)
23 void SetParameters(Double_t* param, Double_t c0, Double_t c1, Double_t c2, Double_t c3, Double_t c4)
26 // assign values to an array
35 void BetheBlochParams(Double_t* param, const TString& periodname)
38 // TPC Bethe Bloch ALEPH paramaters for different beam periods
40 TString period = periodname;
43 if(period == "lhc10b_pass2")
45 SetParameters(param, 3.22422, 10.9345, 1.26309e-05, 2.26343, 2.43587);
47 else if(period == "lhc10b" || period == "lhc10b_pass3")
49 SetParameters(param, 5.24531, 5.82813, 0.000431522, 2.47198, 1.38539);
52 else if(period == "lhc10c900") // pass3
54 SetParameters(param, 1.4857, 22.9345, 1.77678e-11, 2.26456, 4.44306);
56 else if(period == "lhc10c_pass2")
58 SetParameters(param, 1.49726, 24.5879, 2.76442e-11, 2.15661, 4.91248);
60 else if(period == "lhc10c" || period == "lhc10c_pass3")
62 SetParameters(param, 7.41249, 5.13753, 0.000738319, 2.55495, 1.33519);
64 else if(period == "lhc10d" || period == "lhc10e" || period == "lhc10d_pass2" || period == "lhc10e_pass2")
66 SetParameters(param, 1.59526, 24.6438, 3.5082e-11, 2.18753, 3.7487);
68 else if(period == "lhc10h") // heavy ions
70 SetParameters(param, 2.77047, 14.6777, 5.62959e-08, 2.30422, 2.35623);
72 else if(period == "lhc11a" || period == "lhc11a_wsdd" || period == "lhc11a_wosdd") // pp 2.76 TeV
74 SetParameters(param, 4.94865, 8.29784, 9.95186e-05, 2.22417, 1.51139);
79 else if(period == "lhc10e12" || period == "lhc10e13" || period == "lhc10f6a" || period == "lhc10f6" || period == "lhc10e21")
81 SetParameters(param, 1.98509, 16.9132, 2.27954e-10, 2.1544, 3.94486);
85 SetParameters(param, 4.4194, 7.50931, 1.34e-05, 2.22085, 1.80461);