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 **************************************************************************/
18 Revision 1.1.2.1 2002/07/24 08:56:29 alibrary
19 Updating EVGEN on TVirtulaMC
21 Revision 1.1 2002/07/15 13:12:33 morsch
22 Library class for parton quenching calculations.
27 #include "AliPartonicEnergyLoss.h"
32 # define lookup lookup_
34 # define readca3 readca3_
37 # define lookup LOOKUP
39 # define readca3 READCA3
40 # define type_of_call _stdcall
44 extern "C" void type_of_call lookup(Double_t &, Double_t &,
45 Double_t &, Double_t &);
46 extern "C" void type_of_call read();
47 extern "C" void type_of_call readca3();
50 ClassImp(AliPartonicEnergyLoss)
52 void AliPartonicEnergyLoss::
53 QuenchingWeight(Double_t r, Double_t x, Double_t& cont, Double_t& disc)
56 // Calculate quenching weight
58 lookup(r,x,cont,disc);
61 void AliPartonicEnergyLoss::RunTest()
66 Double_t cont, disc, rri, wwt;
71 for (Int_t i = 1; i <= 40; i++)
73 wwt = TMath::Power(10., (-3.+5.*(i-1)/49.));
74 QuenchingWeight(rri,wwt,cont,disc);
75 printf("%d %e %e\n", i, wwt, cont);
79 void AliPartonicEnergyLoss::Init()