12 #ifndef RooStats_NumberCountingPdfFactory 13 #define RooStats_NumberCountingPdfFactory 30 const char* pdfName =
"CombinedPdf",
const char* masterSignalName =
"masterSignal") ;
35 Int_t nbins,
RooWorkspace* ws,
const char* dsName =
"ExpectedNumberCountingData");
39 Int_t nbins,
RooWorkspace* ws,
const char* dsName =
"ExpectedNumberCountingData");
A factory for building PDFs and data for a number counting combination.
void AddExpData(Double_t *sigExp, Double_t *bkgExp, Double_t *db, Int_t nbins, RooWorkspace *ws, const char *dsName="ExpectedNumberCountingData")
Arguments are an array of expected signal, expected background, and relative background uncertainty (...
void AddExpDataWithSideband(Double_t *sigExp, Double_t *bkgExp, Double_t *tau, Int_t nbins, RooWorkspace *ws, const char *dsName="NumberCountingData")
Arguments are an array of expected signal, expected background, and relative ratio of background expe...
#define ClassDef(name, id)
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t tau
RooRealVar represents a fundamental (non-derived) real valued object.
NumberCountingPdfFactory()
constructor
Namespace for the RooStats classes.
virtual ~NumberCountingPdfFactory()
destructor
void AddDataWithSideband(Double_t *mainMeas, Double_t *sideband, Double_t *tau, Int_t nbins, RooWorkspace *ws, const char *dsName="ExpectedNumberCountingData")
Arguments are an array of expected signal, expected background, and relative background uncertainty (...
void AddData(Double_t *mainMeas, Double_t *bkgMeas, Double_t *db, Int_t nbins, RooWorkspace *ws, const char *dsName="NumberCountingData")
Arguments are an array of results from a main measurement, a measured background, and relative backgr...
RooRealVar * SafeObservableCreation(RooWorkspace *ws, const char *varName, Double_t value)
need to be careful here that the range of observable in the dataset is consistent with the one in the...
void AddModel(Double_t *sigExp, Int_t nchan, RooWorkspace *ws, const char *pdfName="CombinedPdf", const char *masterSignalName="masterSignal")
This method produces a PDF for N channels with uncorrelated background uncertainty.
The RooWorkspace is a persistable container for RooFit projects.