ROOT  6.06/08
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:

Go to the source code of this file.

Functions

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

Variables

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

Function Documentation

§ if()

if ( line.  BeginsWith"/*")

Definition at line 443 of file HLFactory.cxx.

Referenced by a_div2(), TRootBrowserLite::Add(), TRootBrowserLite::AddCheckBox(), TGLBContainer::AddEntrySort(), TGMenuBar::AddFrameBefore(), TGTextView::AdjustWidth(), XrdProofdNetMgr::Broadcast(), XrdProofdNetMgr::BroadcastCtrlC(), TRootBrowserLite::CheckObjectItem(), conn2(), TASImage::CopyArea(), TRecorderRecording::CopyEvent(), TRecGuiEvent::CreateEvent(), TGFileContainer::CreateFileList(), TTVLVContainer::Cut(), divconqdelaunay(), TGuiBldDragManager::DrawGrabRectangles(), TGCocoa::DrawLine(), TGCocoa::DrawRectangle(), TGuiBldDragManager::Drop(), TTVLVContainer::Ex(), TTVLVContainer::ExpressionList(), TGLWidget::ExtractViewport(), TTVLVContainer::Ey(), TTVLVContainer::Ez(), FillKeyValues(), TGCocoa::FillRectangle(), TGCocoa::FindAtom(), TCastorFile::FindServerAndPath(), ROOT::Fit::FitOptionsMake(), TGFontPool::FreeFont(), PyROOT::Utility::GetBuffer(), TGTableLayout::GetDefaultSize(), TGListBox::GetEntry(), TNetXNGSystem::GetPathInfo(), TAlienSystem::GetPathInfo(), TSystem::GetPathInfo(), TGMenuBar::GetPopup(), TGLBContainer::GetPos(), TGLBContainer::GetSelectedEntries(), TGLBContainer::GetSelection(), TGTab::GetTabContainer(), TGTab::GetTabTab(), TGX11::GetWindowAttributes(), TGComboBox::HandleButton(), TTVLVContainer::HandleButton(), TGHScrollBar::HandleButton(), TGVScrollBar::HandleButton(), TXProofServ::HandleInput(), TGMenuBar::HandleKey(), TGMainFrame::HandleKey(), TTVLVContainer::HandleMotion(), TSessionViewer::HandleTimer(), HtmlTranslateEscapes(), TASImage::Image2Drawable(), TMVA::RuleFitAPI::ImportSetup(), TGLBContainer::InsertEntry(), TGXYLayout::Layout(), TGTileLayout::Layout(), TEveTrackPropagator::LineToBounds(), TGCocoa::LoadQueryFont(), THistPainter::MakeChopt(), TEveCaloVizEditor::MakeSliceInfo(), TGWin32::MapEvent(), TGX11::MapEvent(), XrdProofWorker::Matches(), TSessionViewer::OnListTreeClicked(), TGFileBrowser::PadModified(), TGLHistPainter::ParsePaintOption(), RooAbsReal::plotAsymOn(), RooAbsReal::plotOn(), BidirMMapPipe::poll(), TXSocket::PopUpSpare(), TEveProjection::PreScaleVariable(), TProofPlayerRemote::Process(), TGShutter::ProcessMessage(), TProofPlayerSuperMaster::Progress(), R__GetSymbolName(), TBranchElement::ReadLeavesMakeClass(), TMVA::MethodCFMlpANN::ReadWeightsFromStream(), TMVA::MethodCFMlpANN::ReadWeightsFromXML(), TGLBContainer::RemoveAll(), TRootBrowserLite::RemoveCheckBox(), TGLBContainer::RemoveEntries(), TGLBContainer::RemoveEntry(), TGLVContainer::RemoveItemWithData(), TGMenuBar::RemovePopup(), TEveQuadSetGL::RenderHexagons(), TEveQuadSetGL::RenderLines(), TEveQuadSetGL::RenderQuads(), TRecGuiEvent::ReplayEvent(), TGWin32::RequestString(), TFitEditor::RetrieveOptions(), TGTextView::ReturnLongestLineWidth(), TGComboBox::ReturnPressed(), TGCompositeFrame::SavePrimitiveSubframes(), TTVLVContainer::ScanList(), TGLBContainer::Select(), TTVLVContainer::SelectItem(), TMonaLisaWriter::SendFileCheckpoint(), TMonaLisaWriter::SendFileCloseEvent(), TCling::SetClassInfo(), TProfileHelper::SetErrorOption(), TColor::SetPalette(), TGTab::SetTab(), TEveTrans::SetupFromToVec(), TRootBrowser::SwitchMenus(), TRFIOFile::SysStat(), TGFALFile::SysStat(), TDCacheFile::SysStat(), TMemFile::SysWrite(), TGHtml::TableDimensions(), TGeoManager::TGeoManager(), TGFrame::TGFrame(), XrdProofConn::TryConnect(), TTreePlayer::UnbinnedFit(), TRootBrowserLite::UpdateDrawOption(), TGCocoa::UpdateWindow(), TASImage::Vectorize(), TGMenuBar::~TGMenuBar(), and ROOT::TLogHandler::~TLogHandler().

