Logo ROOT   6.12/07
Reference Guide
Asimov.h
Go to the documentation of this file.
1 // @(#)root/roostats:$Id$
2 // Author: George Lewis, Kyle Cranmer
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 #ifndef HISTFACTORY_ASIMOV_H
12 #define HISTFACTORY_ASIMOV_H
13 
14 #include <string>
15 #include <vector>
16 #include <map>
17 
18 #include "RooWorkspace.h"
19 
20 namespace RooStats{
21  namespace HistFactory {
22 
23  class Asimov {
24 
25  public:
26 
27  Asimov() {;}
28  Asimov(std::string Name) : fName(Name) {;}
29 
31 
32  std::string GetName() { return fName; }
33  void SetName(const std::string& name) { fName = name; }
34 
35  void SetFixedParam(const std::string& param, bool constant=true) { fParamsToFix[param] = constant; }
36  void SetParamValue(const std::string& param, double value) { fParamValsToSet[param] = value; }
37 
38  std::map< std::string, bool >& GetParamsToFix() { return fParamsToFix; }
39  std::map< std::string, double >& GetParamsToSet() { return fParamValsToSet; }
40 
41  protected:
42 
43  std::string fName;
44 
45  std::map<std::string, bool> fParamsToFix;
46  std::map< std::string, double > fParamValsToSet;
47 
48  };
49 
50 
51  } // namespace HistFactory
52 } // namespace RooStats
53 
54 #endif
void SetFixedParam(const std::string &param, bool constant=true)
Definition: Asimov.h:35
void ConfigureWorkspace(RooWorkspace *)
Definition: Asimov.cxx:26
const char * Name
Definition: TXMLSetup.cxx:66
std::string GetName()
Definition: Asimov.h:32
std::map< std::string, double > fParamValsToSet
Definition: Asimov.h:46
void SetParamValue(const std::string &param, double value)
Definition: Asimov.h:36
std::map< std::string, double > & GetParamsToSet()
Definition: Asimov.h:39
Namespace for the RooStats classes.
Definition: Asimov.h:20
std::map< std::string, bool > fParamsToFix
Definition: Asimov.h:45
Asimov(std::string Name)
Definition: Asimov.h:28
void SetName(const std::string &name)
Definition: Asimov.h:33
char name[80]
Definition: TGX11.cxx:109
std::map< std::string, bool > & GetParamsToFix()
Definition: Asimov.h:38
The RooWorkspace is a persistable container for RooFit projects.
Definition: RooWorkspace.h:42