void Bio_test(){ double mu0=1.256637062*1E-6; double x[256*40],y[256*40],z[256*40]; double Hx[100],Hy[100],Hz[100]; double xm[100],ym[100],zm[100]; int nm=2; int jn=256*40; double cir_R=10;//[m] double I=2;//[A] double pi=TMath::Pi(); TPolyMarker3D *check; check=new TPolyMarker3D(256); TPolyLine3D *checkCoil; checkCoil=new TPolyLine3D(256); for(int i=0;iSetPoint(i,xm[i],ym[i],zm[i]); } for(int j=0;jSetPoint(j,x[j],y[j],z[j]); } for(int i=0;iSetStyle("Plain"); gROOT->ForceStyle(); gStyle->SetOptStat(0); gStyle->SetCanvasBorderMode(0); gStyle->SetPadColor(0); gStyle->SetTitleFillColor(0); gStyle->SetStatColor(0); // gStyle->SetCanvasBorderMode(0);//remove yellow line gStyle->SetCanvasColor(0); gStyle->SetFrameLineColor(1); gStyle->SetPadColor(0); gStyle->SetTitleFillColor(0); gStyle->SetStatColor(0); TCanvas *c2 = new TCanvas("c2","coil",200,100,1000,700); TH3F *framecc2; framecc2 = new TH3F("framecc2","",10, -10, 10,10, -10, 10, 10,-10,10); framecc2->GetXaxis()->SetLabelSize(0.04); framecc2->GetXaxis()->SetTitleSize(0.04); framecc2->GetYaxis()->SetLabelSize(0.04); framecc2->GetYaxis()->SetTitleSize(0.04); framecc2->GetZaxis()->SetLabelSize(0.04); framecc2->GetZaxis()->SetTitleSize(0.04); framecc2->GetXaxis()->SetTitle("x [m]"); framecc2->GetYaxis()->SetTitle("y [m]"); framecc2->GetZaxis()->SetTitle("z [m]"); framecc2->GetXaxis()->SetTitleOffset(1.2); framecc2->GetYaxis()->SetTitleOffset(1.2); framecc2->GetZaxis()->SetTitleOffset(1.6); framecc2->SetStats(0); framecc2->Draw(); c2->SetLeftMargin(0.15); c2->SetRightMargin(0.05); c2->SetBottomMargin(0.10); check->SetMarkerStyle(24); check->SetMarkerColor(2); check->Draw("p"); checkCoil->SetLineColor(6); checkCoil->Draw("l"); // }