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
8 changes: 3 additions & 5 deletions roofit/histfactory/src/HistoToWorkspaceFactoryFast.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,11 @@
#include <RooGlobalFunc.h>
#include <RooHelpers.h>
#include <RooHistFunc.h>
#include <RooMultiVarGaussian.h>
#include <RooNumIntConfig.h>
#include <RooPoisson.h>
#include <RooPolyVar.h>
#include <RooProdPdf.h>
#include <RooProduct.h>
#include <RooProfileLL.h>
#include <RooRandom.h>
#include <RooRealSumPdf.h>
#include <RooRealVar.h>
Expand All @@ -56,8 +54,6 @@

#include "TH1.h"
#include "TStopwatch.h"
#include "TVectorD.h"
#include "TMatrixDSym.h"

// specific to this package
#include <RooStats/HistFactory/Detail/HistFactoryImpl.h>
Expand Down Expand Up @@ -1515,7 +1511,9 @@ RooArgList HistoToWorkspaceFactoryFast::createObservables(const TH1 *hist, RooWo
if(!model) std::cout <<"failed to find model for channel"<< std::endl;
// std::cout << "int = " << model->createIntegral(*obsN)->getVal() << std::endl;
models.push_back(model);
globalObs.add(*ch->set("globalObservables"), /*silent=*/true); // silent because observables might exist in other channel.
auto &modelConfig = *static_cast<ModelConfig *>(chs[i]->obj("ModelConfig"));
// silent because observables might exist in other channel:
globalObs.add(*modelConfig.GetGlobalObservables(), /*silent=*/true);

// constrainedParams->add( * ch->set("constrainedParams") );
pdfMap[channel_name]=model;
Expand Down
Loading