I am using the following code at Garfield++ to plot the electric field setup:
fieldView.SetComponent(&cmp);
fieldView.SetNumberOfSamples1d(1000);
fieldView.SetElectricFieldRange(0,3000);
fieldView.PlotProfile(0,0,0,raiointal,0,0,"e",false); //if you want to graph the electric field
fieldView.GetCanvas();
The plot is fine, and tecnically there is no problem. I would like to know, actually, how to get the points that the program uses to plot it? That is, i would like to have a file.txt that gives me the points (x,y) that the program is using to plot it.
Is there a way to extract it?