Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions roofit/histfactory/test/testHistFactory.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

#include <RooStats/HistFactory/Measurement.h>
#include <RooStats/HistFactory/MakeModelAndMeasurementsFast.h>
#ifdef HISTFACTORY_XML
#include <RooStats/HistFactory/ConfigParser.h>
#endif
#include <RooFit/ModelConfig.h>

#include <RooFitHS3/JSONIO.h>
Expand Down Expand Up @@ -897,6 +899,9 @@ TEST(HistFactory, ShapeFactorValueAndRange)
}

// 2. XML file round trip.
// The ConfigParser is only built with the xml build option, so this part
// of the test is skipped when ROOT is built without XML support.
#ifdef HISTFACTORY_XML
{
Measurement meas = makeMeasurement();
const std::string xmlDir = "TestShapeFactorRangeXML";
Expand All @@ -912,6 +917,7 @@ TEST(HistFactory, ShapeFactorValueAndRange)
ASSERT_EQ(measFromXML.size(), 1u);
checkShapeFactor(measFromXML.front(), "XML file round trip");
}
#endif

// 3. End to end: the gamma parameters of the workspace pick up the requested
// value and range.
Expand Down
Loading