Skip to content

Commit 74bb92a

Browse files
committed
clang-format clean-up
1 parent 05dc574 commit 74bb92a

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

roofit/hs3/src/JSONFactories_HistFactory.cxx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -823,9 +823,10 @@ void collectElements(RooArgSet &elems, RooAbsArg *arg)
823823
}
824824
}
825825

826-
bool allRooRealVar(const RooAbsCollection &list) {
827-
for (auto* var : list) {
828-
if (!dynamic_cast<RooRealVar*>(var)) {
826+
bool allRooRealVar(const RooAbsCollection &list)
827+
{
828+
for (auto *var : list) {
829+
if (!dynamic_cast<RooRealVar *>(var)) {
829830
return false;
830831
}
831832
}
@@ -929,7 +930,7 @@ Channel readChannel(RooJSONFactoryWSTool *tool, const std::string &pdfname, cons
929930
addNormFactor(par, sample, ws);
930931
} else if (auto hf = dynamic_cast<const RooHistFunc *>(e)) {
931932
updateObservables(hf->dataHist());
932-
} else if (ParamHistFunc* phf = dynamic_cast<ParamHistFunc *>(e); phf && allRooRealVar(phf->paramList())) {
933+
} else if (ParamHistFunc *phf = dynamic_cast<ParamHistFunc *>(e); phf && allRooRealVar(phf->paramList())) {
933934
phfs.push_back(phf);
934935
} else if (auto fip = dynamic_cast<RooStats::HistFactory::FlexibleInterpVar *>(e)) {
935936
// some (modified) histfactory models have several instances of FlexibleInterpVar

roofit/hs3/src/JSONFactories_RooFitCore.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,8 +542,9 @@ class ParamHistFuncFactory : public RooFit::JSONIO::Importer {
542542
RooArgList varList = tool->requestArgList<RooRealVar>(p, "variables");
543543
if (!p.has_child("axes")) {
544544
std::stringstream ss;
545-
ss << "No axes given in '" << name << "'"
546-
<< ". Using default binning (uniform; nbins=100). If needed, export the Workspace with a newer Root version that supports histogram binnings(>6.37.01)." << std::endl;
545+
ss << "No axes given in '" << name << "'"
546+
<< ". Using default binning (uniform; nbins=100). If needed, export the Workspace with a newer Root"
547+
<< " version that supports histogram binnings(>6.37.01)." << std::endl;
547548
RooJSONFactoryWSTool::warning(ss.str());
548549
tool->wsEmplace<ParamHistFunc>(name, varList, tool->requestArgList<RooAbsReal>(p, "parameters"));
549550
return true;

0 commit comments

Comments
 (0)