Logo ROOT   6.08/07
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 
15 
16 #include <cstdlib>
17 #include <string>
18 #include <TXMLNode.h>
19 
20 #include "TList.h"
21 #include "TFile.h"
22 #include "TXMLAttr.h"
23 
27 
28 
29 namespace RooStats{
30  namespace HistFactory {
31 
32  class ConfigParser {
33 
34  public:
35 
36  // The "main" method
37  std::vector< RooStats::HistFactory::Measurement > GetMeasurementsFromXML(std::string input);
40 
41  // Helpers used to process a channel
45 
46  // Helpers used when processing a Sample
55 
56  protected:
57 
58  bool CheckTrueFalse( std::string val, std::string Name );
59  bool IsAcceptableNode( TXMLNode* functionNode );
60 
61  // To facilitate writing xml, when not
62  // specified, files and paths default
63  // to these cached values
64  std::string m_currentInputFile;
65  std::string m_currentChannel;
66  std::string m_currentHistoPath;
67 
68  };
69  }
70 }
71 
72 #endif
HistFactory::NormFactor MakeNormFactor(TXMLNode *node)
HistFactory::PreprocessFunction ParseFunctionConfig(TXMLNode *functionNode)
HistFactory::Sample CreateSampleElement(TXMLNode *node)
RooStats::HistFactory::Channel ParseChannelXMLFile(std::string filen)
HistFactory::HistoFactor MakeHistoFactor(TXMLNode *node)
RooStats::HistFactory::Measurement CreateMeasurementFromDriverNode(TXMLNode *node)
HistFactory::StatError ActivateStatError(TXMLNode *node)
const char * Name
Definition: TXMLSetup.cxx:67
HistFactory::OverallSys MakeOverallSys(TXMLNode *node)
HistFactory::HistoSys MakeHistoSys(TXMLNode *node)
HistFactory::Data CreateDataElement(TXMLNode *node)
std::vector< RooStats::HistFactory::Measurement > GetMeasurementsFromXML(std::string input)
HistFactory::ShapeSys MakeShapeSys(TXMLNode *node)
Namespace for the RooStats classes.
Definition: Asimov.h:20
bool IsAcceptableNode(TXMLNode *functionNode)
HistFactory::StatErrorConfig CreateStatErrorConfigElement(TXMLNode *node)
HistFactory::ShapeFactor MakeShapeFactor(TXMLNode *node)
bool CheckTrueFalse(std::string val, std::string Name)
TXMLNode contains a pointer to xmlNode, which is a node under the DOM tree.
Definition: TXMLNode.h:26