Hi Guys, Very simple macro: #include <TMath.h> double eff(double tau){ return 0.0140213*( TMath::Atan((30.5012/tau-7.3399)/2.0)- TMath::Atan((3.25151/tau-4.62383)/2.0) ); } double test(){ cout<<eff(0.1)<<endl; cout<<eff(1.0)<<endl; return 0.0; } When I try doing: .L que.C test() where que.C is the name of the file.....it complains that it can't find TMath ? cheers Mat
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:56 MET