Logo ROOT  
Reference Guide
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Loading...
Searching...
No Matches
HLFactory.h File Reference
#include "RooAbsPdf.h"
#include "RooCategory.h"
#include "RooDataSet.h"
#include "RooWorkspace.h"
#include <ROOT/RConfig.hxx>
Include dependency graph for HLFactory.h:
This graph shows which files directly or indirectly include this file:

Classes

class  RooStats::HLFactory
 HLFactory is an High Level model Factory allows you to describe your models in a configuration file (datacards) acting as an interface with the RooFactoryWSTool. More...
 

Namespaces

namespace  RooStats
 Namespace for the RooStats classes.
 

Functions

 ~HLFactory () override
 Default Destructor.
 
int AddChannel (const char *label, const char *SigBkgPdfName, const char *BkgPdfName=nullptr, const char *datasetName=nullptr)
 Add channel for the combination.
 
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
void DumpCfg (const char *)
 Dump the Workspace content as configuration file.
 
void fCreateCategory ()
 Create the category for the combinations.
 
bool fNamesListsConsistent ()
 Check the length of the lists.
 
int fParseLine (TString &line)
 Parse a single line an puts the content in the RooWorkSpace.
 
int fReadFile (const char *fileName, bool is_included=false)
 Read the actual cfg file.
 
RooAbsPdfGetTotBkgPdf ()
 Get the combined background pdf.
 
RooCategoryGetTotCategory ()
 Get the combined dataset.
 
RooDataSetGetTotDataSet ()
 Get the combined dataset.
 
RooAbsPdfGetTotSigBkgPdf ()
 Get the combined signal plus background pdf.
 
RooWorkspaceGetWs ()
 Get the RooWorkspace containing the models and variables.
 
 HLFactory ()
 Default Constructor.
 
 HLFactory (const char *name, const char *fileName=nullptr, bool isVerbose=false)
 Constructor.
 
 HLFactory (const char *name, RooWorkspace *externalWs, bool isVerbose=false)
 Constructor with external RooWorkspace.
 
TClassIsA () const override
 
int ProcessCard (const char *filename)
 Process a configuration file.
 
RooStats::HLFactory TNamed RooStats::R__DEPRECATED (6, 38, "Outdated higher-level interface around RooWorkspace. Use RooWorkspace directly.")
 
void Streamer (TBuffer &) override
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Variables

TList fBkgPdfNames
 List of channels names to combine for the background pdfs.
 
bool fCombinationDone = false
 Flag to keep trace of the status of the combination.
 
RooAbsPdffComboBkgPdf = nullptr
 The background model combination.
 
RooCategoryfComboCat = nullptr
 The category of the combination.
 
RooDataSetfComboDataset = nullptr
 The datasets combination.
 
RooAbsPdffComboSigBkgPdf = nullptr
 The signal plus background model combination.
 
TList fDatasetsNames
 List of channels names to combine for the datasets.
 
int fInclusionLevel = 0
 Keep trace of the inclusion deepness.
 
TList fLabelsNames
 List of channels names to combine for the datasets.
 
bool fOwnWs = false
 Owns workspace.
 
TList fSigBkgPdfNames
 List of channels names to combine for the signal plus background pdfs.
 
bool fVerbose = false
 The verbosity flag.
 
RooWorkspacefWs = nullptr
 The RooWorkspace containing the models and variables.
 

Function Documentation

◆ ~HLFactory()

R__DEPRECATED::~HLFactory ( )
override

Default Destructor.

◆ AddChannel()

int R__DEPRECATED::AddChannel ( const char * label,
const char * SigBkgPdfName,
const char * BkgPdfName = nullptr,
const char * datasetName = nullptr )

Add channel for the combination.

◆ Class()

static TClass * R__DEPRECATED::Class ( )
static
Returns
TClass describing this class

Definition at line 29 of file Class.C.

◆ Class_Name()

static const char * R__DEPRECATED::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t R__DEPRECATED::Class_Version ( )
staticconstexpr
Returns
Version of this class

Definition at line 75 of file HLFactory.h.

◆ DeclFileName()

static const char * R__DEPRECATED::DeclFileName ( )
static
Returns
Name of the file containing the class declaration

Definition at line 75 of file HLFactory.h.

◆ DumpCfg()

void R__DEPRECATED::DumpCfg ( const char * )

Dump the Workspace content as configuration file.