§ while()

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

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.

Referenced by TLatex::Analyse(), RooMinimizerFcn::ApplyCovarianceMatrix(), RooMinuit::applyCovarianceMatrix(), RooSimPdfBuilder::buildPdf(), TLatex::CheckLatexSyntax(), RooCurve::chiSquare(), RooWorkspace::CodeRepo::compileClasses(), RooCintUtils::ctorArgs(), RooCustomizer::doBuild(), RooNLLVar::evaluatePartition(), RooChi2Var::evaluatePartition(), RooXYChi2Var::evaluatePartition(), RooSimWSTool::executeBuild(), RooAbsData::fillHistogram(), RooAbsGenContext::generate(), RooBinnedGenContext::generate(), RooAbsPdf::generateBinned(), RooCompositeDataStore::get(), RooRandomizeParamMCSModule::initializeInstance(), RooAbsOptTestStatistic::initSlave(), RooTreeDataStore::loadValues(), RooVectorDataStore::loadValues(), RooAbsReal::logEvalError(), RooHist::makeResidHist(), RooSimultaneous::plotOn(), RooMsgService::Print(), RooAbsArg::printArgs(), RooAbsArg::printMultiline(), RooDataSet::read(), RooArgSet::readFromStream(), RooStreamParser::readToken(), RooAbsArg::redirectServers(), RooDataHist::reduceEng(), RooAddModel::RooAddModel(), RooAddPdf::RooAddPdf(), RooArgList::RooArgList(), RooArgSet::RooArgSet(), RooProdGenContext::RooProdGenContext(), RooProdPdf::RooProdPdf(), RooRealIntegral::RooRealIntegral(), RooRealSumPdf::RooRealSumPdf(), RooMCStudy::run(), RooUnitTest::runCompTests(), RooTreeDataStore::setArgStatus(), RooAbsReal::setParameterizeIntegral(), RooAbsArg::setProxyNormSet(), RooDataSet::sumEntries(), RooDataHist::sumEntries(), RooMinimizerFcn::Synchronize(), RooMinuit::synchronize(), and RooAbsArg::treeNodeServerList().

§ 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.

Referenced by while().

§ lines_array

delete lines_array = ifileContentStripped.Tokenize(";")

Definition at line 452 of file HLFactory.cxx.

Referenced by while().

§ 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.

Referenced by while().

§ return

return

Definition at line 514 of file HLFactory.cxx.

