43 ClassImp(RooStats::HistFactory::HistFactorySimultaneous);
49 RooStats::HistFactory::HistFactorySimultaneous::HistFactorySimultaneous(
const char *name,
const char *title,
50 RooAbsCategoryLValue& inIndexCat) :
51 RooSimultaneous(name, title, inIndexCat ) {}
56 RooStats::HistFactory::HistFactorySimultaneous::HistFactorySimultaneous(
const char *name,
const char *title,
57 const RooArgList& inPdfList, RooAbsCategoryLValue& inIndexCat) :
58 RooSimultaneous(name, title, inPdfList, inIndexCat) {}
63 RooStats::HistFactory::HistFactorySimultaneous::HistFactorySimultaneous(
const char *name,
const char *title,
64 map<string,RooAbsPdf*> pdfMap, RooAbsCategoryLValue& inIndexCat) :
65 RooSimultaneous(name, title, pdfMap, inIndexCat) {}
70 RooStats::HistFactory::HistFactorySimultaneous::HistFactorySimultaneous(
const HistFactorySimultaneous& other,
const char* name) :
71 RooSimultaneous(other, name) {}
75 RooStats::HistFactory::HistFactorySimultaneous::HistFactorySimultaneous(
const RooSimultaneous& other,
const char* name) :
76 RooSimultaneous(other, name) {}
81 RooStats::HistFactory::HistFactorySimultaneous::~HistFactorySimultaneous()
88 RooAbsReal* RooStats::HistFactory::HistFactorySimultaneous::createNLL(RooAbsData& data,
89 const RooCmdArg& arg1,
const RooCmdArg& arg2,
90 const RooCmdArg& arg3,
const RooCmdArg& arg4,
91 const RooCmdArg& arg5,
const RooCmdArg& arg6,
92 const RooCmdArg& arg7,
const RooCmdArg& arg8) {
96 l.Add((TObject*)&arg1) ; l.Add((TObject*)&arg2) ;
97 l.Add((TObject*)&arg3) ; l.Add((TObject*)&arg4) ;
98 l.Add((TObject*)&arg5) ; l.Add((TObject*)&arg6) ;
99 l.Add((TObject*)&arg7) ; l.Add((TObject*)&arg8) ;
100 return createNLL(data,l) ;
107 RooAbsReal* RooStats::HistFactory::HistFactorySimultaneous::createNLL(RooAbsData& data,
const RooLinkedList& cmdList) {
125 RooNLLVar* nll = (RooNLLVar*) RooSimultaneous::createNLL( data, cmdList );
127 RooBarlowBeestonLL* bbnll =
new RooBarlowBeestonLL(
"bbnll",
"bbnll", *nll);
128 bbnll->setPdf(
this );
129 bbnll->setDataset( &data );
130 bbnll->initializeBarlowCache();