Logo ROOT   6.08/07
Reference Guide
Functions | Variables
HLFactory.cxx File Reference
#include <iostream>
#include <fstream>
#include "RooStats/HLFactory.h"
#include "TFile.h"
#include "TObject.h"
#include "TObjArray.h"
#include "TObjString.h"
#include "RooSimultaneous.h"
Include dependency graph for HLFactory.cxx:


 if (line.BeginsWith("/*"))
 while ((line_o=(*lineIt)()))


if on multiple lines(like in C++). **The " * configuration fragment. * * The "import myobject continue
 Parses the configuration file. More...
 ifileContentStripped =line+"\n"
 in_comment =false
delete lineIt =lines_array->MakeIterator()
delete lines_array = ifileContentStripped.Tokenize(";")
TString neutrals [nNeutrals] ={"\t"," "}
const int nNeutrals =2

Function Documentation

◆ if()

if ( line.  BeginsWith"/*")

Definition at line 443 of file HLFactory.cxx.

◆ while()

while ( (line_o=(*lineIt)())  )

Definition at line 464 of file HLFactory.cxx.

Variable Documentation

◆ continue

if on multiple lines (like in C++). * * The " * configuration fragment. * * The "import myobject continue

Parses the configuration file.

The objects can be specified following the rules of the RooFactoryWSTool, plus some more flexibility.

The official format for the datacards is ".rs".

All the instructions end with a ";" (like in C++).

Carriage returns and white lines are irrelevant but adviced since they improve readability (like in C++).

The (Roo)ClassName::objname(description) can be replaced with the more "pythonic" objname = (Roo)ClassName(description).

The comments can be specified with a "//" if on a single line or with /*

Definition at line 368 of file HLFactory.cxx.

◆ ifileContentStripped

ifileContentStripped =line+"\n"

Definition at line 449 of file HLFactory.cxx.

◆ in_comment

in_comment =false

Definition at line 459 of file HLFactory.cxx.

◆ lineIt

delete lineIt =lines_array->MakeIterator()

Definition at line 453 of file HLFactory.cxx.

◆ lines_array

delete lines_array = ifileContentStripped.Tokenize(";")

Definition at line 452 of file HLFactory.cxx.

◆ neutrals

TString neutrals[nNeutrals] ={"\t"," "}

Definition at line 462 of file HLFactory.cxx.

◆ nNeutrals

const int nNeutrals =2

Definition at line 461 of file HLFactory.cxx.

◆ return


Definition at line 514 of file HLFactory.cxx.