Logo ROOT  
Reference Guide
ConfigParser.h
Go to the documentation of this file.
1// @(#)root/roostats:$Id$
2// Author: Kyle Cranmer, Akira Shibata
3/*************************************************************************
4 * Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. *
5 * All rights reserved. *
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. *
8 * For the list of contributors see $ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10
11
12#ifndef ROOSTATS_CONFIGPARSER_h
13#define ROOSTATS_CONFIGPARSER_h
14
18
19#include "TList.h"
20#include "TFile.h"
21#include "TXMLAttr.h"
22#include <TXMLNode.h>
23
24#include <cstdlib>
25#include <string>
26
27namespace RooStats{
28 namespace HistFactory {
29
31
32 public:
33
34 /// The "main" method
35 std::vector< RooStats::HistFactory::Measurement > GetMeasurementsFromXML(std::string input);
38
39 /// Helpers used to process a channel
43
44 /// Helpers used when processing a Sample
53
54 protected:
55
56 bool CheckTrueFalse( std::string val, std::string Name );
57 bool IsAcceptableNode( TXMLNode* functionNode );
58
59 /// To facilitate writing xml, when not
60 /// specified, files and paths default
61 /// to these cached values
62 std::string m_currentInputFile;
63 std::string m_currentChannel;
64 std::string m_currentHistoPath;
65
66 };
67 }
68}
69
70#endif
This class encapsulates all information for the statistical interpretation of one experiment.
Definition: Channel.h:26
TODO Add documentation.
Definition: ConfigParser.h:30
bool IsAcceptableNode(TXMLNode *functionNode)
std::vector< RooStats::HistFactory::Measurement > GetMeasurementsFromXML(std::string input)
The "main" method.
HistFactory::StatErrorConfig CreateStatErrorConfigElement(TXMLNode *node)
HistFactory::StatError ActivateStatError(TXMLNode *node)
HistFactory::OverallSys MakeOverallSys(TXMLNode *node)
HistFactory::Sample CreateSampleElement(TXMLNode *node)
HistFactory::HistoSys MakeHistoSys(TXMLNode *node)
std::string m_currentInputFile
To facilitate writing xml, when not specified, files and paths default to these cached values.
Definition: ConfigParser.h:62
HistFactory::ShapeFactor MakeShapeFactor(TXMLNode *node)
bool CheckTrueFalse(std::string val, std::string Name)
RooStats::HistFactory::Measurement CreateMeasurementFromDriverNode(TXMLNode *node)
HistFactory::PreprocessFunction ParseFunctionConfig(TXMLNode *functionNode)
HistFactory::Data CreateDataElement(TXMLNode *node)
Helpers used to process a channel.
HistFactory::HistoFactor MakeHistoFactor(TXMLNode *node)
RooStats::HistFactory::Channel ParseChannelXMLFile(std::string filen)
HistFactory::ShapeSys MakeShapeSys(TXMLNode *node)
HistFactory::NormFactor MakeNormFactor(TXMLNode *node)
Helpers used when processing a Sample.
Configuration for an *un*constrained, coherent shape variation of affected samples.
Definition: Systematics.h:215
Configuration for a constrained, coherent shape variation of affected samples.
Definition: Systematics.h:205
The RooStats::HistFactory::Measurement class can be used to construct a model by combining multiple R...
Definition: Measurement.h:30
Configuration for an un- constrained overall systematic to scale sample normalisations.
Definition: Systematics.h:77
Configuration for a constrained overall systematic to scale sample normalisations.
Definition: Systematics.h:49
*Un*constrained bin-by-bin variation of affected histogram.
Definition: Systematics.h:267
Constrained bin-by-bin variation of affected histogram.
Definition: Systematics.h:225
Configuration to automatically assign nuisance parameters for the statistical error of the Monte Carl...
Definition: Systematics.h:367
Statistical error of Monte Carlo predictions.
Definition: Systematics.h:321
TXMLNode contains a pointer to xmlNode, which is a node under the DOM tree.
Definition: TXMLNode.h:22
Namespace for the RooStats classes.
Definition: Asimov.h:20
const char * Name
Definition: TXMLSetup.cxx:66