12void hist048_Graphics_candle_hist()
18 TH2I *
h1 =
new TH2I(
"h1",
"Sin", 18, 0, 360, 100, -1.5, 1.5);
19 h1->GetXaxis()->SetTitle(
"Deg");
22 for (
int i = 0; i < 360; i += 10) {
23 for (
int j = 0; j < 100; j++) {
24 myRand = rng->
Gaus(
sin(i * 3.14 / 180), 0.2);
29 for (
int i = 1; i < 7; i++) {
39 for (
int i = 1; i < 3; i++) {
46 TCanvas *
c3 =
new TCanvas(
"c3",
"Playing with candle and violin-options", 800, 600);
48 TString myopt[6] = {
"1000000",
"2000000",
"3000000",
"1112111",
"112111",
"112111"};
49 for (
int i = 0; i < 6; i++) {
55 TH2I *myhist2 = (
TH2I *)
h1->DrawCopy(
"candlex(1000000) same");
61 TH2I *myhist2 = (
TH2I *)
h1->DrawCopy(
"candlex(2000000) same");
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
void SetTitle(const char *title) override
Change/set the title.
virtual void SetBarWidth(Float_t width=0.5)
Set the width of bars as fraction of the bin width for drawing mode "B".
virtual void SetBarOffset(Float_t offset=0.25)
Set the bar offset as fraction of the bin width for drawing mode "B".
2-D histogram with an int per channel (see TH1 documentation)
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...
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
RVec< PromoteType< T > > sin(const RVec< T > &v)