Example of candle plot showing the whiskers definition. 
   
  
Q1 (-25%): -0.675525 Median: 0.00168511 Q3 (+25%): 0.676189
****************************************
Minimizer is Minuit2 / Migrad
Chi2                      =      11.7941
NDf                       =           17
Edm                       =  1.90451e-06
NCalls                    =          131
Constant                  =       3728.5   +/-   182.159     
Mean                      =    -0.110704   +/-   0.0721072   
Sigma                     =     0.959495   +/-   0.025154       (limited)
****************************************
Minimizer is Minuit2 / Migrad
Chi2                      =       8.0469
NDf                       =           17
Edm                       =  1.56503e-05
NCalls                    =          132
Constant                  =      4071.09   +/-   244.49      
Mean                      =   -0.0289155   +/-   0.087166    
Sigma                     =      1.00961   +/-   0.0288274      (limited)
****************************************
Minimizer is Minuit2 / Migrad
Chi2                      =      6.93238
NDf                       =           11
Edm                       =  3.27894e-08
NCalls                    =          107
Constant                  =      3970.02   +/-   25.7596     
Mean                      = -0.000189021   +/-   0.0118284   
Sigma                     =      1.02465   +/-   0.0335469      (limited)
   
{
   auto c1 = 
new TCanvas(
"c1", 
"Candle Presets", 700, 800);
 
 
   auto h1 = 
new TH2I(
"h1", 
"Gaus", 100, -5, 5, 1, 0, 1);
 
   auto h2 = 
new TH1I(
"h2", 
"Gaus", 100, -5, 5);
 
 
   h2->GetXaxis()->SetTitle("Standard deviation #sigma");
   h2->GetYaxis()->SetTitle("dN/d#sigma");
 
   for (int i = 0; i < 100000; i++) {
   }
 
 
   h2->GetQuantiles(3, 
q, 
p);
 
   cout << 
"Q1 (-25%): " << 
q[0] << 
" Median: " << 
q[1] << 
" Q3 (+25%): " << 
q[2] << endl;
 
   double iqr = 
q[2] - 
q[0];
 
 
   h2->Draw("");
   h2->Fit("mygaus_1_left", "R");
 
   h2->Fit("mygaus_1_right", "R", "");
 
   h2->Fit("mygaus_1_middle", "R");
 
   
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
winID h TVirtualViewer3D TVirtualGLPainter p
 
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
 
virtual void SetFillStyle(Style_t fstyle)
Set the fill area style.
 
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
 
virtual void SetTextFont(Font_t tfont=62)
Set the text font.
 
1-D histogram with an int per channel (see TH1 documentation)
 
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
 
void Draw(Option_t *option="") override
Draw this histogram with options.
 
2-D histogram with an int per channel (see TH1 documentation)
 
Use the TLine constructor to create a simple line.
 
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
 
This is the base class for the ROOT Random number generators.
 
Base class for several text objects.
 
virtual TText * DrawText(Double_t x, Double_t y, const char *text)
Draw this text with new coordinates.
 
- Date
 - June 2022 
 
- Author
 - Georg Troska 
 
Definition in file hist052_Graphics_candle_plot_whiskers.C.