Referenced by RooDataHist::add(), RooLinkedList::Add(), RooNumRunningInt::RICacheElem::addRange(), RooCurve::addRange(), RooCategory::addToRange(), RooAbsStudy::aggregateSummaryOutput(), RooAbsCollection::assignFast(), RooCompositeDataStore::attachBuffers(), RooCompositeDataStore::attachCache(), RooVectorDataStore::attachCache(), RooAbsCategory::attachToTree(), RooAbsReal::attachToTree(), RooDataHist::calculatePartialBinVolume(), RooAbsArg::changeServer(), RooArgSet::cleanup(), RooAbsReal::clearEvalErrorLog(), RooCategory::clearRange(), RooAbsOptTestStatistic::constOptimizeTestStatistic(), RooRealVar::copyCache(), TMVA::DecisionTree::DescendTree(), do_put(), TClonesArray::ExpandCreate(), RooStudyManager::expandWildCardSpec(), RooWorkspace::exportObj(), RooWorkspace::exportToCint(), Roo1DTable::fill(), RooFFTConvPdf::fillCacheObject(), RooFitResult::fillCorrMatrix(), RooFitResult::fillLegacyCorrMatrix(), RooObjCacheManager::findConstantNodes(), RooAddPdf::fixCoefNormalization(), RooAddModel::fixCoefNormalization(), RooUniform::generateEvent(), RooSimGenContext::generateEvent(), RooConvGenContext::generateEvent(), RooAddGenContext::generateEvent(), RooGaussModel::generateEvent(), RooGExpModel::generateEvent(), RooProdPdf::generateEvent(), RooAddModel::getCompIntList(), TCling::GetInterpreterTypeName(), TClass::GetMissingDictionariesForMembers(), RooProdPdf::getParametersHook(), RooAbsArg::graphVizTree(), RooProdPdf::initGenerator(), RooRealMPFE::initialize(), RooSimultaneous::initialize(), RooDataHist::initialize(), RooPlot::DrawOpt::initialize(), RooAbsTestStatistic::initMPMode(), RooAbsOptTestStatistic::initSlave(), KeepNParams(), RooAbsReal::logEvalError(), TMVA::MethodBDT::MakeClassInstantiateNode(), RooAbsReal::makeProjectionSet(), RooObjCacheManager::operModeHook(), RooAbsArg::optimizeCacheMode(), RooAbsOptTestStatistic::optimizeConstantTerms(), TGraphPolargram::PaintPolarDivisions(), TGraphPolargram::PaintRadialDivisions(), RooAbsReal::plotOnCompSelect(), TUri::Print(), RooWorkspace::Print(), RooAbsArg::printArgs(), RooAbsOptTestStatistic::printCompactTreeHook(), RooAbsArg::printComponentTree(), RooAbsReal::printEvalErrors(), RooAbsCollection::printLatex(), RooCustomizer::printMultiline(), RooPrintable::printStream(), RooStudyPackage::processFile(), qpsrt(), RooProdPdf::rearrangeProduct(), RooVectorDataStore::recalculateCache(), RooAbsArg::registerProxy(), RooAbsStudy::registerSummaryOutput(), RooPlot::remove(), RooCustomizer::replaceArg(), RooCompositeDataStore::resetBuffers(), RooCompositeDataStore::resetCache(), RooVectorDataStore::resetCache(), RooTreeDataStore::resetCache(), RooRealBinding::restoreXVec(), RooAbsGenContext::RooAbsGenContext(), RooAbsOptTestStatistic::RooAbsOptTestStatistic(), RooDataHist::RooDataHist(), RooDataSet::RooDataSet(), RooFormula::RooFormula(), RooHist::RooHist(), RooHistConstraint::RooHistConstraint(), RooMCStudy::RooMCStudy(), RooSimGenContext::RooSimGenContext(), RooSimSplitGenContext::RooSimSplitGenContext(), RooSimultaneous::RooSimultaneous(), RooStudyManager::runProof(), RooRandomizeParamMCSModule::sampleGaussian(), RooRandomizeParamMCSModule::sampleUniform(), RooAddModel::selectNormalization(), RooAddPdf::selectNormalization(), RooProdPdf::selectNormalizationRange(), RooAddModel::selectNormalizationRange(), RooAddPdf::selectNormalizationRange(), RooCompositeDataStore::setArgStatus(), RooVectorDataStore::setArgStatus(), RooAbsCategoryLValue::setBin(), RooAbsRealLValue::setBin(), RooMultiVarGaussian::BitBlock::setBit(), RooFFTConvPdf::setBufferFraction(), RooNumConvolution::setCallWarning(), RooStats::ModelConfig::SetConditionalObservables(), RooStats::ModelConfig::SetConstraintParameters(), RooNumIntConfig::setEpsAbs(), RooNumIntConfig::setEpsRel(), RooStats::ModelConfig::SetGlobalObservables(), RooLinkedList::setHashTableSize(), RooStats::ModelConfig::SetNuisanceParameters(), RooStats::ModelConfig::SetObservables(), RooAbsArg::setOperMode(), RooStats::ModelConfig::SetParameters(), RooStats::ModelConfig::SetParametersOfInterest(), TMVA::DecisionTree::SetParentTreeInNodes(), RooUniformBinning::setRange(), RooParamBinning::setRange(), RooRangeBinning::setRange(), RooAbsArg::setShapeDirty(), RooMsgService::setStreamStatus(), TMVA::BinaryTree::SetTotalTreeDepth(), RooAbsPdf::setTraceCounter(), RooLinearVar::setVal(), RooAbsArg::setValueDirty(), TClassEdit::TSplitType::ShortType(), RooCustomizer::splitArg(), RooCustomizer::splitArgs(), RooAbsStudy::storeSummaryOutput(), RooCmdConfig::stripCmdList(), TGraphErrors::TGraphErrors(), TClass::TNameMapNode::TNameMapNode(), RooAddModel::updateCoefficients(), RooAddPdf::updateCoefficients(), RooPlot::updateFitRangeNorm(), RooSimGenContext::updateFractions(), RooTreeDataStore::weightError(), RooVectorDataStore::weightError(), RooDataHist::weightError(), RooArgSet::writeToFile(), RooArgList::writeToStream(), and RooArgSet::writeToStream().