Import Geant4 10.5.0 source tree
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
// -------------------------------------------------------------------
|
||||
// $Id: plot.C 70323 2013-05-29 07:57:44Z gcosmo $
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
// *********************************************************************
|
||||
@@ -21,16 +20,16 @@ c1->Divide(1,1);
|
||||
|
||||
FILE * fp = fopen("s.txt","r");
|
||||
|
||||
Float_t radius,E,s,ss;
|
||||
Float_t radius,E,thick,sc,ssc,sn,ssn;
|
||||
Int_t ncols = 0;
|
||||
Int_t nlines = 0;
|
||||
|
||||
TNtuple *ntuple = new TNtuple("ntuple","s","radius:E:s:ss");
|
||||
TNtuple *ntuple = new TNtuple("ntuple","s","radius:thick:E:sc:ssc:sn:ssn");
|
||||
while (1)
|
||||
{
|
||||
ncols = fscanf(fp,"%f %f %f %f",&radius,&E,&s,&ss);
|
||||
ncols = fscanf(fp,"%f %f %f %f %f %f %f",&radius,&thick,&E,&sc,&ssc,&sn,&ssn);
|
||||
if (ncols < 0) break;
|
||||
ntuple->Fill(radius,E,s,ss);
|
||||
ntuple->Fill(radius,thick,E,sc,ssc,sn,ssn);
|
||||
nlines++;
|
||||
}
|
||||
fclose(fp);
|
||||
@@ -39,11 +38,16 @@ c1->cd(1);
|
||||
gPad->SetLogx();
|
||||
gPad->SetLogy();
|
||||
|
||||
TH2F * h2 = new TH2F ("h2","",2,99.999,1e4,2,1e2,1e4);
|
||||
TH2F * h2 = new TH2F ("h2","",2,99.999,1e4,2,1e0,1e3);
|
||||
h2->Draw();
|
||||
|
||||
ntuple->SetMarkerStyle(24);
|
||||
ntuple->SetMarkerSize(1.);
|
||||
ntuple->Draw("sc:E","","LPsame");
|
||||
|
||||
ntuple->SetMarkerStyle(20);
|
||||
ntuple->SetMarkerSize(1.);
|
||||
ntuple->Draw("s:E","","LPsame");
|
||||
ntuple->Draw("sn:E","","LPsame");
|
||||
|
||||
h2->GetXaxis()->SetLabelSize(0.025);
|
||||
h2->GetYaxis()->SetLabelSize(0.025);
|
||||
@@ -54,4 +58,10 @@ h2->GetYaxis()->SetTitleOffset(1.4);
|
||||
h2->GetXaxis()->SetTitle("E (eV)");
|
||||
h2->GetYaxis()->SetTitle("S (Gy/Bq.s)");
|
||||
|
||||
TText *pt1 = new TText(200,200,"Cytoplasm");
|
||||
pt1->Draw("SAME");
|
||||
|
||||
TText *pt2 = new TText(400,15,"Nucleus");
|
||||
pt2->Draw("SAME");
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user