Skip to content

Commit df2aaa7

Browse files
committed
Fix typos in math and histfactory tutorials and others
1 parent 030f599 commit df2aaa7

26 files changed

+72
-72
lines changed

tutorials/hist/hlHisto3.C

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
/// \ingroup tutorial_hist
33
///
44
/// This tutorial demonstrates how the highlight mechanism can be used on a ntuple.
5-
/// The ntuple in `hsimple.root` is drawn with three differents selection. Moving
6-
/// the mouse ove the two 1D representation display the on 2D plot the events
5+
/// The ntuple in `hsimple.root` is drawn with three different selections. Moving
6+
/// the mouse over the two 1D representation display the on 2D plot the events
77
/// contributing to the highlighted bin.
88
///
99
/// \macro_code

tutorials/histfactory/ModifyInterpolation.C

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void CheckInterpolation(RooWorkspace* ws);
6363

6464
// Codes for interpolation
6565
// code = 0: piece-wise linear
66-
// code = 1: pice-wise log
66+
// code = 1: piece-wise log
6767
// code = 2: parabolic interp with linear extrap
6868
// code = 3: parabolic version of log-normal
6969

tutorials/histfactory/example_DataDriven_controlRegion.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Single channel configuration exampple.
2+
Single channel configuration example.
33
The top level configuration XML is example.xml
44
55
NormalizedByTheory should be "True" (not "TRUE" or "true") for all non-data-driven backgrounds.

tutorials/histfactory/example_DataDriven_signalRegion.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Single channel configuration exampple.
2+
Single channel configuration example.
33
The top level configuration XML is example.xml
44
55
NormalizedByTheory should be "True" (not "TRUE" or "true") for all non-data-driven backgrounds.

tutorials/histfactory/example_Expression_channel.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Single channel configuration exampple.
2+
Single channel configuration example.
33
The top level configuration XML is example.xml
44
55
NormalizedByTheory should be "True" (not "TRUE" or "true") for all non-data-driven backgrounds.

tutorials/histfactory/example_ShapeSys_channel.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Single channel configuration exampple.
2+
Single channel configuration example.
33
The top level configuration XML is example.xml
44
55
NormalizedByTheory should be "True" (not "TRUE" or "true") for all non-data-driven backgrounds.

tutorials/histfactory/example_channel.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Single channel configuration exampple.
2+
Single channel configuration example.
33
The top level configuration XML is example.xml
44
55
NormalizedByTheory should be "True" (not "TRUE" or "true") for all non-data-driven backgrounds.

tutorials/histfactory/makeQuickModel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def MakeSimpleMeasurement( signal_val, background_val, data_val, signal_uncertai
137137

138138
# Create a channel and set
139139
# the measured value of data
140-
# (no extenal hist necessar for cut-and-count)
140+
# (no external hist necessary for cut-and-count)
141141
chan = ROOT.RooStats.HistFactory.Channel( "channel" )
142142
chan.SetData( data_val )
143143

@@ -147,7 +147,7 @@ def MakeSimpleMeasurement( signal_val, background_val, data_val, signal_uncertai
147147
signal.SetValue( signal_val )
148148
#signal.SetValue( 10 )
149149

150-
# Add the parmaeter of interest and a systematic
150+
# Add the parameter of interest and a systematic
151151
# Try to make intelligent choice of upper bound
152152
import math
153153
upper_bound = 3*math.ceil( (data_val - background_val) / signal_val )

tutorials/math/GammaFun.C

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void GammaFun() {
5151

5252
//setting graph
5353
// draw axis first (use TH1 to draw the frame)
54-
TH1F * h = new TH1F("htmp","",500,-2,5);
54+
TH1F * h = new TH1F("hTemp","",500,-2,5);
5555
h->SetMinimum(-20);
5656
h->SetMaximum(20);
5757
h->GetXaxis()->SetTitleSize(0.06);

tutorials/math/goftest.C

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ void goftest() {
8585
Double_t pvalueAD_2 = (*goftest_1)(); // p-value and Anderson - Darling Test are the default choices
8686
assert(pvalueAD_1 == pvalueAD_2);
8787

88-
// Rebuild the test using the default 1-sample construtor
88+
// Rebuild the test using the default 1-sample constructor
8989
delete goftest_1;
9090
goftest_1 = new ROOT::Math::GoFTest(nEvents1, sample1 ); // User must then input a distribution type option
9191
goftest_1->SetDistribution(ROOT::Math::GoFTest::kLogNormal);
@@ -184,7 +184,7 @@ void goftest() {
184184
assert(pvalueKS_1 == pvalueKS_2);
185185

186186
#ifdef TEST_ERROR_MESSAGE
187-
/* Valid but incorrect calls for the 1-sample methods of the 2-samples constucted goftest_2 */
187+
/* Valid but incorrect calls for the 1-sample methods of the 2-samples constructed goftest_2 */
188188
A2 = (*goftest_2)(ROOT::Math::GoFTest::kAD, "t"); // Issues error message
189189
pvalueKS = (*goftest_2)(ROOT::Math::GoFTest::kKS); // Issues error message
190190
assert(A2 == pvalueKS);

0 commit comments

Comments
 (0)