LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
sandia.C File Reference

Go to the source code of this file.

Functions

TFile f1 ("./Ta_1000keV_opt3.root")
 
h1 SetTitle ("Depth dose distribution of 1000 keV e- in Ta")
 
h1 GetXaxis () -> SetTitle("Edep (Mev.cm2/g) along x/r0 x/r0")
 
h1 GetYaxis () -> SetTitle("MeV*cm2/g")
 
h1 SetStats (kFALSE)
 
h1 SetLineColor (4)
 
h1 Draw ("HIST")
 
in open ("./data/Ta_1000keV.ascii")
 
 for (int i=0;i< nbdata;i++)
 
in close ()
 
legend AddEntry (h1,"ref10-opt3 ","l")
 
legend AddEntry (pt,"Sandia data","P")
 
legend Draw ()
 

Variables

TH1D * h1 = (TH1D*) f1.Get("8")
 
ifstream in
 
TMarker * pt
 
Double_t x
 
Double_t y
 
int nbdata = 0
 
TLegend * legend = new TLegend(0.6,0.55,0.8,0.68)
 

Function Documentation

legend AddEntry ( h1  ,
"ref10-opt3 "  ,
"l"   
)
legend AddEntry ( pt  ,
"Sandia data"  ,
"P"   
)
in close ( )
h1 Draw ( "HIST"  )
legend Draw ( )
TFile f1 ( "./Ta_1000keV_opt3.root"  )
for ( )

Definition at line 35 of file sandia.C.

References y.

35  {
36  in >> x >> y ;
37  if (!in.good()) break;
38  pt = new TMarker(x,y,22); // 22 for triangle TMatker
39  pt->SetMarkerColor(kRed);
40  pt->Draw();
41  }
Double_t x
Definition: sandia.C:31
ifstream in
Definition: sandia.C:27
Double_t y
Definition: sandia.C:31
TMarker * pt
Definition: sandia.C:30
h1 GetXaxis ( ) -> SetTitle("Edep (Mev.cm2/g) along x/r0 x/r0")
h1 GetYaxis ( ) -> SetTitle("MeV*cm2/g")
in open ( "./data/Ta_1000keV.ascii"  )
h1 SetLineColor ( )
h1 SetStats ( kFALSE  )
h1 SetTitle ( "Depth dose distribution of 1000 keV e- in Ta"  )

Variable Documentation

TH1D* h1 = (TH1D*) f1.Get("8")

Definition at line 7 of file sandia.C.

ifstream in

Definition at line 27 of file sandia.C.

TLegend* legend = new TLegend(0.6,0.55,0.8,0.68)

Definition at line 45 of file sandia.C.

in nbdata = 0

Definition at line 33 of file sandia.C.

TMarker* pt

Definition at line 30 of file sandia.C.

Double_t x

Definition at line 31 of file sandia.C.

Double_t y

Definition at line 31 of file sandia.C.

Referenced by for().