30 script_time = time(0);
31 script_time = 3600*(int)(script_time/3600);
47 TH1F *ht =
new TH1F(
"ht",
"Love at first sight",3000,0.,2000.);
48 for (i=1;i<3000;i++) {
51 noise += 1000*
sin((i-700)*6.28/30)*
exp((
double)(700-i)/300);
70 x[i] =
sin(i*4*3.1415926/50)*
exp(-(
double)i/20);
71 t[i] = 6000+(double)i/20;
93 gt2->
SetTitle(
"Number of monkeys on the moon");
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual void SetTimeFormat(const char *format="")
Change the format used for time plotting.
virtual Double_t Gaus(Double_t mean=0, Double_t sigma=1)
Samples a random number from the standard Normal (Gaussian) Distribution with the given mean and sigm...
R__EXTERN TStyle * gStyle
THist< 1, float, THistStatContent, THistStatUncertainty > TH1F
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
tomato 1-D histogram with a float per channel (see TH1 documentation)}
virtual void SetTitle(const char *title="")
Set graph title.
void SetTimeOffset(Double_t toffset)
Change the time offset for time plotting.
virtual void Draw(Option_t *chopt="")
Draw this graph with its current attributes.
static const double x2[5]
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
virtual void SetTimeDisplay(Int_t value)
virtual void SetLineColor(Color_t lcolor)
Set the line color.
virtual void Draw(Option_t *option="")
Draw this histogram with options.
virtual void SetBinContent(Int_t bin, Double_t content)
Set bin content see convention for numbering bins in TH1::GetBin In case the bin number is greater th...
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
R__EXTERN TRandom * gRandom
void SetTitleH(Float_t h=0)
virtual void SetLabelSize(Float_t size=0.04)
Set size of axis labels The size is expressed in per cent of the pad width.
virtual void SetMarkerSize(Size_t msize=1)
Set the marker size.
TAxis * GetXaxis() const
Get x axis of the graph.
virtual void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0)
Automatic pad generation by division.
A Graph is a graphics object made of two arrays X and Y with npoints each.