24 for (
int i =
dateBegin->Convert(); i <
dateEnd->Convert(); i += 86400 * 30) {
25 for (
int j = 0;
j < 1000;
j++) {
26 Rand =
rng->Gaus(500 + sin(i / 10000000.) * 100, 50);
29 Rand =
rng->Gaus(500 + sin(i / 12000000.) * 100, 50);
39 auto hs =
new THStack(
"hs",
"Machine A+B");
41 hs->Add(h2,
"candle2");
44 hs->GetXaxis()->SetNdivisions(410);
48 hs->GetXaxis()->SetTimeDisplay(1);
49 hs->GetXaxis()->SetTimeFormat(
"%d/%m/%y");
50 hs->GetXaxis()->SetNdivisions(-6);
51 hs->GetXaxis()->SetTitle(
"Date [day/month/year]");
54 gPad->BuildLegend(0.75, 0.75, 0.95, 0.95,
"");
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
R__EXTERN TStyle * gStyle
This class stores the date and time with a precision of one second in an unsigned 32 bit word (950130...
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)
The Histogram stack class.
This is the base class for the ROOT Random number generators.
void SetTimeOffset(Double_t toffset)
Change the time offset for time plotting.