<commit_before>// compare numerical result to analytic calculation for a 1D true coaxial detector
using namespace GeFiCa;
void compare2analytic()
{
   // configure detector
   TrueCoaxial1D *num = new TrueCoaxial1D;
   num->V0=3000*volt; // core
   num->V1=0*volt; // outer surface electrode
   num->InnerR=0.5*cm;
   num->OuterR=3.0*cm;
   num->SetAverageImpurity(-3e9/cm3); // n-type

   // make a copy of the detector configuration
   TrueCoaxial1D *ana = (TrueCoaxial1D*) num->Clone("ana");

   // calculate potential using SOR method
   num->CalculatePotential(kSOR2);

   // fill grid with analytic result
   ana->CalculatePotential(kAnalytic);

   // prepare drawing style
   gROOT->SetStyle("Plain"); // pick up a good drawing style to modify
   gStyle->SetLegendBorderSize(0);
   gStyle->SetLegendFont(132);
   gStyle->SetLabelFont(132,"XY");
   gStyle->SetTitleFont(132,"XY");
   gStyle->SetLabelSize(0.05,"XY");
   gStyle->SetTitleSize(0.05,"XY");
   gStyle->SetPadRightMargin(0.01);
   gStyle->SetPadLeftMargin(0.12);
   gStyle->SetPadTopMargin(0.02);

   // generate graphics
   TTree *tn = num->GetTree();
   tn->Draw("v:c1");
   TGraph *gn = new TGraph(tn->GetSelectedRows(), tn->GetV2(), tn->GetV1());
   TTree *ta = ana->GetTree();
   ta->Draw("v:c1");
   TGraph *ga = new TGraph(ta->GetSelectedRows(), ta->GetV2(), ta->GetV1());

   // compare numerical result to analytic calculation
   gn->SetMarkerColor(kBlue);
   gn->SetMarkerStyle(kCircle);
   gn->SetMarkerSize(0.8);
   ga->SetLineColor(kRed);
   gn->SetTitle(";Radius [cm];Potential [V]");
   gn->Draw("ap");
   ga->Draw("l");

   TLegend *l = new TLegend(0.5,0.65,0.8,0.8);
   l->AddEntry(ga,"Analytic","l");
   l->AddEntry(gn,"SOR2","p");
   l->Draw();

   gPad->Print("tc1.png");
}
<commit_msg>improved title of x-axis<commit_after>using namespace GeFiCa;
// compare numerical result to analytic calculation for a 1D true coaxial detector
void compare2analytic()
{
   // configure detector
   TrueCoaxial1D *num = new TrueCoaxial1D;
   num->V0=3000*volt; // core
   num->V1=0*volt; // outer surface electrode
   num->InnerR=0.5*cm;
   num->OuterR=3.0*cm;
   num->SetAverageImpurity(-3e9/cm3); // n-type

   // make a copy of the detector configuration
   TrueCoaxial1D *ana = (TrueCoaxial1D*) num->Clone("ana");

   // calculate potential using SOR method
   num->CalculatePotential(kSOR2);

   // fill grid with analytic result
   ana->CalculatePotential(kAnalytic);

   // generate graphics
   gStyle->SetPadLeftMargin(0.12);

   TTree *tn = num->GetTree();
   tn->Draw("v:c1","","goff");
   TGraph *gn = new TGraph(tn->GetSelectedRows(), tn->GetV2(), tn->GetV1());
   TTree *ta = ana->GetTree();
   ta->Draw("v:c1","","goff");
   TGraph *ga = new TGraph(ta->GetSelectedRows(), ta->GetV2(), ta->GetV1());

   // compare numerical result to analytic calculation
   gn->SetMarkerColor(kBlue);
   gn->SetMarkerStyle(kCircle);
   gn->SetMarkerSize(0.8);
   ga->SetLineColor(kRed);
   gn->SetTitle(";Radial position [cm];Potential [V]");
   gn->Draw("ap");
   ga->Draw("l");

   TLegend *l = new TLegend(0.5,0.65,0.8,0.8);
   l->AddEntry(ga,"Analytic","l");
   l->AddEntry(gn,"SOR","p");
   l->Draw();

   gPad->Print("tc1.png");
}

{'fraction_non_alphanumeric': 0.18204488778054864, 'fraction_numerical': 0.033354114713216955, 'mean_word_length': 3.854765506807867, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 72, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6188608', 'n_tokens_mistral': 1252, 'n_tokens_neox': 1162, 'n_words': 229}