I am currently trying to use garfield++ to simulate electron drifting motion using class AvalancheMC:
double x0 = …
double y0 = …
double z0 = …
double t0 = …
I have loaded the field map exported from COMSOL and have also loaded gas table. The contour plot of the electric potential seems fine.
No errors were shown when I ran it, but no electron drift lines were drawn in the pop up window. It seems electrons didn’t drift at all no matter which position it starts from.
To understand what is going on, I tried to modify the source code “AvalancheMC.cc” in my source directory so that it can print out my customized error messages and print out the electric field for certain coordinates, but the modification I made to the source code doesn’t have any effect when I re-run the simulation code:
Could you help me find the right way to do it?
Are there any other ways to print out the electric field for a given position?
I can provide more information if needed. Thanks a lot for any help you may give.