11void candleplotoption()
17 TH2I *
h1 =
new TH2I(
"h1",
"Sin",18,0,360,300,-1.5,1.5);
20 for (
int i = 0; i < 360; i+=10) {
21 for (
int j = 0; j < 100; j++) {
22 myRand = rng->
Gaus(
sin(i*3.14/180),0.2);
26 for (
int i = 1; i < 7; i++) {
29 sprintf(str,
"candlex%d",i);
36 char myopt[16][8] = {
"0",
"1",
"11",
"21",
"31",
"30",
"111",
"311",
"301",
"1111",
"2321",
"12111",
"112111",
"212111",
"312111"};
37 for (
int i = 0; i < 15; i++) {
40 sprintf(str,
"candlex(%s)",myopt[i]);
virtual void SetTitle(const char *title)
See GetStatOverflows for more information.
TAxis * GetXaxis()
Get the behaviour adopted by the object about the statoverflows. See EStatOverflows for more informat...
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
virtual TH1 * DrawCopy(Option_t *option="", const char *name_postfix="_copy") const
Copy this histogram and Draw in the current pad.
2-D histogram with an int per channel (see TH1 documentation)}
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...