17 TH2I *
h1 =
new TH2I(
"h1",
"Sin", 18, 0, 360, 100, -1.5, 1.5);
21 for (
int i = 0; i < 360; i+= 10) {
22 for (
int j = 0; j < 100; j++) {
23 myRand = rand->
Gaus(
sin(i * 3.14 / 180), 0.2);
28 for (
int i = 1; i < 7; i++) {
38 for (
int i = 1; i < 3; i++) {
45 TCanvas *
c3 =
new TCanvas(
"c3",
"Playing with candle and violin-options", 800, 600);
47 TString myopt[6] = {
"1000000",
"2000000",
"3000000",
"1112111",
"112111",
"112111"};
48 for (
int i = 0; i < 6; i++) {
virtual void SetBarOffset(Float_t offset=0.25)
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...
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
virtual TH1 * DrawCopy(Option_t *option="", const char *name_postfix="_copy") const
Copy this histogram and Draw in the current pad.
virtual void SetBarWidth(Float_t width=0.5)
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString...
This is the base class for the ROOT Random number generators.
std::vector< std::vector< double > > Data
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
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.
THist< 2, int, THistStatContent > TH2I
virtual void SetTitle(const char *title)
Change (i.e.
tomato 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.