X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=STEER%2FAliMagFDM.cxx;h=e4cccc9b18f07c41629898c9d57ffbb4a4177db5;hb=b544c64deb2837dc473c9be039aa560725cc4913;hp=fb82a36acfe958f9825116cc8a7ca900029c1363;hpb=57754f18de9ea15ff92c628bb76a094b3dcf0ef6;p=u%2Fmrichter%2FAliRoot.git diff --git a/STEER/AliMagFDM.cxx b/STEER/AliMagFDM.cxx index fb82a36acfe..e4cccc9b18f 100644 --- a/STEER/AliMagFDM.cxx +++ b/STEER/AliMagFDM.cxx @@ -21,10 +21,10 @@ // Author: //------------------------------------------------------------------------- -#include - -#include "TSystem.h" +#include +#include +#include "AliLog.h" #include "AliMagFDM.h" ClassImp(AliMagFDM) @@ -64,8 +64,8 @@ AliMagFDM::AliMagFDM(): } //_______________________________________________________________________ -AliMagFDM::AliMagFDM(const char *name, const char *title, const Int_t integ, - const Float_t factor, const Float_t fmax): +AliMagFDM::AliMagFDM(const char *name, const char *title, Int_t integ, + Float_t factor, Float_t fmax): AliMagFC(name,title,integ,factor,fmax), fSolenoid(0), fInd(0), @@ -101,14 +101,14 @@ AliMagFDM::AliMagFDM(const char *name, const char *title, const Int_t integ, fMap = 3; SetSolenoidField(); - Info("ctor", - "Field Map for Muon Arm from IP till muon filter %s created: map= %d, integ= %d, factor= %f, file=%s\n", - fName.Data(), fMap ,integ,factor,fTitle.Data()); + AliDebug(1, Form( + "Field Map for Muon Arm from IP till muon filter %s created: map= %d, integ= %d, factor= %f, file=%s", + fName.Data(), fMap ,integ,factor,fTitle.Data())); } //_______________________________________________________________________ -void AliMagFDM::Field(Float_t *xfi, Float_t *b) +void AliMagFDM::Field(Float_t *xfi, Float_t *b) const { // // Main routine to compute the field in a point @@ -204,7 +204,7 @@ if ((kfZbg/100 kone) { - printf("xL3[0] %e, xL3[1] %e, xL3[2] %e, yyp %e, r0 %e, cphi %e\n",xL3[0],xL3[1],xL3[2],yyp,r0,cphi); + AliDebug(2,Form("xL3[0] %e, xL3[1] %e, xL3[2] %e, yyp %e, r0 %e, cphi %e",xL3[0],xL3[1],xL3[2],yyp,r0,cphi)); cphi =kone; kcphi=777; } @@ -214,7 +214,7 @@ if ((kfZbg/100 0 && yyp < 0 ) {ph0=kPI2 - ph0;} if (ph0 > kPI2) { ph0=ph0 - kPI2;} if (kcphi==777) { - printf("xL3[0] %e, xL3[1] %e, xL3[2] %e, yyp %e, r0 %e, ph0 %e\n",xL3[0],xL3[1],xL3[2],yyp,r0,ph0); + AliDebug(2,Form("xL3[0] %e, xL3[1] %e, xL3[2] %e, yyp %e, r0 %e, ph0 %e",xL3[0],xL3[1],xL3[2],yyp,r0,ph0)); } fip=ph0; mp0=FZ(fip,fPhi,fPhid ,mpi,fPhin); @@ -300,7 +300,7 @@ if ((kfZbg/100(xx1+(m0+1)*dx)) { m0=m0+1; - printf(" m0 %d, m0+1 %d\n",m0,m0+1); + AliDebug(2,Form(" m0 %d, m0+1 %d\n",m0,m0+1)); } x2=(xL3[0]-( xx1+m0*dx))/dx; @@ -320,7 +320,7 @@ if ((kfZbg/100ExpandPathName(fTitle.Data()); magfile=fopen(fname,"r"); delete [] fname; - printf("Cartensian part\n"); + AliDebug(2,"Cartensian part"); if (magfile) { @@ -554,7 +552,7 @@ void AliMagFDM::ReadField() fscanf(magfile,"%d %d %d ",&fYl, &fXl, &fZl); - printf("fYl %d, fXl %d, fZl %d\n",fYl, fXl, fZl); + AliDebug(3,Form("fYl %d, fXl %d, fZl %d",fYl, fXl, fZl)); for (ik=0; ik