#include #include #include "TApplication.h" #include "Garfield/FundamentalConstants.hh" #include "Garfield/MediumMagboltz.hh" #include "Garfield/ViewMedium.hh" using namespace Garfield; int main(int argc, char* argv[]) { TApplication app("app", &argc, argv); // - - - - - - - - - // Original Gas File // - - - - - - - - - MediumMagboltz gas01; gas01.LoadGasFile("ar_80_co2_20_2T.gas"); std::vector efields; std::vector bfields; std::vector angles; gas01.GetFieldGrid(efields, bfields, angles); const auto nE = efields.size(); const auto nB = bfields.size(); const auto nA = angles.size(); // std::cout<<"Before reading :: Efield size = "< labels = {"Ar/CO_{2} 80/20 2T Original", "Ar/CO_{2} 80/20 2T Copy"}; view.SetLabels(labels); view.SetMedium(&gas02); view.PlotElectronVelocity('e', true); TCanvas c2; view.SetCanvas(&c2); view.SetMedium(&gas01); view.PlotElectronTownsend('e'); view.SetLabels(labels); view.SetMedium(&gas02); view.PlotElectronTownsend('e', true); app.Run(true); }