Definition at line 27 of file HLFactory.h.

◆ fCreateCategory()

void R__DEPRECATED::fCreateCategory ( )
private

Create the category for the combinations.

◆ fNamesListsConsistent()

bool R__DEPRECATED::fNamesListsConsistent ( )
private

Check the length of the lists.

◆ fParseLine()

int R__DEPRECATED::fParseLine ( TString & line)
private

Parse a single line an puts the content in the RooWorkSpace.

◆ fReadFile()

int R__DEPRECATED::fReadFile ( const char * fileName,
bool is_included = false )
private

Read the actual cfg file.

◆ GetTotBkgPdf()

RooAbsPdf * R__DEPRECATED::GetTotBkgPdf ( )

Get the combined background pdf.

◆ GetTotCategory()

RooCategory * R__DEPRECATED::GetTotCategory ( )

Get the combined dataset.

◆ GetTotDataSet()

RooDataSet * R__DEPRECATED::GetTotDataSet ( )

Get the combined dataset.

◆ GetTotSigBkgPdf()

RooAbsPdf * R__DEPRECATED::GetTotSigBkgPdf ( )

Get the combined signal plus background pdf.

◆ GetWs()

RooWorkspace * R__DEPRECATED::GetWs ( )

Get the RooWorkspace containing the models and variables.

Definition at line 42 of file HLFactory.h.

◆ HLFactory() [1/3]

R__DEPRECATED::HLFactory ( )

Default Constructor.

◆ HLFactory() [2/3]

R__DEPRECATED::HLFactory ( const char * name,
const char * fileName = nullptr,
bool isVerbose = false )

Constructor.

◆ HLFactory() [3/3]

R__DEPRECATED::HLFactory ( const char * name,
RooWorkspace * externalWs,
bool isVerbose = false )

Constructor with external RooWorkspace.

◆ IsA()

TClass * R__DEPRECATED::IsA ( ) const
override
Returns
TClass describing current object

Definition at line 75 of file HLFactory.h.

◆ ProcessCard()

int R__DEPRECATED::ProcessCard ( const char * filename)

Process a configuration file.

◆ Streamer()

void R__DEPRECATED::Streamer ( TBuffer & )
override

◆ StreamerNVirtual()

void R__DEPRECATED::StreamerNVirtual ( TBuffer & ClassDef_StreamerNVirtual_b)

Definition at line 75 of file HLFactory.h.

Variable Documentation

◆ fBkgPdfNames

TList fBkgPdfNames
private

List of channels names to combine for the background pdfs.

Definition at line 67 of file HLFactory.h.

◆ fCombinationDone

bool fCombinationDone = false
private

Flag to keep trace of the status of the combination.

Definition at line 65 of file HLFactory.h.

◆ fComboBkgPdf

RooAbsPdf* fComboBkgPdf = nullptr
private

The background model combination.

Definition at line 62 of file HLFactory.h.

◆ fComboCat

RooCategory* fComboCat = nullptr
private

The category of the combination.

Definition at line 61 of file HLFactory.h.

◆ fComboDataset

RooDataSet* fComboDataset = nullptr
private

The datasets combination.

Definition at line 64 of file HLFactory.h.

◆ fComboSigBkgPdf

RooAbsPdf* fComboSigBkgPdf = nullptr
private

The signal plus background model combination.

Definition at line 63 of file HLFactory.h.

◆ fDatasetsNames

TList fDatasetsNames
private

List of channels names to combine for the datasets.

Definition at line 68 of file HLFactory.h.

◆ fInclusionLevel

int fInclusionLevel = 0
private

Keep trace of the inclusion deepness.

Definition at line 71 of file HLFactory.h.

◆ fLabelsNames

TList fLabelsNames
private

List of channels names to combine for the datasets.

Definition at line 69 of file HLFactory.h.

◆ fOwnWs

bool fOwnWs = false
private

Owns workspace.

Definition at line 73 of file HLFactory.h.

◆ fSigBkgPdfNames

TList fSigBkgPdfNames
private

List of channels names to combine for the signal plus background pdfs.

Definition at line 66 of file HLFactory.h.

◆ fVerbose

bool fVerbose = false
private

The verbosity flag.

Definition at line 70 of file HLFactory.h.

◆ fWs

RooWorkspace* fWs = nullptr
private

The RooWorkspace containing the models and variables.

Definition at line 72 of file HLFactory.h.