void candleplotstack()
{
int bins = 1000;
float Rand;
for (
int i = dateBegin->
Convert(); i < dateEnd->Convert(); i+=86400*30) {
for (int j = 0; j < 1000; j++) {
Rand = rng->
Gaus(500+
sin(i/12000000.)*100,50); h2->
Fill(i,Rand);
hsum->Fill(i,Rand);
}
}
gPad->BuildLegend(0.75,0.75,0.95,0.95,
"");
}
R__EXTERN TStyle * gStyle
virtual void SetNdivisions(Int_t n=510, Bool_t optim=kTRUE)
Set the number of divisions for this axis.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
virtual void SetTimeDisplay(Int_t value)
virtual void SetTimeFormat(const char *format="")
Change the format used for time plotting.
This class stores the date and time with a precision of one second in an unsigned 32 bit word (950130...
UInt_t Convert(Bool_t toGMT=kFALSE) const
Convert fDatime from TDatime format to the standard time_t format.
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
2-D histogram with an int per channel (see TH1 documentation)}
Int_t Fill(Double_t)
Invalid Fill method.
The Histogram stack class.
virtual void Draw(Option_t *chopt="")
Draw this multihist with its current attributes.
virtual void Add(TH1 *h, Option_t *option="")
add a new histogram to the list Only 1-d and 2-d histograms currently supported.
TAxis * GetXaxis() const
Get x axis of the histogram used to draw the stack.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
This is the base class for the ROOT Random number generators.
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...
void SetTimeOffset(Double_t toffset)
Change the time offset for time plotting.