Functions | Variables
plot.C File Reference

Go to the source code of this file.

Functions

TFile f ("./Au3.local.root")
 
h1d SetTitle ("Fluence distribution of 13 MeV e- in Au (93.7 mg/cm2)")
 
h1d GetXaxis () -> SetTitle("r (mm)")
 
h1d GetYaxis () -> SetTitle("Fluence")
 
h1d SetStats (kFALSE)
 
h1d Draw ("HIST")
 
in open ("../data/Au3.13MeV.ascii")
 
 for (int i=0;i< nbdata;i++)
 
in close ()
 
legend AddEntry (h1d,"msc95","l")
 
legend AddEntry (pt,"Faddegon data","P")
 
legend Draw ()
 

Variables

TH1D * h1d = (TH1D*) f.Get("4")
 
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 ( h1d  ,
"msc95"  ,
"l"   
)
legend AddEntry ( pt  ,
"Faddegon data ,
"P"   
)
in close ( )
h1d Draw ( "HIST"  )
legend Draw ( )
TFile f ( "./Au3.local.root"  )
for ( )

Definition at line 26 of file plot.C.

References kRed, and y.

26  {
27  in >> x >> y ;
28  if (!in.good()) break;
29  pt = new TMarker(x,y,22); // 22 for triangle TMatker
30  pt->SetMarkerColor(kRed);
31  pt->Draw();
32  }
Double_t y
Definition: plot.C:277
enum BeamMode kRed
Double_t x
Definition: plot.C:277
TMarker * pt
Definition: plot.C:21
ifstream in
Definition: plot.C:18
h1d GetXaxis ( ) -> SetTitle("r (mm)")

Definition at line 84 of file plot_lowE_sig_spread_genie.C.

84 {#nu} (GeV)");
h1d GetYaxis ( ) -> SetTitle("Fluence")
in open ( "../data/Au3.13MeV.ascii"  )
h1d SetStats ( kFALSE  )
h1d SetTitle ( "Fluence distribution of 13 MeV e- in Au (93.7 mg/cm2)"  )

Variable Documentation

TH1D* h1d = (TH1D*) f.Get("4")

Definition at line 7 of file plot.C.

ifstream in

Definition at line 18 of file plot.C.

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

Definition at line 36 of file plot.C.

Referenced by for().

in nbdata = 0

Definition at line 24 of file plot.C.

TMarker* pt

Definition at line 21 of file plot.C.

Double_t x

Definition at line 22 of file plot.C.

Double_t y

Definition at line 22 of file plot.C.