Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
NumberCountingPdfFactory.h
Go to the documentation of this file.
1// @(#)root/roostats:$Id$
2// Author: Kyle Cranmer 28/07/2008
3
4/*************************************************************************
5 * Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef RooStats_NumberCountingPdfFactory
13#define RooStats_NumberCountingPdfFactory
14
15#include "Rtypes.h"
16
17class RooWorkspace;
18class RooRealVar;
19
20namespace RooStats{
21
23
24 public:
25 /// need one for expected and one for observed
26 virtual ~NumberCountingPdfFactory() = default;
27
28 void AddModel(double* sigExp, Int_t nchan, RooWorkspace* ws,
29 const char* pdfName = "CombinedPdf", const char* masterSignalName = "masterSignal") ;
30
31 void AddData(double* mainMeas, double* bkgMeas, double* db,
32 Int_t nbins, RooWorkspace* ws, const char* dsName = "NumberCountingData");
33 void AddExpData(double* sigExp, double* bkgExp, double* db,
34 Int_t nbins, RooWorkspace* ws, const char* dsName = "ExpectedNumberCountingData");
35 void AddExpDataWithSideband(double* sigExp, double* bkgExp, double* tau,
36 Int_t nbins, RooWorkspace* ws, const char* dsName = "NumberCountingData");
37 void AddDataWithSideband(double* mainMeas, double* sideband, double* tau,
38 Int_t nbins, RooWorkspace* ws, const char* dsName = "ExpectedNumberCountingData");
39
40 private:
41 RooRealVar* SafeObservableCreation(RooWorkspace* ws, const char* varName, double value) ;
42 RooRealVar* SafeObservableCreation(RooWorkspace* ws, const char* varName, double value, double maximum) ;
43
44
45 protected:
46 ClassDef(NumberCountingPdfFactory,1) // A factory specific to common number counting problems.
47
48 };
49}
50
51#endif
#define ClassDef(name, id)
Definition Rtypes.h:337
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
Variable that can be changed from the outside.
Definition RooRealVar.h:37
A factory for building PDFs and data for a number counting combination.
void AddDataWithSideband(double *mainMeas, double *sideband, double *tau, Int_t nbins, RooWorkspace *ws, const char *dsName="ExpectedNumberCountingData")
Arguments are an array of expected signal, expected background, and relative background uncertainty (...
virtual ~NumberCountingPdfFactory()=default
need one for expected and one for observed
void AddModel(double *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.
void AddData(double *mainMeas, double *bkgMeas, double *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...
void AddExpData(double *sigExp, double *bkgExp, double *db, Int_t nbins, RooWorkspace *ws, const char *dsName="ExpectedNumberCountingData")
Arguments are an array of expected signal, expected background, and relative background uncertainty (...
RooRealVar * SafeObservableCreation(RooWorkspace *ws, const char *varName, double value)
need to be careful here that the range of observable in the dataset is consistent with the one in the...
void AddExpDataWithSideband(double *sigExp, double *bkgExp, double *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...
Persistable container for RooFit projects.
Namespace for the RooStats classes.
Definition Asimov.h:19