26 for (
int i = dateBegin->
Convert(); i < dateEnd->
Convert(); i+=86400*30) {
27 for (
int j = 0; j < 1000; j++) {
28 Rand = rng->
Gaus(500+
sin(i/10000000.)*100,50); h1->
Fill(i,Rand);
29 Rand = rng->
Gaus(500+
sin(i/11000000.)*100,70); h2->Fill(i,Rand);
39 h2->SetBarOffset(0.25);
40 h2->SetLineColor(
kRed);
46 h2->Draw(
"candle3 same");
48 gPad->BuildLegend(0.78,0.695,0.980,0.935,
"",
"f");
virtual void SetBarOffset(Float_t offset=0.25)
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
virtual void SetFillStyle(Style_t fstyle)
Set the fill area style.
void SetTimeOffset(Double_t toffset)
Change the time offset for time plotting.
virtual void SetBarWidth(Float_t width=0.5)
This is the base class for the ROOT Random number generators.
virtual void SetTimeDisplay(Int_t value)
virtual void Draw(Option_t *option="")
Draw this histogram with options.
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
UInt_t Convert(Bool_t toGMT=kFALSE) const
Convert fDatime from TDatime format to the standard time_t format.
THist< 2, int, THistStatContent > TH2I
2-D histogram with an int per channel (see TH1 documentation)}
Int_t Fill(Double_t)
Invalid Fill method.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
TAxis * GetXaxis()
Get the behaviour adopted by the object about the statoverflows. See EStatOverflows for more informat...
This class stores the date and time with a precision of one second in an unsigned 32 bit word (950130...